问题
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