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, 12:33

panditManish's gravatar image

panditManish
11112
accept rate: 0%

edited 01 Dec, 22:37

aseerel4c26's gravatar image

aseerel4c26 ♦
31.6k15234541


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, 13:32

scai's gravatar image

scai ♦
30.3k17271423
accept rate: 23%

edited 14 Feb, 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:

×517
×10

question asked: 14 Feb, 12:33

question was seen: 1,131 times

last updated: 01 Dec, 22:37

powered by OSQA