Home > sncf.js > PlacesManager > get
PlacesManager.get() method
Get a place by id
Signature:
typescript
get(stationID: string): Promise<StopArea | AdministrativeRegion>;
Parameters
Parameter | Type | Description |
---|---|---|
stationID | string | The id of the station to get |
Promise<StopArea | AdministrativeRegion>
Example
This example shows how to get a place by id
javascript
const place = await client.places.get("stop_area:SNCF:87686006")
console.log(place)