Open VsQ90 opened 1 week ago
Oh yes ;) Nominatim again. Will have to look deeper into this. Stay tuned.
Access blocked
You have been blocked because you have violated the
usage policy
of OSM's Nominatim geocoding service. Please be aware that OSM's resources are
limited and shared between many users. The usage policy is there to ensure that
the service remains usable for everybody.
Please review the terms and make sure that your
software adheres to the terms. You should in particular verify that you have set a
custom HTTP referrer or HTTP user agent that identifies your application, and
that you are not overusing the service with massive bulk requests.
If you feel that this block is unjustified or remains after you have adopted
your usage, you may contact the Nominatim system administrator at
nominatim@openstreetmap.org to have this block lifted.
😿
Although I've experimented with various HTTP header settings, and succeed querying using a browser (firefox, or even lynx -source
), I cannot get this to work. The only workaround currently is to do the query manually, and use the coordinates obtained.
Help is welcome.
Some additional information. Firefox gets this response:
HTTP/2 200
server: nginx
date: Fri, 05 Jul 2024 11:02:13 GMT
content-type: application/json; charset=utf-8
content-length: 511
X-Firefox-Spdy: h2
while lynx -source -head
is answered with
HTTP/1.1 405 Method Not Allowed
Server: nginx
Date: Fri, 05 Jul 2024 13:41:28 GMT
Content-Type: application/json
Content-Length: 35
Connection: close
allow: GET, OPTIONS
vary: Accept
although
$ lynx -source "https://nominatim.openstreetmap.org/search?q=times%20square&format=json&limit=1"
[{"place_id":311840046,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. http://osm.org/copyright","osm_type":"way","osm_id":702540318,"lat":"40.757261400000004","lon":"-73.98589982948505","class":"place","type":"square","place_rank":25,"importance":0.5439494846055839,"addresstype":"square","name":"Times Square","display_name":"Times Square, Manhattan Community Board 5, Manhattan, New York County, New York, 10036, United States","boundingbox":["40.7564751","40.7580455","-73.9866378","-73.9853729"]}]
I just can't get the knack of it :(
It seems I forgot to reference this issue in my last commit. I got addresses working again (tested with "buckingham palace"), but don't know exactly yet why... I need more coffee, it seems ;)
Whether using TUI or straight command, location search fails with Unknown response error. I've checked that location works and it should be found. Coordinate search works fine.
Command used:
geotoad.rb -L 1 -O -v "times square"
Verbose output: