Using nominatim.openstreetmap API

Hey guys im trying to get the geoshape of some postal codes for my DataFrame. I tried to get that with the overpassAPI, but i have problems with getting just the outer ways of a postal code and integrating that. with the nominatim.openstreetmap API i could just take the minlat. and minlon of every postal codes. That also works sometimes with overpass api but not always. do you know how i can use the nominatim.openstreetmap? because i cant integrate it into my code.

Hi @Ghandi3D and welcome here.

I don’t know how you would get your goal with nominatim queries, but I’m pretty sure it’s the wrong choice. Why? Because it reads as it will be violating the Nominatim Usage Policy.

I quote that part that should be the main problem of your code (systematic queries).

And don’t forget

1 Like

You may need to download OSM data ( Downloading data - OpenStreetMap Wiki ) and preprocess it.

1 Like