NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum


Our application is using the URL: 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's gravatar image

accept rate: 0%

301 indicates a permanent redirect that your app should be following instead of throwing an error.

It redirects to which is simply the new url for the same thing.

permanent link

answered 21 Aug '20, 08:22

SimonPoole's gravatar image

SimonPoole ♦
accept rate: 18%

edited 21 Aug '20, 08:24

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:

curl -I -H "Content-Type: application/json" ""

HTTP/1.1 301 Moved Permanently


So in your application you should either follow the redirect (many software libraries have options to do that automatically) or replace http: with https:

permanent link

answered 21 Aug '20, 12:12

mtmail's gravatar image

accept rate: 27%

Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 21 Aug '20, 07:54

question was seen: 2,646 times

last updated: 21 Aug '20, 12:12

NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum