Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery Google Place Autocomplete返回缩写而不是完整地址_Jquery_Google Maps_Google Maps Api 3_Autocomplete - Fatal编程技术网

Jquery Google Place Autocomplete返回缩写而不是完整地址

Jquery Google Place Autocomplete返回缩写而不是完整地址,jquery,google-maps,google-maps-api-3,autocomplete,Jquery,Google Maps,Google Maps Api 3,Autocomplete,在使用GooglePlaceAutoComplete的应用程序中,当GooglePlaceAutoComplete使用缩写而不是完整术语返回地址组件时,存在不匹配。例如,我们应用程序中的主数据有Mount Gambier,而google api返回Mt.Gambier Google place autocomplete为郊区返回的内容有什么列表吗?或者Google Place Autocomplete返回的缩写是否有任何规则?您可能希望从Google Places API发出请求 位置详细信息返

在使用GooglePlaceAutoComplete的应用程序中,当GooglePlaceAutoComplete使用缩写而不是完整术语返回地址组件时,存在不匹配。例如,我们应用程序中的主数据有Mount Gambier,而google api返回Mt.Gambier

Google place autocomplete为郊区返回的内容有什么列表吗?或者Google Place Autocomplete返回的缩写是否有任何规则?

您可能希望从Google Places API发出请求


位置详细信息返回短名称和长名称。长名称应该返回给您Mount Gambier而不是Mt.Gambier。

我知道现在回答这个问题已经太迟了,但答案是您应该指定郊区的长名称而不是短名称,谷歌将为您提供相同的名称。

这是谷歌地图api的一个问题。