Skip to content

The open source software to build cool stuff with locomotion

License

Notifications You must be signed in to change notification settings

loic-hamelin/navitia

 
 

Repository files navigation

navitia

Navitia

(pronounce [navi-sia])

Version Build status License Chat Code Coverage Vulnerabilities Security Rating
version Last build license chat SonarCloud Coverage SonarCloud Vulnerabilities SonarCloud Security Rating
Maintainability Quality Gate Duplicated Lines (%) Reliability Bugs Lines of Code
SonarCloud Maintainability Rating SonarCloud Quality Gate Status SonarCloud Duplicated Lines (%) SonarCloud Reliability Rating SonarCloud Bugs SonarCloud Lines of Code

Presentation

Welcome to the Navitia repository!

Navitia is a webservice providing:

  1. multi-modal journeys computation
  2. line schedules
  3. next departures
  4. exploration of public transport data
  5. search & autocomplete on places
  6. sexy things such as isochrones

Approach

Navitia is an open-source web API, initially built to provide traveler information on urban transportation networks.

Its main purpose is to provide day-to-day informations to travelers.
Over time, Navitia has been able to do way more, sometimes for technical and debuging purpose or because other functional needs fit quite well in what Navitia can do or just because it was quite easy and super cool.

Technically, Navitia is a HATEOAS API that returns JSON formated results.

Who's who

Navitia is instanciated and exposed publicly through api.navitia.io.
Developments on Navitia are lead by Hove (previously Kisio Digital and CanalTP).
Hove is a subsidiary of Keolis (itself a subsidiary of SNCF, French national railway company).

More information

Getting started

Want to test the API?

The easiest way to do this is a to go to navitia.io.
Signup, grab a token, read the doc and start using the API!

For a more friendly interface you can use the API through navitia playground (no matter the server used).

Want to use your own datasets or infrastructure?

docker

The easiest way to have your own navitia is to use the navitia docker-compose.

fabric
If you don't want to use the prebuilt docker images you can use the fabric scripts we use to deploy to api.navitia.io.
⚠️ WARNING ⚠️ Those scripts should be usable, but they are not meant to be completely generic and are designed for our own servers architecture.
Use this only if the docker does not suit your needs and if you are an experienced user 😉

Want to dev and contribute to navitia?

If you want to build navitia, develop in it or read more about technical details please refer to CONTRIBUTING.md.

Curious of who's contributing? ⏯️ https://www.youtube.com/watch?v=GOLfMTMGVFI

Architecture overview

Navitia is made of 3 main modules:

  1. Kraken is the c++ core (Heavy computation)
  2. Jörmungandr is the python frontend (Webservice and lighter computation)
  3. Ed is the postgres database (Used for preliminary binarization)

Kraken and Jörmungandr communicate with each other through protocol buffer messages sent by ZMQ.

Transportation data (in the NTFS, or GTFS format) or routing data (mainly from OpenStreetMap for the moment) can be given to Ed.
Ed produces a binary file used by Kraken.

documentation/diagrams/Navitia_simple_architecture.png

More information here: https://github.com/hove-io/navitia/wiki/Architecture

Alternatives?

Navitia is written in C++ / python, here are some alternatives:

About

The open source software to build cool stuff with locomotion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 51.7%
  • Python 47.1%
  • CMake 0.7%
  • Shell 0.4%
  • C 0.1%
  • Scala 0.0%