Georef German Gemeinde

Hi,

Sorry, if this is a stupid question, but is there a way translate a geo ref (Lat/Long) into the corresponding German Gemeinde ID/Name? I have about 10000 Lat/Long coordinates and I would like to know the smallest political entity across Germany (assuming that’s Gemeinde) for each of them. I then would like to build a list of Gemeinden by density and ratio to population density.

I was hoping for a Web Service or some kind of API to use, as this seems to be a common thing. But I’m not a GIS-expert, so I might be wrong.

Danke, Aeroid

What you’re searching for is called “Reverse Geocoding”

http://wiki.openstreetmap.org/wiki/Nominatim#Reverse_Geocoding_.2F_Address_lookup

Please be aware, that Nominatim allows only 1 request/s: http://wiki.openstreetmap.org/wiki/Nominatim_usage_policy

You can try the famous http://wiki.openstreetmap.org/wiki/Overpass_API

there is a parameter called “is_in” (not the “old” OSM tag) … see http://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Query_for_areas_.28is_in.29 for details.

It is not a bad idea to get familiar with OSM data structure (see http://wiki.openstreetmap.org/wiki/Elements ) , overpass-api and http://wiki.openstreetmap.org/wiki/Overpass_turbo in general

Thanks, sounds promising. I’ll give it a try!