This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

missing or invalid token when exporting from openstreetmap.org

1

The export from OpenStreetMap seems to be broken. I only get:

Error Missing or invalid token

This should be displayed when using the API programmatically, but I get it every time I use the interactive export feature on openstreetmap.org

The offending URL is: http://render.openstreetmap.org/cgi-bin/export?bbox=7.113443613052369,51.02827473620841,7.117483019828796,51.03135161256763&scale=1400&format=pdf

asked 15 Jan '17, 16:48

Natureshadow's gravatar image

Natureshadow
26113
accept rate: 0%

edited 31 Jan '17, 22:18

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


One Answer:

1

The API is a not really documented not really public API, sorry.

A manual alternative might be http://extract.bbbike.org/ that has a number of different SVG output styles.

More possible alternatives can be found here https://wiki.openstreetmap.org/wiki/SVG and maybe http://maposmatic.org/

answered 31 Jan '17, 22:34

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 01 Feb '17, 06:36

2

How is something triggered verbatim by a button right on the openstreetmap.org front page not a public API…

(31 Jan '17, 22:56) Natureshadow
2

A public API is an interface intended to used by 3rd party applications, this was never. IIRC the change was and is due to scraping via the function and is unlikely to be reverted.

(01 Feb '17, 06:30) SimonPoole ♦

That still leaves some users who can not find or understand this bug report with an unusable, but existing, "download" button, right? I am still testing which of my Firefox addons is responsible for this.

(29 Mar '17, 22:49) quazgar

Source code available on GitHub .