NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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


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.

permanent link

answered 14 Feb '18, 13:32

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

edited 14 Feb '18, 13:32

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689
×15

question asked: 14 Feb '18, 12:33

question was seen: 5,599 times

last updated: 01 Dec '18, 22:37

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum