# Way to many unlogical segments with unusable steps

**URL:** https://ask.openrouteservice.org/t/way-to-many-unlogical-segments-with-unusable-steps/7198
**Category:** directions
**Created:** [April 8, 2025, 7:36am UTC](https://ask.openrouteservice.org/t/way-to-many-unlogical-segments-with-unusable-steps/7198 "2025-04-08T07:36:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jshamg](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jshamg/32/3675_2.png) [@jshamg](https://ask.openrouteservice.org/u/jshamg)
#### Post date: [April 8, 2025, 7:36am UTC](https://ask.openrouteservice.org/t/way-to-many-unlogical-segments-with-unusable-steps/7198/1 "2025-04-08T07:36:31Z")

</div>

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](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](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:

```auto
{
      "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

---

<div class="post-metadata">

### Author: ![jshamg](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jshamg/32/3675_2.png) [@jshamg](https://ask.openrouteservice.org/u/jshamg)
#### Post date: [April 8, 2025, 8:45am UTC](https://ask.openrouteservice.org/t/way-to-many-unlogical-segments-with-unusable-steps/7198/2 "2025-04-08T08:45:26Z")

</div>

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](https://www.komoot.com/smarttour/33501099?ref=wdd)

---

<div class="post-metadata">

### Author: ![andrzej](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/andrzej/32/10_2.png) [@andrzej](https://ask.openrouteservice.org/u/andrzej)
#### Post date: [April 8, 2025, 10:43am UTC](https://ask.openrouteservice.org/t/way-to-many-unlogical-segments-with-unusable-steps/7198/3 "2025-04-08T10:43:43Z")

</div>

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](https://wetransfer.com/)?

Cheers!

---

<div class="post-metadata">

### Author: ![jschnell](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jschnell/32/971_2.png) [@jschnell](https://ask.openrouteservice.org/u/jschnell)
#### Post date: [April 8, 2025, 11:03am UTC](https://ask.openrouteservice.org/t/way-to-many-unlogical-segments-with-unusable-steps/7198/4 "2025-04-08T11:03:41Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jshamg](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jshamg/32/3675_2.png) [@jshamg](https://ask.openrouteservice.org/u/jshamg)
#### Post date: [April 8, 2025, 11:19am UTC](https://ask.openrouteservice.org/t/way-to-many-unlogical-segments-with-unusable-steps/7198/5 "2025-04-08T11:19:54Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![jshamg](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jshamg/32/3675_2.png) [@jshamg](https://ask.openrouteservice.org/u/jshamg)
#### Post date: [April 8, 2025, 11:23am UTC](https://ask.openrouteservice.org/t/way-to-many-unlogical-segments-with-unusable-steps/7198/6 "2025-04-08T11:23:53Z")

</div>

do you have an idea how tho? is WeTransfer different than [file.io](http://file.io)? i can send the files via weTransfer no problem!

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