Entur Developer
Sales platform

Shared mobility

The Shared Mobility API lets you book shared mobility trips and makes transport operators' shared mobility products available for sale. It acts as an API layer between clients that offer trips through their own channels and transport operators that provide the products.

All communication with transport operators is based on the TOMP (Transport Operator to Mobility-as-a-Service Provider) API standard, which gives Entur a standardised and scalable integration model.

How it works

The solution is divided into three main roles:

  • Client applications — for example a public transport authority app — that present shared mobility options to end users.
  • Entur Shared Mobility services, which handle booking logic, pricing, payment, and orchestration.
  • Transport operators, who provide the shared mobility assets and expose TOMP-compliant APIs.

Entur's platform means a client application does not integrate directly with each operator. Instead, Entur provides a single API and takes responsibility for routing, protocol translation, and the lifecycle of each shared mobility trip.

Shared mobility architecture: clients and transport operators integrate through Entur's shared mobility services

Services

The shared mobility domain is made up of three services:

  • Shared Mobility — the main service. It facilitates the sale of products from transport operators that support the TOMP standard, and lets clients start, pause, and end a trip. It is fully integrated with Entur's sales platform for creating orders, processing payments, sending receipts to travellers, and handling settlements. See the API reference.
  • Shared Mobility Router — an internal translation and routing layer that handles all TOMP communication between Entur and the transport operators. Clients and operators do not call it directly.
  • Shared Mobility TO Reference — an open-source reference application that shows transport operators how to implement the TOMP standard. See shared-mobility-to-ref.

Guides

Getting access

The Shared Mobility API is a partner service. To use it you need a partnership agreement with Entur, a registered distribution channel, and OAuth 2.0 client credentials. See Authentication for how to create a client and exchange your credentials for an access token, and the Sell products in your client for the full sales flow.

Trip sequence

The diagram below shows the flow for booking, running, and ending a scooter trip, from the traveller's first tap on the map to the final trip summary.

Entur Sales PlatformTransport operatorShared MobilityMobility APIClientTravelerEntur Sales PlatformTransport operatorShared MobilityMobility APIClientTravelerTaps the mapRetrieve GBFS dataReal-time dataGET /operators/availabilityOperators the user may bookMap with available scootersSelects a scooterScooter detailsStarts the ridePOST /bookings/one-stop(autoStart=true, assetId)Retrieve GBFS dataGBFS dataPOST /bookings/one-stopBookingCreate orderOrder confirmedPOST /legs/{id}/events(SET_IN_USE)Leg updatedbookingId and orderTravel time and amountEnds the ridePOST /bookings/{id}/one-stop/event(START_FINISHING)POST /legs/{id}/events(START_FINISHING)Leg updatedUpdate order with final priceCharge the customerOKTakes a picture of the scooterPOST /bookings/{id}/one-stop/event(FINISH)POST /legs/{id}/events(FINISH)Leg updatedOKTravel summary
Last modified on
Did you find what you were looking for?