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

Retrieving map data by bounding box: GET /api/0.6/map

0

Hello! How use a .json URL suffix. in GET API https://wiki.openstreetmap.org/wiki/API_v0.6#General_information Retrieving map data by bounding box: GET /api/0.6/map To request JSON format, either set the HTTP Accept header to application/json, or use a .json URL suffix. https://api.openstreetmap.org/api/0.6/map?bbox=76.36808519471933,64.41713173392363,76.75875957883649,64.50167155517451 return xml

asked 22 Dec '21, 08:35

%D0%94%D0%BC%D0%B8%D1%82%D1%80%D0%B8%D0%B9_'s gravatar image

Дмитрий_
11224
accept rate: 0%


One Answer:

1

Put .json between "map" and the question mark of the URL.

answered 22 Dec '21, 08:42

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

thanks, it work/

(22 Dec '21, 09:22) Дмитрий_

Source code available on GitHub .