Why not ask your question on the new OpenStreetMap Community Forum?

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)

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

accept rate: 0%

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

(15 Mar '21, 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



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:


question asked: 13 Mar '21, 11:29

question was seen: 683 times

last updated: 15 Mar '21, 08:25

powered by OSQA