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 ...
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"...
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
...
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. ...
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" ...
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 ...
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....
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'...
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
...
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 ...
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=...
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;
""&...
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 ...
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 ...
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 ...
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 ...
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) ...
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 (
{ ...
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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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....
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 ...
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 ...
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....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
nominatim × 157openstreetmap × 90
geocoding × 37
python × 21
postgresql × 16
reverse-geocoding × 15
geopy × 14
overpass-api × 13
osm2pgsql × 11
openlayers × 9
postgis × 8
qgis × 7
leaflet × 7
ubuntu × 7
javascript × 6
osmosis × 5
overpass-turbo × 5
api × 4
polygon × 3
geojson × 3
data × 3
google-maps × 3
tiger × 3
mmqgis × 3
mapquest × 3