可以通过谷歌地图geocoder API获得店名? [英] Possibility to get the shop name with google maps geocoder api?
问题描述
我想知道是否有可能通过使用谷歌地理编码api获得商店,商场或餐厅的名称。例如,如果用户搜索,我需要有' Starbucks '。使用官方API参考中的地址组件类型似乎并不能够接收到这个。有没有其他方法可以获得这些信息?
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?
推荐答案
不,geocoder返回邮政地址的坐标(还有一些已知的位置)。我相信您正在寻找 Places API ,也可以 Google Maps API中的图书馆
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
这篇关于可以通过谷歌地图geocoder API获得店名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!