Way to many unlogical segments with unusable steps

Hi People,
I’m a bit confused. My idea was to parse a gpx, send the coordinates and then get meaningful steps and store them to offline-navigate. But instead i get from a pretty short gpx route a ton of steps sometimes in absurd directions for VERY short distances. I’m close to throwing it all away and rever back to visual manual navigation along a gpx coordinate on a track. it’s part of a cycling project.

This is my GPX file: https://limewire.com/d/wq2MN#W5IUiZgZqY (i cant directly attach it here, it’s coming from Komoot: EDIT I CANNOT attach the link here because I’m a "new user and can only add 2 Links…)

EDIT: because of the charater limit i also have to attach my response from ORS.

This is my database Entry holding the response:
https://limewire.com/d/IgeFG#7oFuRxvvd5

in there are for example segments like this that dont make sense, because it is a simple straight route along a street:

{
      "steps": [
        {
          "name": "Mariannenstraße",
          "type": 11,
          "distance": 9,
          "duration": 1.8,
          "way_points": [7, 8],
          "instruction": "Head north on Mariannenstraße"
        },
        {
          "name": "-",
          "type": 10,
          "distance": 0,
          "duration": 0,
          "way_points": [8, 8],
          "instruction": "Arrive at Mariannenstraße, on the right"
        }
      ],
      "distance": 9,
      "duration": 1.8,
      "percentage": 0.1786033220217896
    },
    {
      "steps": [
        {
          "name": "Mariannenstraße",
          "type": 11,
          "distance": 69,
          "duration": 13.8,
          "way_points": [8, 10],
          "instruction": "Head north on Mariannenstraße"
        },
        {
          "name": "-",
          "type": 10,
          "distance": 0,
          "duration": 0,
          "way_points": [10, 10],
          "instruction": "Arrive at Mariannenstraße, on the right"
        }
      ],
      "distance": 69,
      "duration": 13.8,
      "percentage": 1.369292135500387
    },
    {
      "steps": [
        {
          "name": "Mariannenstraße",
          "type": 11,
          "distance": 7.4,
          "duration": 1.5,
          "way_points": [10, 11],
          "instruction": "Head north on Mariannenstraße"
        },
        {
          "name": "-",
          "type": 10,
          "distance": 0,
          "duration": 0,
          "way_points": [11, 11],
          "instruction": "Arrive at Mariannenstraße, on the right"
        }
      ],
      "distance": 7.4,
      "duration": 1.5,
      "percentage": 0.146851620329027
    },
    {
      "steps": [
        {
          "name": "Mariannenstraße",
          "type": 11,
          "distance": 7.3,
          "duration": 1.5,
          "way_points": [11, 12],
          "instruction": "Head northeast on Mariannenstraße"
        },
        {
          "name": "-",
          "type": 1,
          "distance": 0,
          "duration": 0,
          "way_points": [12, 13],
          "instruction": "Turn right"
        },
        {
          "name": "-",
          "type": 10,
          "distance": 0,
          "duration": 0,
          "way_points": [13, 13],
          "instruction": "Arrive at your destination, on the left"
        }
      ],
      "distance": 7.3,
      "duration": 1.5,
      "percentage": 0.1448671389732294
    },
    {
      "steps": [
        {
          "name": "-",
          "type": 11,
          "distance": 0,
          "duration": 0,
          "way_points": [13, 14],
          "instruction": "Head northwest"
        },
        {
          "name": "Mariannenstraße",
          "type": 1,
          "distance": 56.2,
          "duration": 11.2,
          "way_points": [14, 15],
          "instruction": "Turn right onto Mariannenstraße"
        },
        {
          "name": "-",
          "type": 0,
          "distance": 0,
          "duration": 0,
          "way_points": [15, 16],
          "instruction": "Turn left"
        },
        {
          "name": "-",
          "type": 10,
          "distance": 0,
          "duration": 0,
          "way_points": [16, 16],
          "instruction": "Arrive at your destination, on the right"
        }
      ],
      "distance": 56.2,
      "duration": 11.2,
      "percentage": 1.115278521958286
    },
    {
      "steps": [
        {
          "name": "-",
          "type": 11,
          "distance": 0,
          "duration": 0,
          "way_points": [16, 17],
          "instruction": "Head southeast"
        },
        {
          "name": "Mariannenstraße",
          "type": 0,
          "distance": 8.3,
          "duration": 1.7,
          "way_points": [17, 18],
          "instruction": "Turn left onto Mariannenstraße"
        },
        {
          "name": "-",
          "type": 10,
          "distance": 0,
          "duration": 0,
          "way_points": [18, 18],
          "instruction": "Arrive at Mariannenstraße, on the left"
        }
      ],
      "distance": 8.3,
      "duration": 1.7,
      "percentage": 0.164711952531206
    },

It’s a 4.88km ride so i dont understand why i would need so many instructions and most of them are completely wrong (telling to go right where the route doesnt go)

I would be happy if someone could explain.

Greetings
-Joshi

this is the route from komoot if you dont want to download my gpx file (i can totally understand!) https://www.komoot.com/smarttour/33501099?ref=wdd

Thanks for reaching out!

Could you maybe provide the sample files via different means than a peer-to-peer/torrents file sharing platform, e.g. WeTransfer?

Cheers!

Hey,

without having looked at your files, I’ll take a shot at what’s happening:

When you send a list of coordinates [A, B, C, D] to the openrouteservice, asking for directions, you will get a route A → D comprised of “subroutes” A → B, B → C, C → D.

The geometry is not impacted - but instructions are, since ors will route you from A to B, thus giving instructions for arrival and the like, and then from B to C, giving instructions for departure.

Thats why you see Arrive at Mariannenstraße, on the right and Head northeast on Mariannenstraße.

Best regards

Hi, thanks for your response. is there a way to “clean” the route prior to getting direction? Is it maybe one of the snapping or optimize endpoints?

do you have an idea how tho? is WeTransfer different than file.io? i can send the files via weTransfer no problem!

This is a WeTransfer Link of both files: https://we.tl/t-Os9r8FJ7Jg

1 Like