Install dependencies using Yarn.
yarn
Sign up to Navitia.io and get started with your free plan.
Create an application to get a token.
yarn start
And fetch your local API with the following headers:
Authorization: Basic <base64(token + ':')>
X-Navitia-Coverage: <coverage>
You can use GraphiQL to build your own requests.
You have 2 choices, using the demo or running it locally:
NODE_ENV=debug yarn start
And start playing in the browser IDE.
{
autocompletion(q: "Paris", types: [stop_area]) {
stop_area {
id,
label,
lines {
name,
color,
code
}
}
}
}
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.
You can find further informations in official Navitia repository or the API documentation.
Feel free to contribute :) but don't forget to run:
yarn test