Loading GPX-Files type RTE for routing

669 views
Skip to first unread message

Peter B

unread,
Oct 9, 2013, 5:35:37 AM10/9/13
to osm...@googlegroups.com
Until now a GPX-File of type RTE is interpreted like a track (TRK), which does not work as intended, from my point of view.
Accurate handling would be:
- create destination point for last rtept
- create intermediate points for
all other rtept
then you could start the normal routing.
Thanks, Peter

EXAMPLE:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<gpx xmlns="http://www.topografix.com/GPX/1/0" version="1.0" creator="http://www.routeconverter.com">
  <rte>
    <name>G41 - NeufBrisach</name>
    <rtept lat="48.04249" lon="7.87764"><name>G41</name></rtept>
    <rtept lat="48.10761" lon="7.77797"><name>Nimburg</name></rtept>
    <rtept lat="48.10582" lon="7.75982"><name>Nimburg Bahnhof</name></rtept>
    <rtept lat="48.12840" lon="7.74304"><name>Bahlingen</name></rtept>
    <rtept lat="48.14243" lon="7.70922"><name>Endingen</name></rtept>
    <rtept lat="48.16462" lon="7.55573"><name>Marckolsheim, Super-U</name></rtept>
    <rtept lat="48.15592" lon="7.54426"><name>Marckolsheim</name></rtept>
    <rtept lat="48.01714" lon="7.52937"><name>Neuf-Brisach</name></rtept>
  </rte>
</gpx>

Harry van der Wolf

unread,
Oct 9, 2013, 5:51:14 AM10/9/13
to osm...@googlegroups.com
 
It is the exact same question but implemented in the current way.
 
Harry

2013/10/9 Peter B <pebo...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

V S

unread,
Oct 9, 2013, 6:34:41 PM10/9/13
to osm...@googlegroups.com
You are not exactly right, Harry ;)

There is a different issue to implement as it was mentioned, to create a route in between route points . We know that <rtept> should be interpreted as waypoints and the route should be built.
For now it is a non-implemented feature.

You pointed to a different issue, that Intermediate points should be stored as <wpt> and this was fixed.

среда, 9 октября 2013 г., 11:51:14 UTC+2 пользователь Harry van der Wolf написал:

Harry van der Wolf

unread,
Oct 10, 2013, 1:39:43 AM10/10/13
to osmand
Hi Victor,

I'm afraid we had a major mis-communication then and I obviously did not explain it clear enough.
When I created that ticket and you asked about the gpx format, I attached a file to it which contains exactly the same info as Peter gives.

My gpx called Praha-Hamburg-Amsterdam-Paris.gpx contained:
====

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxtrx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" xmlns:rcxx="http://www.routeconverter.de/xmlschemas/RouteCatalogExtensions/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" xmlns:gpxx="http://www.garmin.com/xmlschemas/WaypointExtension/v1" xmlns:nmea="http://trekbuddy.net/2009/01/gpx/nmea" version="1.1" creator="Generated by Christian Pesch's RouteConverter. See http://www.routeconverter.com">
    <rte>
        <name>New position list 1</name>
        <rtept lat="50.075542" lon="14.4377515">
            <ele>255.3</ele>
            <time>2013-08-16T15:09:09.144Z</time>
            <name>Praag, Tsjechië</name>
        </rtept>
        <rtept lat="53.5510846" lon="9.9936818">
            <ele>10.7</ele>
            <time>2013-08-16T15:09:39.015Z</time>
            <name>Hamburg, Duitsland</name>
        </rtept>
        <rtept lat="52.3702796" lon="4.8947978">
            <ele>11.5</ele>
            <time>2013-08-16T15:10:01.232Z</time>
            <name>Amsterdam, Nederland</name>
        </rtept>
        <rtept lat="48.869576" lon="2.30825">
            <ele>44.3</ele>
            <time>2013-08-16T15:10:27.286Z</time>
            <name>Avenue des Champs-Élysées, 75008 Parijs, Frankrijk</name>
        </rtept>
    </rte>
</gpx>
====

This is the form of route file multiple routing/navigation tools deliver. Some deliver a somewhat more extended format then others (the elevation and time). The elevation and time are of course only extra information and not really necessary.

I had not noticed that you had change the functionality to waypoints. I will test again.

best,
Harry




2013/10/10 V S <victor....@gmail.com>

Harry van der Wolf

unread,
Oct 10, 2013, 10:04:43 AM10/10/13
to osmand



2013/10/10 V S <victor....@gmail.com>



You pointed to a different issue, that Intermediate points should be stored as <wpt> and this was fixed.


As mentioned in my other mail. I would try to test it, but how does it work now?
If I save it from the calculated route it still creates an extended track-like route gpx. I can't find a method to save the route as waypoints.
I tried the nightly default.apk and the new-nightly apk.

Harry

 

Victor Shcherb

unread,
Oct 10, 2013, 3:40:09 PM10/10/13
to osmand
In some sense it is possible now :
1. Trkpt is used to save full geometry of the route
2. Wpt is used to save intermediate points
3. Rtept is used to save points with Turn-info
That how it works!
Files without trkpt will not work as expected.

Victor


--
You received this message because you are subscribed to a topic in the Google Groups "Osmand" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/osmand/D6YTm021iIg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to osmand+un...@googlegroups.com.

Harry van der Wolf

unread,
Oct 11, 2013, 3:29:02 AM10/11/13
to osmand
hI Victor,


2013/10/10 Victor Shcherb <victor....@gmail.com>

In some sense it is possible now :
1. Trkpt is used to save full geometry of the route
2. Wpt is used to save intermediate points
3. Rtept is used to save points with Turn-info
That how it works!
Files without trkpt will not work as expected.



Yes, but HOW do I save it?

I define a route with a destination and one or more waypoints.
Now what do I do next?
- First calculate the route?
- First save the defined route (no calculation yet)? And if so: How do I save the route with the waypoints?

What I try is:
= I define the route with waypoints.
At that moment I can't find a save button/option anywhere to save the route as waypoints.
= As I can't find a save option, I let OsmAnd calculate the route.
- Then from de route details I can save the entire route with all "steps" as Rtept based gpx file
- I still can't find an option to save it as "waypoint" gpx

So please explain how this functions? (and I will put it in the wiki afterwards)

regards,
Harry

Victor Shcherb

unread,
Oct 11, 2013, 5:34:43 AM10/11/13
to osmand
I don't understand what you mean, please attach the route saved by OsmAnd with intermediate points.


Best Regards,
Victor


Harry van der Wolf

unread,
Oct 11, 2013, 9:39:34 AM10/11/13
to osmand
Just to make sure: which version do I need: The Osmand-new-nightly.apk?
I tested with that one, version #2180M, and yesterday with the previous one.


2013/10/11 Victor Shcherb <victor....@gmail.com>

I don't understand what you mean, please attach the route saved by OsmAnd with intermediate points.


That is exactly the problem: How do I do that?

If I create a route with one waypoint and let OsmAnd calculate the route, I only have the option to save the route as a gpx track from the Route-details.
That is the "extended" full-route version and doesn't contain waypoints (see attached). I can only create a file with "trkpt" and "rtept" points/nodes.

I can't find another option to save the waypoints in a file. If I do it wrong then please explain how I should create such a waypoints file.

(Note that I created a short route due to the current "save mode" issue).

Harry



tryout_2013-10-11_.gpx

Victor Shcherb

unread,
Oct 11, 2013, 10:34:51 AM10/11/13
to osmand
As I see rtept and trkpt are present, but not wpt. I'm not sure if you have intermediate points, please double check it. And also please check that you are running latest nightly build 

>>  Osmand-new-nightly.apk
No, just nightly


Harry van der Wolf

unread,
Oct 11, 2013, 12:07:44 PM10/11/13
to osmand
Hi,

2013/10/11 Victor Shcherb <victor....@gmail.com>

As I see rtept and trkpt are present, but not wpt. I'm not sure if you have intermediate points, please double check it. And also please check that you are running latest nightly build 

>>  Osmand-new-nightly.apk
No, just nightly


I tested that normal nightly build yesterday. As that one didn't write the waypoints to the gpx I switched to the new-nightly.

This time I tested again with the nightly build version #56363D.

I created a route with one waypoint (see attached routepoints.jpg).
After route calculation I saved the gpx track from Route-details (see attached try_2013-10-11.gpx)

There are no waypoints in the gpx.

Harry

 
routepoints.jpg
try_2013-10-11.gpx

Peter B

unread,
Oct 11, 2013, 2:58:29 PM10/11/13
to osm...@googlegroups.com
Hi Victor and Harry,
thank for this interesting discussion.

I would like to focus on the initial contens of the topic, the IMPORT of gpx-Files type RTE, which are created by external programs or - of course by the export of osmand.
Of course the export of a route is a good idea to have it for later purpose to use it again, by importing it for navigation.

I would like to explain the big advantage I see in using RTE instead of TRK when navigating with a gpx-file create by a external tool.

TRK: If I navigate with a TRK, and I loose the track, because I made a false turn at a branch or I had to follow a deviation, then I get no assistance from the navigation system to return to the lost track. I have to find it by myself.
RTE: If I navigate with a RTE, and I loose the "line", the navigation system recalculates from the current position - whereever I am - to the next intermediate point. This is the easy way for me.

Therefore I always would prefer a RTE to a TRK if possible.

And therefore I would be happy if the current import of a RTE would be implemented in the described way -

- create destination point for last rtept
- create intermediate points for all other rtept
- of course after deleting existings points.
All subroutines for this task should exist.
Peter
Reply all
Reply to author
Forward
0 new messages