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, 11:29

rabeeqasem's gravatar image

rabeeqasem
2619
accept rate: 0%

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

(15 Mar, 08:25) scai ♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

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

×321
×243
×17

question asked: 13 Mar, 11:29

question was seen: 108 times

last updated: 15 Mar, 08:25

powered by OSQA