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.
There are several sites like Google Developers, GeoNames and even Zipcode API provides authentic dataset in this regard but I personally prefer GeoNames, Rapid API and Back4App. Probably, Back4App in terms of development is better idea because it is easy to fetch dataset from here in the form of various frameworks. Have a look at some suggestions:
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...
Google Places API: https://developers.google.com/places/web-service/intro
Yup eventually found their GeoCoding API - the Big G truly has it all.
There are several sites like Google Developers, GeoNames and even Zipcode API provides authentic dataset in this regard but I personally prefer GeoNames, Rapid API and Back4App. Probably, Back4App in terms of development is better idea because it is easy to fetch dataset from here in the form of various frameworks. Have a look at some suggestions:
https://www.geonames.org/
https://www.back4app.com/database/back4app/zip-codes-all-countries-in-the-world
https://rapidapi.com/blog/ip-geolocation-api/
Hopefully, these suggestions would assist you in better manner.
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:
https://opencagedata.com/api#forward-resp
https://developers.google.com/maps/documentation/geocoding/start
https://docs.mapbox.com/api/search/#geocoding
"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