WayneJz / teslamate-addr-fix

To fix teslamate broken addresses caused by openstreetmap unavailability
MIT License
69 stars 7 forks source link

get address from osm failed, lat=22.792001, lon=113.931184, err=osm returns error status, status=403 #21

Open patirot opened 5 months ago

patirot commented 5 months ago

teslamate-addr-fix version 0.3

error in log:

2024/06/22 01:08:31 psql_client.go:116: get address from osm failed, lat=22.792001, lon=113.931184, err=osm returns error status, status=403, url=https://nominatim.openstreetmap.org/reverse?lat=22.792001&lon=113.931184&format=json 2024/06/22 01:08:34 psql_client.go:116: get address from osm failed, lat=22.680982, lon=113.990357, err=osm returns error status, status=403, url=https://nominatim.openstreetmap.org/reverse?lat=22.680982&lon=113.990357&format=json 2024/06/22 01:08:37 psql_client.go:116: get address from osm failed, lat=22.680982, lon=113.990357, err=osm returns error status, status=403, url=https://nominatim.openstreetmap.org/reverse?lat=22.680982&lon=113.990357&format=json 2024/06/22 01:08:40 psql_client.go:116: get address from osm failed, lat=22.681128, lon=113.990291, err=osm returns error status, status=403, url=https://nominatim.openstreetmap.org/reverse?lat=22.681128&lon=113.990291&format=json 2024/06/22 01:08:43 psql_client.go:116: get address from osm failed, lat=22.561984, lon=114.042458, err=osm returns error status, status=403, url=https://nominatim.openstreetmap.org/reverse?lat=22.561984&lon=114.042458&format=json

open https://nominatim.openstreetmap.org/reverse?lat=22.561984&lon=114.042458&format=json in chrome is ok(with proxy)

patirot commented 5 months ago

As per their usage policy , valid HTTP Referrer is required. how to add vaild HTTP Referrer.

https://operations.osmfoundation.org/policies/nominatim/