Finding address by distance value, in Google Maps Api?

北城以北 提交于 2019-12-11 02:29:54

问题


I want to find a specific address that, is neither user-configurable nor static or known in advance. In other words I want my application to be able to calculate what address is placed in a distance away from a known location.

Is there a way to define the address or lat/lng, of a place which is placed in a specific distance away from a known location(specific address or lat/,lmg point in map already known). I mean by using the Google Maps Api, can i define what's the address of a place that is 5 meters away from a known location?

To make it more clear, would it be possible to get the address that is in the middle of the distance(known) of two known addresses, especially by using walking(mode) roads for example?

Thnx in advance


回答1:


The Map API and its associated database is not designed for your requirements. You would require to create your own database or find a vendor of one in the country you require. For example the UK Post Office supply PAF OR for US




回答2:


I doubt there is any way to achieve what you are trying. All the locations and addresses that Google Maps provides on the map are the ones that are stored in there servers. If the data about a location is present, you always have a way to find them. So you cannot expect to find a location on the map that doesn't have a value stored in their database. While the database and servers concept of the Google Maps is a way complex, you should understand that something not present in the system cannot be provided or shown. In-short it is not possible.



来源:https://stackoverflow.com/questions/13794543/finding-address-by-distance-value-in-google-maps-api

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