Skip to content

Repository files navigation

Description

This is a tool for search route path for EVE-ONLINE game.

How it works?

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.

Getting started

Install dependencies

$ npm install

Downloads

Download 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'

Generate new graph

$ npm run generateGraph

And build and start

$ npm run build
$ npm run exec

How to use

When 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
}

License

MIT licensed.

About

Will start server which will work with one route - same EVE API route

Resources

Stars

3 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages