a405d26 Split out logic for route/search buttons in seperate files
~mil pushed to ~mil/mobrouteui git
Disclaimer: Mobroute is in active development and as such is currently aimed at early adopters and those who wish to help with testing. In it's current state Mobroute is at a proof-of-concept stage, routing works for select metros. See the mailing list note for more project details.
Mobroute is a minimal FOSS public-transportation router and suite of tools allowing you to route between locations by using public transportation data (GTFS) data. GTFS feeds are automatically fetched from the from the Mobility Database and the application is designed to have as few 'knobs' to adjust before being practically useful. The core of the routing algorithm is based on the CSA algorithm. Mobroute also provides auxiliary support for functionality using the same GTFS data including: stop times / timetables lookups for nearby stations, assistance finding all nearby stations.
The Mobroute project is composed of 3 seperate codebases / smaller projects:
Featureset
Compared to other Opensource Routers (such as GraphHopper, OpenTripPlanner, Valhalla, et al.):
What can be done with Mobroute today:
route
command:
stops
command:
stoptimes
command:
Note, in all examples there will be an initial cost for downloading the Mobility DB and the targeted GTFS source file. Once downloaded initial, the GTFS file is cached and subsequent commands will run quicker.
A. Route: Route from Grand Palace to the Hilton Garden, Brussels
mobroute \
-f '{glob: bruxelles}' \
-cmd route \
-lat 50.85728 \
-lon 4.351426 \
-dlat 50.83214 \
-dlon 4.350534
B. Stops: Display nearby stops near the Grand Palace, Brussels:
mobroute \
-f '{glob: bruxelles}' \
-cmd stops \
-lat 50.85728 \
-lon 4.351426
C. Stoptimes: Display stoptimes and departure times for stops near the Grand Palace, Brussels:
mobroute \
-f '{glob: bruxelles}' \
-cmd stoptimes \
-lat 50.85728 \
-lon 4.351426
Mobroute was built with Mepo in mind; in future releases of Mepo, mobroute will automatically be integrated (e.g. menuing for various mobroute operations). Until then, mobroute may still be integrated by performing the following:
./build.sh install
This will install both the mobroute
executable and a script
mepo_menu_mobroute.sh
to /usr/local/bin. Once installed, launching
the central menu within mepo, you'll see new entries for Route: via Mobroute directions
and Route: show Mobroute stoptimes on cursor
.
Do note, that by default Mobroute is configured to use NYC's subway
system GTFS file. This can be changed by configuring a few variables
set in mepo_menu_mobroute.sh
which
are exported as ENV variables.
Debugging can also be accomplished with Mepo by using the -i
feature on
mepo's cli, e.g.:
mobroute -cmd route -format mepolang | mepo -i
For testing on Android, the Mobrouteui app may be used. This UI allows you to query Nominatim to/from points and calculate a route via Mobroute's ETL flow & algorithm on-the-go on an Android device. The app uses Mobroute's Go code compiled via Gio. This app is in active development alongside Mobroute overall so this app should be viewed as more of a testbed for using Mobroute on-the-go and aimed at early adopters and those who wish to help with testing and development.
NLnet has kindly awarded a grant to support Mobroute's development efforts as part of the NGI0 Entrust Fund under grant agreement No 101069594. This funding will enable the financial support for implementing of the roadmap as seen in this document. We are very thankful to NLnet for accepting our application and making this development possible.