Hi, Our application is using the URL: http://nominatim.openstreetmap.org/search.php to search for locations on the OSM. It was working as expected until last week. Now, the response from the URL is "301 moved permanently". Can someone please tell if anything has changed in OSM map server? asked 21 Aug '20, 07:54 Shwetha4194 |
301 indicates a permanent redirect that your app should be following instead of throwing an error. It redirects to https://nominatim.openstreetmap.org/ui/search.html which is simply the new url for the same thing. answered 21 Aug '20, 08:22 SimonPoole ♦ I thought so too, thank you for the confirmation.
(21 Aug '20, 08:24)
Shwetha4194
|
A browser will ask the server for a HTML (content-type) response. Your application is probably requesting either JSON or XML. When look at the HTTP reponse headers for a JSON request:
So in your application you should either follow the redirect (many software libraries have options to do that automatically) or replace http: with https: answered 21 Aug '20, 12:12 mtmail |