Możesz wyznaczyć trasę dostosowaną do różnych typów pojazdów. Jeśli nie określisz typu pojazdu, interfejs Routes API użyje domyślnie samochodu napędzanego benzyną.
Środek transportu ustawiasz za pomocą parametru travelMode, wybierając między transportem publicznym, samochodem, pojazdem dwukołowym, pieszo lub rowerem.
Typ pojazdu
Opis
Rower
obliczanie trasy dla rowerów i innych pojazdów napędzanych siłą ludzkich mięśni. Informacje o pojazdach dwukołowych z silnikiem znajdziesz w sekcji Pojazdy dwukołowe.
Wyznacz trasę dojazdu transportem publicznym, korzystając z dostępnych w regionie opcji transportu publicznego. Opcje transportu mogą obejmować m.in. autobusy, metro i pociągi. Trasa przejazdu obejmuje też zwykle instrukcje dotyczące chodzenia do i z stacji oraz między stacjami.
Pojazdy dwukołowe to pojazdy dwukołowe z silnikiem (np. motocykle). Tryb jazdy pojazdem dwukołowym różni się od trybu jazdy rowerem, który jest trybem jazdy napędzanej siłą ludzkich mięśni.
[null,null,["Ostatnia aktualizacja: 2025-02-06 UTC."],[[["The Routes API offers route options tailored to various vehicle types, including cars, two-wheelers, transit, and eco-friendly options, or defaults to a gasoline car if unspecified."],["You can specify your preferred mode of transportation using the `travelMode` parameter, selecting from options such as transit, driving, two-wheeled vehicles, walking, or bicycling."],["Walking, bicycling, and two-wheel routes are currently in beta and may lack comprehensive pedestrian or cycling paths, requiring a user warning in your application."]]],["The Routes API provides route options for various travel modes, selectable via the `travelMode` parameter. Options include transit, driving (default), two-wheeled vehicles, walking, and bicycling. Users can specify vehicle types for customized routes. Walking, bicycling, and two-wheeled routes are in beta, requiring a warning display to users. Transit routes include public transport like buses, subways, and walking instructions to and from stations. Two-wheeled routes are for motorized vehicles, distinguishing them from human-powered bicycles.\n"]]