I'm adding a "Location" field to my product and would rather find an off-the-shelf solution that supports features like autocomplete, cities or countries, etc and ideally gives each a unique ID.
Google Places API: https://developers.google.com/places/web-service/intro
Yup eventually found their GeoCoding API - the Big G truly has it all.
I believe what you're looking for is called geocoding, where you can supply an address or coordinates (latitude & longitude) and get information like country, city, and zip code...
here are some suggestions:
"Geocoding" - where was that word when I was trying to google! Thanks.
Not sure what it's written in, but there are a few location autocomplete things out there in npm-land, like this: https://www.npmjs.com/package/location-autocomplete