12 votes
Accepted

Avoid time out error Nominatim Geopy OpenStreetMap

You could make a recursive function. Just typing Python-esque pseudo-code: from geopy.exc import GeocoderTimedOut def do_geocode(address, attempt=1, max_attempts=5): try: return geopy....
alphabetasoup's user avatar
12 votes
Accepted

User_Agent argument in Nominatim in GeoPy

User_Agent is an http request header that is sent with each request. Nominatim requires this value to be set to your application name. The goal is to be able to limit the number of requests per ...
JGH's user avatar
  • 41.6k
11 votes
Accepted

Bulk reverse geocoding with Geopy using built-in rate_limiter

The correct usage of RateLimiter for reverse geocoding would be: from geopy.geocoders import Nominatim from geopy.extra.rate_limiter import RateLimiter geolocator = Nominatim(user_agent="application"...
KostyaEsmukov's user avatar
8 votes
Accepted

How to obtain openstreet API key for nominatim (r)?

In the comments of the source code you linked there is an explanation: @param key To access the openstreetmap API you need a valid API key. You can get it for free at https://developer.mapquest.com ...
bennos's user avatar
  • 2,069
7 votes
Accepted

Leaflet marker/icon help

It looks strange that you add both a GeoJSON layer from result.geojson and a marker created from [result.lat, result.lon]. If result.geojson contains the same point information as [result.lat, result....
ghybs's user avatar
  • 7,173
6 votes

Difference between Nominatim and Overpass-Api?

Nominatim is a geocoder and reverse-geocoder. You can search for an address and it will return the location. Likewise you can search for a location and it will return its full address hierarchy. ...
scai's user avatar
  • 6,090
6 votes

MMQGIS Geocode is failing in QGIS 3

I have found the solution. As the error suggests: the SSL in Python is not correctly installed. If you go to /application/python(your version) and then click "Install Certificates.command" ...
Yolanda Dawson's user avatar
5 votes
Accepted

How to put the two regions and countries data on OpenStreetMap into postgresql?

It would probably be cleaner to join the two PBF files before you do the load. Something like osmosis --read-pbf file="countryA.pbf" --read-pbf file="countryB.pbf" --merge --write-pbf file="merged....
BradHards's user avatar
  • 12.8k
5 votes

Is geocoding with Nominatim available for all the countries?

Based on Nominatim FAQ, there are many reasons of why your search didn't get any result: Why wasn't anything found for my search? There are a number of reasons why no result may have been ...
ahmadhanb's user avatar
  • 40.7k
5 votes
Accepted

Cannot get OSM tags when downloading data with osmnx functions which are based on Nominatim requests

I had a similar problem, I wanted to access the surface of streets. Answer The setting of the attributes that are transferred to the graph are defined in the settings.py useful_tags_path = ['bridge'...
Fabian's user avatar
  • 66
4 votes
Accepted

Find parent place using nominatim

I guess the relationship is a bit tricky to discover. In fact i guess there is no relationship in the sense of OSM: I mean your building is not referenced as a member of the University of texas ...
mgc's user avatar
  • 883
4 votes
Accepted

Nominatim disk space Needed for whole planet-osm

I am posting the answer of my question for who need... The disk space needed for whole planet is ~759G. During the installation I face to disk space memory (see my post). After some check it came ...
Shalom Ohayon's user avatar
4 votes

Latitude/Longitude to city and zip, batch convertion

I discovered that the complexity of installing own instance of Nominatim can be mitigated by using a docker container where the set up script is already prepared. I used a docker script available at ...
Alexey Grigorev's user avatar
4 votes
Accepted

Query country border polygon from OpenStreetMap

It think it is possible with Nominatim, take a look at the query parameters listed in the documentation: The interesting parameters for you are the ones starting with polygon_, depending on what ...
chrki's user avatar
  • 2,655
4 votes

Openstreetmap Nominatim web service API - Result language

Your browser and other HTTP/HTTPS clients will sent an Accept-Language field in the HTTP request header. This can for example look like: Accept-Language: de-DE,de;q=0.8,en-US;q=0.5,en;q=0.3\r\n ...
scai's user avatar
  • 6,090
4 votes
Accepted

Get state but want country in GeoPy and Nominatim

When you try embedding exactly_one=False parameter (by default it is True) into your code, like from geopy.geocoders import Nominatim geolocator = Nominatim(user_agent='[email protected]', timeout=...
Taras's user avatar
  • 32.7k
4 votes

Combining location from Nominatim with Overpass API query using Python

Since the overpass_query is just a string, you can use string formatting: overpass_query = f""" [out:json]; (node["shop"](around:500,{lat},{lng}); );out; ""&...
bugmenot123's user avatar
  • 11.3k
3 votes
Accepted

I received a max limit on Geocoding address using MMQGIS when choosing OSM/Nominatim

looking at my installed copy of the plugin (latest plugin version, 2017.5.14) there's an error message which reports that it couldn't connect to google API even if it's actually using Nominatim, so ...
Steven Kay's user avatar
  • 20.3k
3 votes

How does Nominatim know my address which is not (as far as I can tell) in OSM Database?

I posted the question because it took me a while to find the answer, and maybe this will help others. I learned that Nominatum uses OSM data AND tiger map data as input in the US, because address ...
Brian B's user avatar
  • 805
3 votes

How Nominatim calculates addresses

Take the link from iant's comment and click on details. On the database side, Nominatim calculates an address hierarchy. It does this by looking at address tags on the object, associatedStreet ...
scai's user avatar
  • 6,090
3 votes

Find parent place using nominatim

Use Zoom Level in query to get to higher level. e.g At level 18 this place gives way which is street nominatim.openstreetmap.org/reverse?format=xml&lat=52.5487429714954& lon=-1.81602098644987&...
neogeomat's user avatar
  • 8,360
3 votes
Accepted

Getting output in different language in GeoPy

As per the doc, you can specify the language as a str type in the parameters of the reverse() method. By default it is language=False, that matches the language of the country for which the geocoder ...
JGH's user avatar
  • 41.6k
3 votes

Look for all `highway` type `way` in certain area, using the overpass-api directly (not overpass turbo) or osmosis

Backend solution (no API) I found a solution using just backend scripts without overpass or any other api using osmium instead of osmosis. Download the extract you want from geofabrik.de (.pbf file) ...
Emeeus's user avatar
  • 141
3 votes
Accepted

Control search Nominatim in OpenLayers: change properties

Currently you would need to patch the requestData function to add countrycodes to the request. e.g. to restrict results to UK and Ireland var searchNominatim = new ol.control.SearchNominatim ( { ...
Mike's user avatar
  • 12.4k
2 votes

Geocode free APi for internal application

This is the most comprehensive Python geocoding library I have came across. Easy install using Pip here is the link: https://pypi.python.org/pypi/geocoder/1.8.0 You can geocode with Google maps up ...
ziggy's user avatar
  • 4,480
2 votes

How can I decrease size of geodatabase "Nominatim"?

The speed of geocoding relies on two main points for a server that has the good capacities : increasing shared_buffers to 2Go in the postgresql.conf file and waiting for the index to complete : this ...
Fabien Auréjac's user avatar
2 votes

Leaflet marker/icon help

an event listener and change the icon through setIcon() method: createdMarker.on("dblclick", function(evt) { var myIcon = L.icon({ iconUrl: 'res/marker-icon-red.png', ...
ads's user avatar
  • 129
2 votes

Latitude/Longitude to city and zip, batch convertion

If you want to stick to OSM then you will need Nominatim to process it, or one of the other OSM geocoders. Address data in OSM is build up hierarchically. Just analyzing the raw data won't help, you ...
scai's user avatar
  • 6,090
2 votes
Accepted

Trying to show an OSM/Nominatim relation on an OpenLayers 3 map

That's quite a common issue. MP relations in OSM don't have to adhere to a specific sequence, i.e. your conversion routine needs to take care to put all single ways into an overall correct sequence. ...
mmd's user avatar
  • 4,557
2 votes
Accepted

Barefoot more Details Road ID

I got a really nice and fast answer by opening an issue on the barefoot repo. Please look at https://github.com/bmwcarit/barefoot/issues/13 The key was to look up the matching between the internal ...
jan's user avatar
  • 41

Only top scored, non community-wiki answers of a minimum length are eligible