Skip to content

How miscellaneous stuff are working

Stephan Simart edited this page Jun 10, 2019 · 15 revisions

There are 5 mains services:

  • "places" to autocomplete user input
  • "journeys" to compute multi-modal trip
  • "PTref" to easily explore public transport data
  • "route_schedules" or "stop_schedules" to print time tables
  • "departures" or "arrival" in order not to miss your next bus
  • "traffic_reports" to expose the main perturbations or important messages

And some sexy other things such as "isochrones".

places

This service is based on a 3-grams algorithm. Here is the different phases of searching

  1. init
  2. ghost word management (such as "in", "the", "on"...)
  3. alias management
  4. house number management
  5. 3-grams on words that remain

More information at autocomplete RFC

TODO: filters and sort

journeys

Journeys are multi-modal and can take into account many algorithms as describe here

The PT (public transport) algorithm has to be Kraken, which is based on Raptor. But with lots of enhancements which are described in the RFC.

Some ride sharing stuff can be find here

route_schedules and stop_schedules

Sorting the vehicles in time tables

departures and arrivals

disruptions

Please read the RFC

Some extra information on "line section" disruption here

exploring data

https://github.com/CanalTP/navitia/blob/dev/documentation/rfc/ptref_grammar.md