Inam Abbas
Inam Abbas

Reputation: 1480

How to get longitude latitude of multiple addresses geo-location

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?

Upvotes: 0

Views: 3358

Answers (1)

Brad
Brad

Reputation: 163301

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.

Upvotes: 3

Related Questions