I have a bunch of locations (cities, counties, street level addresses) that I want to translate into the 100k locations found here: https://developers.google.com/adwords/api/docs/appendix/geotargeting
Let's say I've got:
location | latitude | longitude |
-----------------------------------------------------
New York, NY, USA | 40.70 | -74.00 |
And I want to map this to:
"21167","New York","New York, United States","US","State"
Is there a way of doing that? parsing text and matching it like that isn't an option.
The Google Geocode API only gives me a list of coordinates based on an address, not an ID from that file.
One thing I thought of would be to take each canonical_name from the file, open up Maps, get the coordinates for all locations and map my lat, long addresses to the nearest point.
Could it be done in a better/more accurate way?