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 aseerel4c26 ♦ |
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 ♦ |