admin管理员组文章数量:1425701
When I enter the location details in the google API developer page, the city name is missing from the results.
The Location details are "Canarsie, Brooklyn, NY, United States".
I entered the details in the form appearing in the following link.
But city name is missing from it. This doesn't happen for all the locations. It only happens for some locations. Please help me to find a solution.
When I enter the location details in the google API developer page, the city name is missing from the results.
The Location details are "Canarsie, Brooklyn, NY, United States".
I entered the details in the form appearing in the following link.
https://developers.google./maps/documentation/javascript/examples/places-autoplete-addressform
But city name is missing from it. This doesn't happen for all the locations. It only happens for some locations. Please help me to find a solution.
Share Improve this question asked Jun 27, 2017 at 7:26 Nithinkumar CNNithinkumar CN 3271 gold badge5 silver badges19 bronze badges2 Answers
Reset to default 5Address ponent type for "city" varies across regions, specially in New York.
For more details, see paragraph right under the form, in https://developers.google./maps/documentation/javascript/examples/places-autoplete-addressform
In my case it was because of it stopped sending CITY under LOCALITY type but just one from sublocality_level_1, sublocality, political types.
I notice now, that city is working under LOCALITY only when you fill name of city to search input.
本文标签: javascriptWhy city name missing for some locations from Google Maps API resultStack Overflow
版权声明:本文标题:javascript - Why city name missing for some locations from Google Maps API result? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745423863a2658022.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论