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

how can i convert GPS tracer to json file

0

Hi I'm trying to using the API to extract the GPS Tracer, and I would like to dump it into a JSON file I used the following code:

#overpass api url
url = 'https://api.openstreetmap.org/api/0.6/trackpoints?bbox=0,51.5,0.25,51.75&page=0'
response = requests.get(url)
response.json()

but unfortunately, this code gives me this error

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

is it possible to convert it to JSON format?

asked 13 Mar '21, 11:29

rabeeqasem's gravatar image

rabeeqasem
318811
accept rate: 0%

This URL returns GPX. You need a GPX-to-JSON converter.

(15 Mar '21, 08:25) scai ♦

Source code available on GitHub .