nominatim

Nominatim Returns a Configuration Error after Assigning a Variable to it

家住魔仙堡 提交于 2021-02-08 08:23:19
问题 I recently downloaded geopy and tested it out on Jupyter's notebook with the code below. import geopy from geopy.geocoders import Nominatim nom=Nominatim(scheme="http") After running this I received the following error: --------------------------------------------------------------------------- ConfigurationError Traceback (most recent call last) <ipython-input-2-899501bc88f0> in <module> ----> 1 nom=Nominatim(scheme="http") c:\users\****\appdata\local\programs\python\python38-32\lib\site-

Xml parsing from web response

徘徊边缘 提交于 2019-12-23 09:37:06
问题 I'm trying to get response from nominatim to geo-code few thousands of cities. import os import requests import xml.etree.ElementTree as ET txt = open('input.txt', 'r').readlines() for line in txt: lp, region, district, municipality, city = line.split('\t') baseUrl = 'http://nominatim.openstreetmap.org/search/gb/'+region+'/'+district+'/'+municipality+'/'+city+'/?format=xml' # eg. http://nominatim.openstreetmap.org/search/pl/podkarpackie/stalowowolski/Bojan%C3%B3w/Zapu%C5%9Bcie/?format=xml

http://nominatim.openstreetmap.org api giving httpcode 403

懵懂的女人 提交于 2019-12-13 00:04:25
问题 api call to http://nominatim.openstreetmap.org/search?format=json started giving httpcode 403. We are using this api since last 2 years and never faced such issue. Suddenly today it started giving this error. Any kind of help is appreciated! 回答1: Added HTTP Referrer and it worked! As per their usage policy , valid HTTP Referrer is required. However not sure about how it used to work earlier. 来源: https://stackoverflow.com/questions/48700300/http-nominatim-openstreetmap-org-api-giving-httpcode

Administrative relations of a place with openstreetmap

和自甴很熟 提交于 2019-12-11 06:21:41
问题 I did a lot of research about how to use overpass-api tried a lot of things on http://overpass-turbo.eu/ but i can't find the way to get the result i'm expecting ... I would like with a query, to find all the relations a place has but only administrative relations (department of the place, region of the place, country) everyhting that is assimilated to an "AdministrativeArea" Tried this with both nominatim and the overpass_api If any of you guys have an idea Thanks ! 回答1: Just use the

Getting Streets of a specific postcode using Open Street Maps

不打扰是莪最后的温柔 提交于 2019-12-11 02:56:50
问题 I want to write a code that has the Countrycode and Postcode as an input and the ouput are the streets that are in the given postcode using some apis that use GSM. My tactic is as follows: I need to get the relation Id of the district. For Example 1991416 is the relation id for the third district in Vienna - Austria. It's provided by the nominatim api: http://nominatim.openstreetmap.org/details.php?place_id=158947085 Put the id in this api url: http://polygons.openstreetmap.fr/get_wkt.py?id

What are address26 and address29 in Nominatim?

杀马特。学长 韩版系。学妹 提交于 2019-12-07 08:55:15
问题 Occasionally - rarely - a Nominatim search will return a hit with a key "address29" or "address26". There is no mention of such a key in osm, and I can't find any explanation in Nominatim. Here's an example. Search nominatim for bamako (the capital city of Mali). Among others you'll see: {"place_id":"104544188","licence":"Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright", "osm_type":"way","osm_id":"197528638","boundingbox":["47.4519905","47.4523668","-0

What are address26 and address29 in Nominatim?

社会主义新天地 提交于 2019-12-05 14:47:26
Occasionally - rarely - a Nominatim search will return a hit with a key "address29" or "address26". There is no mention of such a key in osm, and I can't find any explanation in Nominatim. Here's an example. Search nominatim for bamako (the capital city of Mali). Among others you'll see: {"place_id":"104544188","licence":"Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright", "osm_type":"way","osm_id":"197528638","boundingbox":["47.4519905","47.4523668","-0.5565341","-0.5561207"],"lat":"47.4519905","lon":"-0.5565341", "display_name":"Bamako, Angers, Maine-et