Possibility to get the shop name with google maps geocoder api?

风格不统一 提交于 2019-12-11 14:23:58

问题


I am wondering if it is possible to get a name for a shop, mall or restaurant by using the google geocoding api. For example I need to have 'Starbucks' as a result if the user searched for. Using the Address Component Types from the official api reference doesn't seem to be able to receive this. Is there any other way to get this information?


回答1:


No, the geocoder returns coordinates for postal addresses (and some "well-known" locations). I believe you are looking for the Places API, also available as a library in the Google Maps API



来源:https://stackoverflow.com/questions/13809685/possibility-to-get-the-shop-name-with-google-maps-geocoder-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!