-
Notifications
You must be signed in to change notification settings - Fork 41
Multi region TO implementation
If you are implementing the TOMP API as TO and have many regions where your assets are not allowed to cross, then namespacing the API is recommended.
Imagine a bike operator that serves 100 different cities in Europe wanting to ingrate most of the locations using the TOMP API. Planning and booking trips would be possible by keeping regions in mind when filtering f.x. when “to” and “from” parameters are passed to the planning module. But problems quickly arise f.x. with listing pricing in the operators module. Different countries will have different pricing in different currencies. Also the regions in the module could quickly grow to a long list. From the point of view of an MP operating across Europe, the MP would probably also want to use the TO’s integrated on a city basis as you would not want to include a TO in a planning request in a city where that TO does not operate, thus wasting server power both on the TO and MP side. The solution is a namespaced approach like seen in GBFS.
By namespacing the different regions the TO solves the multi-region issue. This means that each region will have its own base URL. A TO serving bikes in Copenhagen, Berlin and Amsterdam could choose to serve them at the following URLs:
http://example.to/tomp/copenhagen/ http://example.to/tomp/berlin/ http://example.to/tomp/amsterdam/
Each region can now have unique pricing and different rules defined. The transport operator should try to segment the regions by geographic area, pricing or meta information. This could f.x. be by city.
It is recommended that the TO serves a list of URLs f.x. on Github for making it easier for MPs to identify regions until a more unified discovery solution is in place.
This approach should not be used if you are serving trips that can go across regions, f.x. As a train operator serving trips across Europe.
Introduction
- Roadmap
- Semantic versioning
- Use cases
- Changes per version
- Contribution
- Participants
Workflow
- Operator information
- Planning phase
- Booking phase
- Trip execution phase - start
- Trip execution phase - on route
- Trip execution phase - end
- Support
- Payment
Points of attention
- Modalities
- Specifying locations
- GDPR
Eco system
- Relations
Introduction
Scope of the TOMP-API
Versioning and releases
Process Flows
- Authentication
- Operator Information
- Privacy and Registration
- Planning Module
- Booking Module
- Trip Execution Module
- Payment Module
- Support Module
Meta-Information
Reference implementations
To-dos and risks
Technical Specifications
A1 List of terms and definitions
A2 Passenger characteristics dictionary
A3 APIs available on the transportation ecosystem
A4 Overview of the User stories
A5 Authors, Architects, collaborators and stakeholders involved
A6 Adoption and Implementation of the TOMP-API