May 23, 2019

Location Lookup as a Service?

Charlie Daly @mistakenot

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.

Any ideas?

    1. 1

      Yup eventually found their GeoCoding API - the Big G truly has it all.

  1. 1

    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

    1. 1

      "Geocoding" - where was that word when I was trying to google! Thanks.

  2. 1

    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