This is a tool for search route path for EVE-ONLINE game.
It does not use EVE-ONLINE API it works same. It based and copied dijkstra algorithm. Also, you are able to find source original source code here.
$ npm installDownload the latest files solar system tables from here. It should be in .csv format
Link for download mapSolarSystems.csv
Link for download mapSolarSystemJumps.csv
These files should be placed in folder 'input'
$ npm run generateGraph$ npm run build
$ npm run execWhen server will start you need send POST request
// URL http://yoursite/route/origin/destination
// with body
{
type: 'secure' // secure|insecure|shortest
connections: [] // [solarSystemFrom, solarSystemTo][]
}
// connections example
const AMARR = 30002187;
const J212812 = 31001180;
{
type: 'secure'
connections: [[AMARR, J212812]]
} @Body('origin') origin: number,
@Body('destinations') destinations: number[],
@Body('flag') flag: SearchFlag,
@Body('connections') connections?: string[],
@Body('avoid') avoid?: number[],
@Body('count') count?: number,
// URL http://yoursite/route/findClosest
// with body
{
"origin": 31001027,
"flag": "shortest",
"connections": [
"31001027|31000005",
"31001027|30045348",
"31001027|31000277",
"31000005|31001027",
"30045348|31001027",
"30045348|30003127",
"31000277|31001027",
"31000277|30003881",
"31000277|30000028",
"31000277|30003127",
"30003127|30045348",
"30003127|31000277",
"30003127|30001442",
"30001442|30003127",
"30001442|30000028",
"30003881|31000277",
"30000028|31000277",
"30000028|30001442",
"30000028|30000186",
"30000186|30000028",
"30000186|31002170"
],
"avoid": [
31000277
],
"destinations": [
31000005,
30003127,
30001442,
30003881,
31002170
],
"count": 1
}