Wednesday, 2 December 2015

geocoding - Geocode address once in google maps, save in database, read geocoded result from there on


Is it possible to geocode an address, save the result in a database, then read that result from there on?


I'm using a Google map that is geocoding hundreds of addresses which obviously hit the geocode limit. Once geocoded, the address is very unlikely to change again so it makes sense to save the geocode result in a database.


I'm using Wordpress as a platform so if possible I'd like to save the geocoded result as a field in the database that relates to the particular company.


THE CLIENT HAS SPECIFICALLY ASKED FOR GOOGLE TO BE USED THROUGHOUT THE PROJECT THUS RULING OUT YAHOO OR ANYTHING ELSE.


UPDATE: Everyone's saying about what I'm asking is going against their TOS but isn't their very own example doing the same thing - developers.google.com/maps/articles/phpsqlgeocode?



Answer




After a lot of digging Google actually shows how to store Geocode results in a database. As there is an actual tutorial from Google on how to do it, I'm assuming that this doesn't violate the clear as mud terms of service that so many have mentioned.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...