Examples
Start with some vanilla javascript implementations of our API. Clone the examples to see how you can implement features in your framework.
Vehicle list
Example of how to query the list of vehicles.
Vehicle details
Example of how to retrieve vehicle details
Stations
Example of how to query the 20 closest stations
Station details
Example of how to query and parse station data
Route
Example of how to request a route and show it on a map
Route (NEW)
Example of how to request a route and show it on a map
Alternative routes
Display alternative routes on a map
Alternative stations
Display alternative stations along the route
Operator preference
Plot a route where that takes into account operator preferences or exclusions
Elevation plot
Display the elevation profile of a journey
Battery capacity
Change the battery capacity and reroute a journey
State of charge
Change the SOC and reroute a journey
Toll roads and Ferries
Extend the journey overview by displaying toll roads and ferries
Mapbox Vector Tiles
Render stations on a map by using Mapbox Vector Tiles
GeoJSON tiles
Example of how to show stations on a map using the GeoJSON response from our Tile Service
Isolines
Example of how to show how far a vehicle is able to go from a certain location