如何为Google Place详细信息设置语言导致android? [英] How to set language for Google Place Details result in android?

查看:124
本文介绍了如何为Google Place详细信息设置语言导致android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置Google Places API的结果呈现的语言。我想要使​​用此网址的结果:

I want to set the language in which the results of Google Places API will be presented. I want the result I could get using this url:

https://maps.googleapis.com/maps/api/place/details/json?placeid=A_PLACE_ID&key=MY_EY&language=el 

详情如下:

PendingResult<PlaceBuffer> placeResult = Places.GeoDataApi
                        .getPlaceById(mGoogleApiClient, placeID);
placeResult.setResultCallback(mUpdatePlaceDetailsCallback);

我找不到像上面这样的语言为language = el设置语言的方法。

I cannot find a way to set language for the results like above with "language=el".

推荐答案

很抱歉,我们无法在Android版Places API上设置语言。使用此功能的最佳方式是致电 Places详情 API。该资源具有可选的 language 参数来指示响应的语言。

Unfortunately we can't set language on the Places API for Android. The best way to go with this is to call the Places Details API. The resource has an optional language parameter to indicate the language of the response.

有关列表的详细信息的支持语言

这篇关于如何为Google Place详细信息设置语言导致android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆