The front-end directly involved opentripplaner, an open-source project with powerful functions. Here is a brief introduction:
Opentripplanner (OTP) provides an open-source platform for multi-mode route planning. You can use the built-in Web interface of OTP to walk together,
Bicycles and public transport are used to query routes. OTP also provides APIs called by third-party programs.
Official website address: http://opentripplanner.com/
GitHub address: https://github.com/openplans/OpenTripPlanner
Its data source can be converted through shapfiles, OSM, gtfs and so on. For details, see https://github.com/openplans/OpenTripPlanner/wiki/GraphBuilder.
Packaged program: http://maps5.trimet.org/otp-dev/otp.zip to use this only need to convert map data, put under the specified folder can be used directly
See the following tutorials.
- 2 minute Introduction
- 5 minute detailed dive-in
- Available web app language translations
Of course you can also directly download the source code, GitHub documentation is also very detailed https://github.com/openplans/OpenTripPlanner/wiki/GettingStartedEclipse
The following are various projects in the source code:
• Opentripplanner-API-extended
A Web application can selectively display a map. A map server (geoserver) is required)
• Opentripplanner-API-webapp
Provides a restful API for the trip planning engine.
• Opentripplaner-geocoder
Provide a rest-style API for OTP Geographic Encoding
• Opentripplanner-graph-Builder
Used to configure and construct a trip planner diagram (command line tool)
• Opentripplanner-webapp
Provides Web UI for the trip planning Engine
• Opentripplanner‐gui
Visualization of Development and troubleshooting Diagrams
• Opentripplanner-Integration
System integration test
• Opentripplanner-Routing
Core routing algorithms, data structures, and libraries
• Opentripplanner-utils
Encoding: polylines (shapefile)
The following is the program I deployed using OSM-Beijing as the data source.
Called in other programs