ViaMichelin to GPX?

neil²
neil² Posts: 337
edited February 2009 in Tour & expedition
Hi,

I want to get some new routes from ViaMichelin into my GPS unit. I should be able to do this via GPX files, but ViaMichelin only gives the start and end waypoint and no route between. :roll:

Has anyone managed to save anything from ViaMichelin apart form start and end?

Thx

Comments

  • infopete
    infopete Posts: 878
    neil² wrote:
    Hi,

    I want to get some new routes from ViaMichelin into my GPS unit. I should be able to do this via GPX files, but ViaMichelin only gives the start and end waypoint and no route between. :roll:

    Has anyone managed to save anything from ViaMichelin apart form start and end?

    Thx

    http://dev.viamichelin.fr/wswebsite/fra ... raires.jsp

    Looks like you can extract the waypoints using the ViaMichelin api. This example shows you almost everything you need to get the individual points.
    Oh and please remember to click on my blog:

    http://americanbicyclegroup.wordpress.com

    The more clicks I get the higher it creeps up the google radar :)
  • andymiller
    andymiller Posts: 2,856
    infopete wrote:

    http://dev.viamichelin.fr/wswebsite/fra ... raires.jsp

    Looks like you can extract the waypoints using the ViaMichelin api. This example shows you almost everything you need to get the individual points.

    It seems to produce an itinerary for display on a map - rather than a file you can download.

    There's a section with the code for exporting to GPX:

    http://dev.viamichelin.fr/wswebsite/fra ... p#exemple3

    but it's only for exporting single points rather than in itinerary - I can't see anything about how to download and/or export an itinerary.

    Still it looks like one to watch and the API does look like a useful route-planning tool. Hopefully someone will pick up the ball and run with it - viaMichelin do good maps.
  • infopete
    infopete Posts: 878
    It doesn't look that difficult to do. I'll have a look tomorrow.

    Can you post an example of your gpx so I can see what fields you require for your gps device?
    Oh and please remember to click on my blog:

    http://americanbicyclegroup.wordpress.com

    The more clicks I get the higher it creeps up the google radar :)
  • neil²
    neil² Posts: 337
    The easiest is to look up a track here:
    http://www.mapmyride.com/ride/united-kingdom/loughborough/718146712358

    which then imports OK (Using EasyGPS) after I save to GPX.

    Hope that makes sense!
  • infopete
    infopete Posts: 878
    neil² wrote:
    The easiest is to look up a track here:
    http://www.mapmyride.com/ride/united-kingdom/loughborough/718146712358

    which then imports OK (Using EasyGPS) after I save to GPX.

    Hope that makes sense!

    I could only find the Google Earth export to KML. Could you post a snippet of the GPX please.

    The ViaMichelin API is broken at the moment ant they are not letting new people register.
    I'll post again when they open up new registrations
    Oh and please remember to click on my blog:

    http://americanbicyclegroup.wordpress.com

    The more clicks I get the higher it creeps up the google radar :)
  • neil²
    neil² Posts: 337
    infopete wrote:
    neil² wrote:
    The easiest is to look up a track here:
    http://www.mapmyride.com/ride/united-kingdom/loughborough/718146712358

    which then imports OK (Using EasyGPS) after I save to GPX.

    Hope that makes sense!

    I could only find the Google Earth export to KML. Could you post a snippet of the GPX please.

    The ViaMichelin API is broken at the moment ant they are not letting new people register.
    I'll post again when they open up new registrations

    You should have an "export as GPX" option on the left hand box when selecting - save --> save to GPX.

    Here is a bit of code from the file that is created:

    <?xml version="1.0" encoding="UTF-8" ?>
    - <gpx version="1.1" creator="MapMyFitness.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns="http://www.topografix.com/GPX/1/1&quot; xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
    - <trk>
    - <trkseg>
    <trkpt lat="52.74580097192711" lon="-1.2129592895507812" />
    <trkpt lat="52.745870000000004" lon="-1.21218" />
    <trkpt lat="52.74763" lon="-1.2127100000000002" />
    <trkpt lat="52.74761" lon="-1.21235" />
    <trkpt lat="52.74772" lon="-1.2121000000000002" />
    <trkpt lat="52.74799" lon="-1.21187" />
    <trkpt lat="52.74837" lon="-1.2111100000000001" />


    and then it gives loads of lat and lon point until the end:

    <trkpt lat="52.74763" lon="-1.2127100000000002" />
    <trkpt lat="52.745870000000004" lon="-1.21218" />
    <trkpt lat="52.74577000000001" lon="-1.2131" />
    <trkpt lat="52.74570000000001" lon="-1.2132500000000002" />
    </trkseg>
    </trk>
    </gpx>
  • infopete
    infopete Posts: 878
    That's very easy xml to create. Once ViaMichelin comes back I'll see what I can do.

    In the meantime I could create that on www.tomtracks.com if you are interested.

    Pete
    Oh and please remember to click on my blog:

    http://americanbicyclegroup.wordpress.com

    The more clicks I get the higher it creeps up the google radar :)
  • infopete
    infopete Posts: 878
    Hi

    I had a very nice man from ViaMichelin telephone me today.

    Bad news though they have dropped the free api so it does not look as if I can create a website using ViaMichelin.

    Pete
    Oh and please remember to click on my blog:

    http://americanbicyclegroup.wordpress.com

    The more clicks I get the higher it creeps up the google radar :)
  • infopete
    infopete Posts: 878
    ViaMichelin Customer Service emailed me saying a new version of the api should be available on the 17th Feb. I'll let you know what happens.

    Pete
    Oh and please remember to click on my blog:

    http://americanbicyclegroup.wordpress.com

    The more clicks I get the higher it creeps up the google radar :)
  • a_n_t
    a_n_t Posts: 2,011
    there's plenty of mapping sites that can export to gpx, why does it have to be viamichelin?
    Manchester wheelers

    PB's
    10m 20:21 2014
    25m 53:18 20:13
    50m 1:57:12 2013
    100m Yeah right.
  • andymiller
    andymiller Posts: 2,856
    a_n_t wrote:
    there's plenty of mapping sites that can export to gpx, why does it have to be viamichelin?

    (I'm guessing). Because ViaMichelin offer a cycle-routing option?