new Stations(agent)
Create a new Stations instance using the given agent.
Parameters:
| Name | Type | Description |
|---|---|---|
agent |
ESIAgent | The ESI Agent |
Members
Methods
-
get(id)
-
Create a new Station end point targeting the particular system by
id.Parameters:
Name Type Description idNumber The station id
Returns:
- Type
- Station
-
names(ids)
-
Resolve a set of IDs to names and categories. Supported ID's for resolving are: Characters, Corporations, Alliances, Stations, Solar Systems, Constellations, Regions, Types.
This makes an HTTP POST request to
/universe/names/. The route version isv2.The array length of
idsmust be between1and1000.On success, this resolves to list of id/name associations for a set of ID's. ID's that cannot be resolved are not returned. An example result is:
[ { "id": 95465499, "name": "CCP Bartender" } ]Note that the type schema of the response is modified from what is defined in ESI. Specifically:
- The
categoryproperty is removed.
Results will only include matches with the station category. If
idsis longer than the reported maximum length for ESI, the array will be split into smaller chunks and multiple requests will be made and then concatenated back together.Parameters:
Name Type Description idsArray.<Number> The ids to resolve.
Returns:
A Promise that resolves to the parsed JSON of the response.
- Type
- Promise.<Array.<Object>>
- The