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

Is it possible to download several traces at once?

0

Hi, I was wondering if it's possible to download many people's traces at once. Usually if I download someone's trace, I need to click that person's file and choose download. It's cost a lot of time, and all files are separate. So, is there a way to download multiple traces at once and maybe put them in the same file?

Thanks!

This question is marked "community wiki".

asked 07 Jan '14, 20:15

rolarola's gravatar image

rolarola
11112
accept rate: 0%

1

In what circumstances and for what purpose are you looking to download traces? There are a few options (such as public GPS trace tiles and a downloadable large public trace dump) that might make sense, but it depends what you're trying to do.

(07 Jan '14, 20:52) SomeoneElse ♦
2

I'm trying to download traces and see if it relates to any demographic data or not. You mentioned downloadable large public trace dump, could you tell the name of it? I think this is the only one I know. Thanks!

(07 Jan '14, 21:32) rolarola
3

This is the raw download that I was referring to:

https://wiki.openstreetmap.org/wiki/Planet.gpx

There are a bunch of tools linked from that page too.

(07 Jan '14, 21:36) SomeoneElse ♦
2

As the wiki sais the planet.gpx contains only
"coordinate pairs only, with no track file or meta data".

(08 Jan '14, 04:27) malenki

Thanks, SomeoneElse!

(08 Jan '14, 14:48) rolarola

2 Answers:

1

If you want all the GPS data of a region, use JOSM, go to the download dialogue and just check [x] "GPS Data from OpenStreetMap".

The only easy way I can imagine to get all traces is to use a little scripting. First, find out how many pages of gpx file descriptions for that user exist, then download them all like this:

for i in $(seq 1 12); do wget https://www.openstreetmap.org/user/malenki/traces/page/"$i" -O page_"$i".html; done

Having all the files you can search them for the file IDs and download them similar to the above "script"; the URL would be https://www.openstreetmap.org/trace/(trace-ID)/data.

hth
malenki

answered 07 Jan '14, 20:43

malenki's gravatar image

malenki
4.7k24683
accept rate: 6%

edited 07 Jan '14, 20:47

0

At least in JOSM there is a check box on the dialog box where you download data to edit that allows you to get all the traces for that same area. Can't say about the other editors as I don't use them.

answered 07 Jan '14, 20:44

n76's gravatar image

n76
10.8k1082172
accept rate: 17%

Source code available on GitHub .