Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get the GPS traces within a region from OpenStreetMap (OSM)?

The link to download the GPS traces on OSM is quite easy to get.

However, each of the files inside is all super big. And also there is no geolocation categorization. So I suppose the data inside can be the GPS traces from any part of the world.

What if I just need the GPS traces within ONE location, say Boston city? How can I get that?

like image 574
Sibbs Gambling Avatar asked Sep 12 '13 07:09

Sibbs Gambling


People also ask

What are public GPS traces?

A GPS trace or tracklog is simply a record of position over time. It shows where you traveled while you were recording the trace. This information is gathered using a GPS receiver that calculates your position and stores it every so many seconds, depending on how you have configured your receiver.

How do I import a GPX file into Openstreetmap?

If you're using iD just drag'n'drop the gpx file onto the editor area. If you're using Potlatch, find the 'edit' link to the right of your track (in the GPS traces listing), and click this - not the usual Edit tab at the top.

How do I set location in OSM?

Find the place of your business, and click Edit. If your business is represented by a dot, just click it and move to the place where you want it to be. If your business is on a building, remove the tags of your business on that building, and add them to a building where your business is now. Click Save two times.


2 Answers

The (editing) API supports a query for retrieving GPS traces in a given area. Each page returns a maximum of 5,000 points so you may have to make several calls for retrieving all of them.

Don't forget to read the terms of use and the usage policy. This API is not suited for running bulk queries!

If you don't know the bounding box of the city you want to query, you can use Nominatim to geolocate it.

like image 190
scai Avatar answered Oct 19 '22 23:10

scai


Alternativelly to using the API (see answer by scai) one could also use an Application like JOSM to download the GPX traces.

like image 32
tyr Avatar answered Oct 20 '22 01:10

tyr