Skip to content Skip to sidebar Skip to footer

Google Maps Api V3 Geocoding Multiple Addresses

I'm making a small app, that needs to geocode more addresses than google limits in one page-load, i guess. Is it possible to send in geocoder.geocode( { 'address': addreses[address

Solution 1:

The JS geocoder service is intended for addresses you cannot know when the page is loaded (for example, data provided by users). If you know addresses beforehand, you should use the webservice and store the coordinates so you don't have to re-geocode the same data over and over. To do otherwise is wasteful of Google's resources and your users' time (because the page will wait for the geocoder to do its stuff instead of having all the data provided with the page code).

This question and my answer are also relevant. You can use the solution there to geocode a number of addresses and get their coordinates in order to store them for future use.

Note that the Google Terms of Service only allow you to store their data for use on Google Maps.

Post a Comment for "Google Maps Api V3 Geocoding Multiple Addresses"