Skip to main content
13 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
  • 42.5k
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,089
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,235
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

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
  • 41.2k
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.9k
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

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,235
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,665
4 votes
Accepted

Getting state but want country with Nominatim geocoder in GeoPy

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
  • 33.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.1k
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.5k
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
  • 42.5k
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
  • 825
3 votes
Accepted

Unloading addresses from database to Nominatim/Pelias geocoder?

In general, you'll find that geocoders have to work with their own database, and cannot be linked to an existing one. There are too many combinations of configuration parameters, table schemas, etc to ...
orangejulius's user avatar
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.7k
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,647
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

How to get long and lat data for elements of the type <way> in OSM?

I found the answer to my question. When converting .osm to .o5m or .csv format by means of osmconvert there is an option to turn all ways and relations to nodes, and assign to them the lon and lat of ...
Miluleh's user avatar
  • 59
2 votes
Accepted

Geocoding with Latitude and Longitude in OpenLayers3

Just use the Nominatim reverse geocoding API. After, it's mainly about knowing HTML and JavaScript. I've done a simple demo for reverse geocoding using OpenLayers. You can look at the code on this ...
ThomasG77's user avatar
  • 31.1k
2 votes
Accepted

Is geocoding with Nominatim available for all the countries?

Despite of the low rate for the post, there is a question has to be answered. Nominatim is available for all the countries. Check the web map showing the geocoding quality across the globe For ...
Mykola Kozyr's user avatar
2 votes

Android application development by using OpenStreetMap

I think you are looking to make a complete system with API's, Devices and Servers. The whole answer would have to incorporate many parts. An alternative is an existing application traccar which is ...
neogeomat's user avatar
  • 8,380
2 votes

Python: Geopy's Nominatim reverse geocoding: Access Type (e.g. amenity)

As far as I know, you can show bunch of data from Nominatim reverse geocode. This is an example: from geopy.geocoders import Nominatim locator = Nominatim(user_agent=”myGeocoder”) coordinates = “53....
Hermawan Wiwid's user avatar
2 votes

Getting state but want country with Nominatim geocoder in GeoPy

There is also the option to specify a region to search in or even restrict results to. This should be used when ever possible and will be much safer than playing language tricks. If you look at the ...
bugmenot123's user avatar
  • 11.1k
2 votes
Accepted

Getting list of result from GeoPy Nominatim

Look at the Taras's answer in 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 And in geopy.geocoders....
gene's user avatar
  • 55.2k
2 votes
Accepted

Reformatting API Call results in an Atlas. Nominatim and OpenWeatherMap

You could use this custom function: from qgis.core import * from qgis.gui import * import urllib.request import urllib import json @qgsfunction(args='auto', group='Custom', referenced_columns=[]) def ...
MrXsquared's user avatar
  • 35.2k
2 votes
Accepted

Where to get city boundaries without sea area as a geometry polygon?

I'm afraid you have to do it manually as OSM has an own feature for the Gulf of Finland, but it does not include the waters near Helsinki: those you want to get rid of. If you click with the query ...
Babel's user avatar
  • 73.8k
2 votes
Accepted

Is OpenStreetMaps's Nominatim "Centre Point" the centroid and what EPSG is it?

Nominatim is using OpenStreetMap data and the boundary of Bruck an der Mur is this OSM relation https://www.openstreetmap.org/relation/3904390. The named place is this OSM point https://www....
user30184's user avatar
  • 67.9k

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