publicTransitRoutes
Retrieve public transit routes from start to destination with details on fare, travel time, transfers, and distances. Specify coordinates, language, and optional search time for accurate routing.
Instructions
Retrieves public transportation routes from start to destination.
Args: startLon (str): longitude of the starting point (WSG84). startLat (str): latitude of the starting point (WSG84). destLon (str): longitude of the destination (WSG84). destLat (str): latitude of the destination (WSG84). language (int): language of the route; 0 for Korean and 1 for English. searchTime (str, optional): Sets the time for the route to be searched. Used as information to indicate whether transportation is in operation. See [service] in the response for the operation status.
Returns: route information
- itineraries: route details
- fare: total fare
- totalTime: in seconds
- transferCount:
- totalWalkDistance: in meters
- totalDistance: in meters
- totalWalkTime: in seconds
- legs: legs in the route
- distance: in meters
- sectionTime: in seconds
- mode: transportation mode
- route: transportation route
- start: starting point of the leg
- end: destination of the leg
Input Schema
Name | Required | Description | Default |
---|---|---|---|
destLat | Yes | ||
destLon | Yes | ||
language | No | ||
searchTime | No | ||
startLat | Yes | ||
startLon | Yes |