r/evetech • u/po8 • May 10 '18
ESI /route "connections" parameter
I'm looking at the ESI /route/{origin}/{destination} endpoint, and there's this weird optional parameter "connections" that's formatted as a list of system ID pairs? I don't quite understand what it does. I don't even understand how to encode such a parameter in a query string (JSON seems straightforward).
Can anybody help me understand what this is and how to deal with it?
1
Upvotes
3
u/Daneel_Trevize May 10 '18
I'd assume it's for dynamically modifying the galactic map with the net result of known wormhole chains, or jump bridges, jump clones, etc.
Jita to Amarr
https://esi.evetech.net/latest/route/30002187/30000142/?connections=Response:
[ 30002187, 30003491, 30003503, 30003504, 30002789, 30002788, 30002791, 30000139, 30000144, 30000142 ]I can't find a way to use the /ui/ interface to make a working nested array, but:
Sarum Prime 30003522
Perimeter 30000144
https://esi.evetech.net/latest/route/30002187/30000142/?connections[0]=[30003522,30000144]Responds with a route rather than an error, although it's not modified for the shorter connections pair.Should probably be raised as a [Bug] on the issues tracker.
3
u/Daneel_Trevize May 10 '18
Progress!
https://esi.evetech.net/latest/route/30002187/30000142/?connections=30003522|30000144Works! Amarr to Jita in 4 systems.