NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the 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)
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 ♦

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:

×362
×255
×22

question asked: 13 Mar '21, 11:29

question was seen: 753 times

last updated: 15 Mar '21, 08:25

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum