TkinterMapView icon indicating copy to clipboard operation
TkinterMapView copied to clipboard

Status code 403

Open rsjane opened this issue 11 months ago • 5 comments

I found the code online last Friday, and have been playing with it. It worked fine yesterday, however, today 3/19/2024 1400 EST, when I run the code, I receive the following error message when I attempt to assign a specific location. If I had to guess it has something to do with licensing, API key definition embedded within the code that I did not change? Wondering if the author could advise.

Status code 403 from https://nominatim.openstreetmap.org/search: ERROR - 403 Client Error: Forbidden for url: https://nominatim.openstreetmap.org/search?q=Berlin&format=jsonv2&addressdetails=1&limit=1

rsjane avatar Mar 19 '24 19:03 rsjane

I am having the same issue

jnordberg1 avatar Mar 20 '24 19:03 jnordberg1

I'm having the same issue on a Windows computer. However on macOS everything is still fine.

BrushXue avatar Mar 25 '24 19:03 BrushXue

I have run into the same issue.

NicholasCG avatar Apr 01 '24 07:04 NicholasCG

I have the same issue

Gabrielz-Muller avatar May 07 '24 11:05 Gabrielz-Muller

My solution may be crude, but it works for me. Manually uninstall the geocoder and git clone it from here. Place the folder in the same path as map_widget.py. Then add the following function in the class OsmQuery(MultipleResultsQuery) in osm.py def _build_headers(self, provider_key, **kwargs): """Will be overridden according to the targetted web service""" return {"User-Agent": 'My User Agent 1.0'} This should be work. Reference: https://help.openstreetmap.org/questions/74205/nominatim-usage-policy-http-referers-and-user-agents

shengrenTWR avatar May 14 '24 01:05 shengrenTWR