Home > sncf.js > PlacesManager > search
PlacesManager.search() method
Search for a place by name
Signature:
typescript
search(station: string): Promise<PlaceManagerResult>;
Parameters
Parameter | Type | Description |
---|---|---|
station | string | The name of the station to search for |
Promise<PlaceManagerResult>
Example
This example shows how to search for a place by name
javascript
const places = await client.places.search("Paris")
console.log(places)