new Station(agent, stationId)
Create a new Station for the given api provider and specific
stationId.
Parameters:
| Name | Type | Description |
|---|---|---|
agent |
ESIAgent | The agent used to generate web requests |
stationId |
Number | The station id that is used for all requests |
Methods
-
info()
-
Get information on a station. This route is cached for up to 300 seconds.
This makes an HTTP GET request to
/universe/stations/{station_id}/. The route version isv2.On success, this resolves to information about a station. An example result is:
{ "max_dockable_ship_volume": 50000000, "name": "Jakanerva III - Moon 15 - Prompt Delivery Storage", "office_rental_cost": 10000, "owner": 1000003, "position": { "x": 165632286720, "y": 2771804160, "z": -2455331266560 }, "race_id": 1, "reprocessing_efficiency": 0.5, "reprocessing_stations_take": 0.05, "services": [ "courier-missions" ], "station_id": 60000277, "system_id": 30000148, "type_id": 1531 }Returns:
A Promise that resolves to the parsed JSON of the response.
- Type
- Promise.<Object>