• Resolved kabouton

    (@kabouton)


    I have used trackserver’s ability and shortcode to point to a gpx url to display the track on a map, show the elevations, show gpx data (pace mileage etc) and show photos as markers from extracted exif, using various leaflet plugins. Very Nice.

    But what I really want it to use trackserver as it’s original intention – to collect, store and manage tracks. Which I really love.

    Using Trackme I can easily upload to my trackserver to achieve the above, but then I can’t access them as gpx files. I have to also export them as gpx from trackme and upload them to my wordpress media library, defeating the purpose of the trackserver management/easy uploading abilities.

    Am I missing something? Should I also be able to get the gpx files out of trackserver?

    Anyway, as I said, very nice. Thanks for your hard work. Made mine much easier.
    – Katherine

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author tinuzz

    (@tinuzz)

    There is the [tslink] shortcode, since Trackserver 3.0. To quote the original blog post:

    GPX downloads

    Trackserver has a new shortcode: [tslink], perhaps not the most intuitive name. This shortcode produces a link, with which the specified tracks can be downloaded as a GPX file. Other formats are on the horizon, please open a feature request issue on Github if you need a specific format. [tslink] is used almost the same as [tsmap], except that it lacks all the styling attributes.

    [tslink track=12,87,525 user=patrick]

    will give you a link to a dynamically generated GPX file, containing tracks with IDs 12, 87 and 525, as well as Patrick’s latest track. There is also a class attribute that can be used for styling the resulting <a> element, and a format attribute whose only valid value is ‘gpx’ at this time.

    Does that help?

    If you envision something else, please let me know!

    Best regards,
    Martijn.

    • This reply was modified 4 years, 8 months ago by tinuzz.
    • This reply was modified 4 years, 8 months ago by tinuzz.
    • This reply was modified 4 years, 8 months ago by tinuzz.
    Thread Starter kabouton

    (@kabouton)

    will give it a go. Ta

    Thread Starter kabouton

    (@kabouton)

    Ah thanks. Didn’t do the trick cause as I mentioned in the original post I use the elevation data, pace, mileage etc and that doesn’t seem to be in the downloaded file. Nice though. Thanks.

    Thread Starter kabouton

    (@kabouton)

    Just had a look in the db and see altitude there. Could it be exprted in gpx file download?

    Plugin Author tinuzz

    (@tinuzz)

    Ah, yes. Elevation is part of standard GPX and is stored in the database. It should also be in the export, so I’ll put that on the TODO list.

    Other types of data are often part of (proprietary, application specific) GPX extensions, that are hard for Trackserver to handle. I wouldn’t be sure how to handle those.

    Can you perhaps share one of those GPX files, so I can have a look at what exactly is in it?

    Best regards,
    Martijn.

    Thread Starter kabouton

    (@kabouton)

    Step 1)
    I just added one line to class.trackserver.php to get the ele data out line 3466 above time
    $trkpt->appendChild( $dom->createElement( ‘ele’, $row[‘altitude’] ) );.

    Pace etc I think is a calculation based on time and distance. will keep you posted.
    Thanks again for your quick responses.
    This is my stay at home project. ??

    Thread Starter kabouton

    (@kabouton)

    Has worked perfect using the ts_link. Get it via ajax, and use it to create the elevation. Lovely. Thanks for the tip. Happy to send you what I have if you’d like.

    • This reply was modified 4 years, 8 months ago by kabouton.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Managing GPX files’ is closed to new replies.