/rome2rio/routes/search

POST /api/rome2rio/routes/search

Price: 5 credits

Plan all the ways to travel between two places with Rome2Rio's multimodal trip planner. Give an origin and destination by name or by coordinates and get every ranked route (train, bus, drive, fly, ferry, rideshare and combinations) with total duration, indicative price ranges by class and currency, per-leg segments and transfers, the transport mode and operating carrier of each leg, service frequency and operating days, the boarding and alighting stops, ticket booking deeplinks and the map polyline of each line. Prices are indicative ranges, not live fares.

How to use it

Search all travel routes between an origin and destination (by name via origin/destination or by coordinates via origin_pos/destination_pos as 'lat,lng'). Set currency (ISO) and language_code for localized names. Returns routes with name, duration (seconds), transport_kinds, is_connectable, transfer_durations (connection/wait seconds between consecutive segments), origin/destination places, indicative_prices (fare_class, currency_code, price, price_low, price_high), booking_links (ticket deeplinks), booking_configuration (max passengers, age groups), transit_guides (editorial articles) and segments (with per-leg booking_links, booking_configuration and transit_guides) -> options -> hops (vehicle_kind, carrier, line with stops and polyline, frequency, operating_days, codeshares, indicative_prices).

Parameters

Request body

Response

Errors

Response headers