TkinterMapView
TkinterMapView copied to clipboard
Status code 403
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
I am having the same issue
I'm having the same issue on a Windows computer. However on macOS everything is still fine.
I have run into the same issue.
I have the same issue
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