Geocoding in Julia? (getting latitude and longitude from addresses)

I have a dataframe with several addresses and I want to extract the latitude and longitude potentially using OpenStreetMap, is there a package that help with that?

I generally use HTTP.jl in combination with JSON.jl for calling APIs. If your addresses are in the United States, there are also some free online tools that allow you to simply upload files and perform the geocoding in batches.

Unfortunately the address are not in USA and I found an old snippet on stackoverflow but is not working, I will see later if I can fix it

How many addresses do you need to geocode? I’ve used Geoapify and found it to be very straightforward to use. You can geocode one address at a time, or you can also do batch geocoding (up to 1,000 addresses at a time).

Also, just as a general recommendation, I don’t even attempt to get API calls working with code until I have them working with Postman. I’ve worked with APIs for a long time and Postman is essential in my view.

See GMT geocoder
and
https://www.generic-mapping-tools.org/GMTjl_doc/tutorials/mosaics/mosaics/

2 Likes

This was the thing I was searching for. Thank you!