openambitproject / openambit

openambit
277 stars 82 forks source link

Convert GPX to JSON route #289

Closed pcotret closed 1 year ago

pcotret commented 1 year ago

I was looking at this: https://github.com/openambitproject/openambit/wiki/Adjusting-watch-settings-and-routes-without-Movescount#upload-custom-routes

Simple question: is there a script to convert a GPX file to the required JSON format (I'm a bit lazy to do this manually...)

battila commented 1 year ago

Hey,

I no longer have any ambit watch, but if you send me some (Ambit/Suunto) GPX files, I can write a python script to convert the GPX to JSON.

Cheers, Attila

On Fri, Dec 23, 2022 at 10:03 AM Pascal Cotret @.***> wrote:

I was looking at this: https://github.com/openambitproject/openambit/wiki/Adjusting-watch-settings-and-routes-without-Movescount#upload-custom-routes

Simple question: is there a script to convert a GPX file to the required JSON format (I'm a bit lazy to do this manually...)

— Reply to this email directly, view it on GitHub https://github.com/openambitproject/openambit/issues/289, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEYELJNRGPAVHSHMPP46GTWOVTF3ANCNFSM6AAAAAATHREUXA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

centic9 commented 1 year ago

I have now published my Java-based tool at https://github.com/centic9/gpx2route now, this can convert GPX files to route. Only note that you may need to "trim down" GPX files first, see https://github.com/centic9/gpx2route/blob/master/src/main/java/org/dstadler/suunto/gpx/ConvertGPXToRoute.java#L20 for some more details

pcotret commented 1 year ago

Thanks @centic9 ! I'll have a look at it.