Google Maps API: Requesting any place labels given longitude and latitude?

南笙酒味 提交于 2020-01-06 04:47:06

问题


I am working on an iPhone map application and wanted to know whether it was possible to request any labels visible on Google Maps given a longitude/latitude and radius?

For example if I gave the following location to this Google Maps API, I would get back McCullough Hall, Moore Hall, etc. The list would be any place labels visible on the map (doesn't have to be just restaurants, businesses).

If this is possible can you direct me to where I can learn more about this. If this isn't possible, can you direct me towards another API where it is possible?


回答1:


Look into Googles reverse geocoding, I think that's what you're looking for.




回答2:


The short answer, you cannot!. The only way is to search for places by name and get a reference key to query the place details including lat/lng. Not the other way around.

IMHO, this is mainly a policy of Google instead of being technical limitation.



来源:https://stackoverflow.com/questions/5933215/google-maps-api-requesting-any-place-labels-given-longitude-and-latitude

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