This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Server returned HTTP response code: 403 for URL: http://nominatim.openstreetmap.org/reverse?format=json&lat=28.7041&lon=77.1025

0

hi , i m getting result if i paste the this generic api url like http://nominatim.openstreetmap.org/reverse?format=json&lat=28.7041&lon=77.1025 in browser but when i use this same api url in java application it will give me exception like Server returned HTTP response code: 403 for URL: http://nominatim.openstreetmap.org/reverse?format=json&lat=28.7041&lon=77.1025

can anybody solve this problem,

regard , manish kumar liferay developer.

asked 14 Feb '18, 12:33

panditManish's gravatar image

panditManish
11112
accept rate: 0%

edited 01 Dec '18, 22:37

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


One Answer:

3

I guess you violated the usage policy of nominatim.openstreetmap.org.

Check if your request includes an HTTP Referer or User-Agent and check the number of requests per second.

If the usage policy is too strict for your use-case then either switch to a third-party provider or install your own Nominatim instance.

answered 14 Feb '18, 13:32

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

edited 14 Feb '18, 13:32

Source code available on GitHub .