# Shortest route on ESI longer than ingame route

**URL:** <https://forums.eveonline.com/t/shortest-route-on-esi-longer-than-ingame-route/329581>\
**Category:** Third Party Developers\
**Created:** [September 24, 2021, 5:48pm UTC](https://forums.eveonline.com/t/shortest-route-on-esi-longer-than-ingame-route/329581 "2021-09-24T17:48:40Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grand\_Zen](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/grand_zen/32/289888_2.png) [@Grand\_Zen](https://forums.eveonline.com/u/Grand_Zen)\
**Post date:** [September 24, 2021, 5:48pm UTC](https://forums.eveonline.com/t/shortest-route-on-esi-longer-than-ingame-route/329581/1 "2021-09-24T17:48:40Z")

</div>

Hi, im confused, maybe missing the obvious. But hopelfully somebody can help.

I want to calculate the route from Jita to Irmalin with the API.

The shortest route ingame, takes 35 jumps.  
The shortest route on ESI is taking 47. It returns an array with 48 system\_ids.

This is my api call:

```auto
https://esi.evetech.net/latest/route/30003935/30000142/?datasource=tranquility&flag=shortest

```

I tried on the EVE Swagger interface, this also returns me the same array. However, when I let everoute determine the route, they do get the same 35 jumps as ingame.

Anybody know what could be the cause of this?

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [September 24, 2021, 7:02pm UTC](https://forums.eveonline.com/t/shortest-route-on-esi-longer-than-ingame-route/329581/2 "2021-09-24T19:02:19Z")

</div>

See [https://github.com/esi/esi-issues/issues/1285](https://github.com/esi/esi-issues/issues/1285). Looks like there’s actually been a PR open for a while to fix it 😬. I’ll see about getting that merged in tonight.

---

<div class="post-metadata">

**Author:** ![Grand\_Zen](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/grand_zen/32/289888_2.png) [@Grand\_Zen](https://forums.eveonline.com/u/Grand_Zen)\
**Post date:** [September 24, 2021, 8:50pm UTC](https://forums.eveonline.com/t/shortest-route-on-esi-longer-than-ingame-route/329581/3 "2021-09-24T20:50:39Z")

</div>

Would be great if that be merged in tonight. How can you tell/determine if it actually happened?

Just wondering, how do dotlan and everoute do this then. They seem also to use the same API.

---

<div class="post-metadata">

**Author:** ![Gerard\_Amatin](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/gerard_amatin/32/481361_2.png) [@Gerard\_Amatin](https://forums.eveonline.com/u/Gerard_Amatin)\
**Post date:** [September 24, 2021, 9:10pm UTC](https://forums.eveonline.com/t/shortest-route-on-esi-longer-than-ingame-route/329581/4 "2021-09-24T21:10:43Z")

</div>

Not sure if it’s the case here, but the ingame route can take ansiblex jump gates that are accessible for your character into account (if you tick that box).

---

<div class="post-metadata">

**Author:** ![Grand\_Zen](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/grand_zen/32/289888_2.png) [@Grand\_Zen](https://forums.eveonline.com/u/Grand_Zen)\
**Post date:** [September 24, 2021, 9:40pm UTC](https://forums.eveonline.com/t/shortest-route-on-esi-longer-than-ingame-route/329581/5 "2021-09-24T21:40:33Z")

</div>

I tried fiddling with that, but didnt make a difference. And on dotlan or everoute im not even logged on.

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [September 25, 2021, 1:37am UTC](https://forums.eveonline.com/t/shortest-route-on-esi-longer-than-ingame-route/329581/6 "2021-09-25T01:37:21Z")

</div>

I updated the PR for latest data and approved the PR. However there’s probably some process to get it released. So will need to wait for someone from CCP to do so. I pinged one of the devs, so hopefully it gets sorted next week.

---

<div class="post-metadata">

**Author:** ![Grand\_Zen](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/grand_zen/32/289888_2.png) [@Grand\_Zen](https://forums.eveonline.com/u/Grand_Zen)\
**Post date:** [September 25, 2021, 6:03pm UTC](https://forums.eveonline.com/t/shortest-route-on-esi-longer-than-ingame-route/329581/7 "2021-09-25T18:03:00Z")

</div>

Thanks for this. Really appreciate it.

I now work around this with adding a connection. Especially that one between Hykkota \<=\> Ahbazon.

But is there some kind of overview you know of with all the connections? I only really know about this one.

How can we tell the new code is release btw, just checking if it works or is that visible somewhere?

---

<div class="post-metadata">

**Author:** ![Steve\_Ronuken](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/steve_ronuken/32/373894_2.png) [@Steve\_Ronuken](https://forums.eveonline.com/u/Steve_Ronuken)\
**Post date:** [September 25, 2021, 6:25pm UTC](https://forums.eveonline.com/t/shortest-route-on-esi-longer-than-ingame-route/329581/8 "2021-09-25T18:25:07Z")

</div>

Are you wanting a list of all the connections?

[https://www.fuzzwork.co.uk/dump/latest/mapSolarSystemJumps.csv](https://www.fuzzwork.co.uk/dump/latest/mapSolarSystemJumps.csv)

I suspect the sites mentioned aren’t using the api. They’re probably using their own code. This kind of path finding isn’t particularly difficult to implement. A\* or Dijkstra is normally the way to go. like using networkx in python.

---

<div class="post-metadata">

**Author:** ![Grand\_Zen](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/grand_zen/32/289888_2.png) [@Grand\_Zen](https://forums.eveonline.com/u/Grand_Zen)\
**Post date:** [September 25, 2021, 7:22pm UTC](https://forums.eveonline.com/t/shortest-route-on-esi-longer-than-ingame-route/329581/9 "2021-09-25T19:22:08Z")

</div>

Thanks. This is helpful. I’ll read on the Dijkstra thing. I’ve seen it before but thought using the API would make more sense since that is directly communicating to the source.

---

<div class="post-metadata">

**Author:** ![Steve\_Ronuken](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/steve_ronuken/32/373894_2.png) [@Steve\_Ronuken](https://forums.eveonline.com/u/Steve_Ronuken)\
**Post date:** [September 25, 2021, 7:23pm UTC](https://forums.eveonline.com/t/shortest-route-on-esi-longer-than-ingame-route/329581/10 "2021-09-25T19:23:01Z")

</div>

The route api, iirc, doesn’t actually talk to eve. It’s standalone.

---

<div class="post-metadata">

**Author:** ![Grand\_Zen](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/grand_zen/32/289888_2.png) [@Grand\_Zen](https://forums.eveonline.com/u/Grand_Zen)\
**Post date:** [September 25, 2021, 8:02pm UTC](https://forums.eveonline.com/t/shortest-route-on-esi-longer-than-ingame-route/329581/11 "2021-09-25T20:02:43Z")

</div>

Never used networkx and Im not really a pro in Python, so I guess something new for me to work with.

About that fuzzworks dump, that is everything. All connections. Is there a dump with the connections that were new? Meaning, not in the esi? For now, to avoid a complete overhaul of the code, I better stick to the esi first. And in such case, I only need those “new” added connections.

---

<div class="post-metadata">

**Author:** ![Steve\_Ronuken](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/steve_ronuken/32/373894_2.png) [@Steve\_Ronuken](https://forums.eveonline.com/u/Steve_Ronuken)\
**Post date:** [September 25, 2021, 8:10pm UTC](https://forums.eveonline.com/t/shortest-route-on-esi-longer-than-ingame-route/329581/12 "2021-09-25T20:10:01Z")

</div>

Not something I maintain, I’m afraid.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [December 24, 2021, 8:10pm UTC](https://forums.eveonline.com/t/shortest-route-on-esi-longer-than-ingame-route/329581/13 "2021-12-24T20:10:44Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
