How steinaustgen/newtra works
This is a browser-based Pampanga jeepney route planner and transit information app. Users choose stops and passenger type, then receive fewest-ride journey options with fares and map directions. The same JavaScript file also supports stop and route browsing, fare estimates, nearby-stop discovery, contributions, and theme preferences. The excerpts show these capabilities in a monolithic implementation; omitted portions limit confidence about some internal calls and data loading.
Main entry points: app.js App Controller · index.html Browser Interface · stops.csv Stop Data · routes.csv Route Data
Components 16
Journey Planning
- Journey Planner
app.js - Fewest-Ride Search
app.js - Map Directions
app.js
Transit Reference
- Stop Data
stops.csv - Route Data
routes.csv - Stop Directory
app.js - Route Catalog
app.js
Travel Tools
- Fare Estimator
app.js - Nearest Stop
app.js - Contributions
app.js
App Experience
- Browser Interface
index.html - App Controller
app.js - Theme Preferences
app.js
Other components
- Traveler
- Google Maps
- Formspree
Connections 16
- Traveler → Browser Interface: uses
- Browser Interface → App Controller: triggers controls
app.js - App Controller → Journey Planner: dispatches planning
app.js - Journey Planner → Fewest-Ride Search: finds journeys
app.js - App Controller → Fare Estimator: updates estimate
app.js - App Controller → Theme Preferences: toggles theme
app.js - App Controller → Contributions: submits form
app.js - Journey Planner → Map Directions: renders map
app.js - Map Directions → Google Maps: embeds map
app.js - Map Directions → Google Maps: opens directions
app.js - App Controller → Stop Directory: renders stops
app.js - App Controller → Route Catalog: renders routes
app.js - App Controller → Nearest Stop: locates nearby stop
app.js - App Controller → Stop Data: loads stop data
app.js - App Controller → Route Data: loads route data
app.js - Contributions → Formspree: may submit to
app.js