Skip to content

A GraphQL overlay of Navitia to build cool stuff with locomotion

Notifications You must be signed in to change notification settings

VincentCATILLON/navitia-graphql

Repository files navigation

GraphQL overlay for Navitia

GraphQL overlay for Navitia

GraphQL overlay for Navitia

Installation

Install dependencies using Yarn.

yarn

Prerequisite

Sign up to Navitia.io and get started with your free plan.

Create an application to get a token.

Usage

yarn start

And fetch your local API with the following headers:

Authorization: Basic <base64(token + ':')>
X-Navitia-Coverage: <coverage>

Let's play!

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.

Request example

{
  autocompletion(q: "Paris", types: [stop_area]) {
    stop_area {
      id,
      label,
      lines {
        name,
        color,
        code
      }
    }
  }
}

What is Navitia?

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.

Contributing

Feel free to contribute :) but don't forget to run:

yarn test

About

A GraphQL overlay of Navitia to build cool stuff with locomotion

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published