1.2.35 • Published 5 months ago

navigraph v1.2.35

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Installation

Warning The SDK is currently in very early development and is still subject to change. Please keep this in mind when using it.

Yarn

yarn add navigraph

NPM

npm i -S navigraph

Usage

For a full example implementation, see /examples/getting-started/.

import { initializeApp, Scope } from "navigraph/app";
import { getAuth } from "navigraph/auth";
import { getChartsAPI } from "navigraph/charts";

const config: NavigraphApp = {
  clientId: "<YOUR_NAVIGRAPH_CLIENT_ID>",
  clientSecret: "<YOUR_NAVIGRAPH_CLIENT_SECRET>",
  scopes: [Scope.CHARTS /* Additional scopes here */],
};

initializeApp(config);

export const auth = getAuth();
export const charts = getChartsAPI();

auth.signInWithDeviceFlow((params) =>
  /* Show params.verification_uri_complete as a QR code, scan it, sign in */
)

charts.getChartsIndex({ icao: "KJFK" }).then(console.log) // => { "charts": [{ "index_number": "10-1P" ...

Note A full reference will make its way to our developer documentation website in the future. In the meantime, please reference this usage section along with the Getting Started guide!

Supported environments

This library aims to be compatible with Coherent GT, as implemented by Microsoft Flight simulator. According to Coherent their environment is similar to Safari 10.1.2 (STP 34), so by supporting this environment we should be supporting any modern environment as well, both Node and browser.

License

Distributed under the MIT License. See LICENSE for more information.

1.2.34

5 months ago

1.2.35

5 months ago

1.2.32

8 months ago

1.2.33

6 months ago

1.2.31

8 months ago

1.2.27

10 months ago

1.2.28

9 months ago

1.2.26

12 months ago

1.2.29

9 months ago

1.2.30

9 months ago

1.2.23

1 year ago

1.2.24

1 year ago

1.2.25

1 year ago

1.2.18

1 year ago

1.2.19

1 year ago

1.2.20

1 year ago

1.2.21

1 year ago

1.2.22

1 year ago

1.2.21-next.0

1 year ago

1.2.16

1 year ago

1.2.17

1 year ago

1.2.14

1 year ago

1.2.15

1 year ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.9

2 years ago

1.2.12

1 year ago

1.2.13

1 year ago

1.2.10

2 years ago

1.2.11

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago