Georgeo is a free to use geocoding service, made with node-geocoder, using OpenStreetMap APIs.
👉 You can use it right now from it's client site.
👉 Or use it through its rest API.
👉 Also you can clone it and run it on your own.
Just post
an addresses
array with locations descriptions to the https://georgeo.now.sh/geocode
endpoint. For example:
{
"addresses": ["an address", "another address", "and so on"]
}
And get your response:
[
{
"latitude": -34.6136774734694,
"longitude": -58.425575355102,
"country": "Argentina",
"city": "CABA",
"state": "CABA",
"zipcode": "C1205AAP",
"streetName": "Avenida Rivadavia",
"streetNumber": "4260",
"countryCode": "AR",
"provider": "openstreetmap"
},
{
"latitude": -34.5995718962963,
"longitude": -58.3884548037037,
"country": "Argentina",
"city": "CABA",
"state": "CABA",
"zipcode": "C1055AAS",
"streetName": "Avenida Córdoba",
"streetNumber": "1518",
"countryCode": "AR",
"provider": "openstreetmap"
}
]
Of course: as more information you provide about your locations, more precise the results become.
First, clone the repo:
git clone https://github.com/rmpato/georgeo.git
Then, install it's dependencies.
npm install
Finally, run it.
npm start
And now you can browse localhost:3000 and have a happy geocoding 😄