search_stations
Look up Swedish train stations by name or location signature to get the exact code, county and coordinates needed for train queries, including distance from a given latitude and longitude.
Instructions
Find Swedish train stations by name or location signature. Returns each station's display name, location signature (the short code used by the other train tools, e.g. "Cst" for Stockholm Central), county codes and coordinates; pass latitude/longitude to also get the distance to each match. Use this to look up the exact station before calling get_train_announcements when a name is ambiguous. Returns an error result (isError: true) if TRAFIKVERKET_API_KEY is missing/invalid or the Trafikverket API is unreachable. Coverage: Sweden only (Trafikverket data).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of stations to return (1-25) | |
| query | Yes | Station name or part of it (e.g. "Göteborg", "Lund"), or a location signature (e.g. "Cst") | |
| latitude | No | Optional: latitude, to include distance to each match | |
| longitude | No | Optional: longitude, to include distance to each match |