How to get longitude latitude of multiple addresses geo-location

谁说我不能喝 提交于 2019-12-11 18:23:41

问题


I am using geo location api http://maps.google.com/maps/api/geocode/json?address=ADDRESS&sensor=false

But the problem is I have above 500-1000 results who's long/lat I need. What I loop through geolocation api it nearly stuck the page.

Is there any better solution for this?


回答1:


You need to geocode ahead of time and store the results in a local database. It is not appropriate to geocode so many points on the fly when a page loads for the user.

Also, pay attention to drew010's comment about the max number of requests in a day.



来源:https://stackoverflow.com/questions/9138199/how-to-get-longitude-latitude-of-multiple-addresses-geo-location

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