-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from vatpac-technology/flights-api
Added Flights API
- Loading branch information
Showing
5 changed files
with
94 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Maps REST API | ||
|
||
The map API extends the VATSIM data API in a short lived cache. There is no persistent data. | ||
|
||
## Types | ||
|
||
### Pilot | ||
|
||
As per https://data.vatsim.net/v3/vatsim-data.json with the following extensions. | ||
|
||
```javascript | ||
"aerodrome": false, | ||
"tag_alt": "A043", | ||
"tag_gs": "0" | ||
``` | ||
|
||
## Routes | ||
|
||
Route `/v1/` | ||
|
||
### Flights | ||
|
||
Route `/flights/` | ||
|
||
#### Arivals | ||
|
||
Route `/arrivals/<ICAO code>` | ||
Returns | ||
- 200 `[pilot]` | ||
- 404 | ||
- 500 | ||
|
||
#### Callsign | ||
|
||
Route `/callsign/<callsign>` | ||
Returns | ||
- 200 `{pilot}` | ||
- 404 | ||
- 500 | ||
|
||
#### Departures | ||
|
||
Route `/departures/<ICAO code>` | ||
Returns | ||
- 200 `[pilot]` | ||
- 404 | ||
- 500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters