| Name | Platform | Repository | Description |
|---|---|---|---|
| ScarletMaps | Web | scarletmaps-web | Web client |
| ScarletMaps | Android | scarletmaps-android | Android client |
This API provides four root types
-
route(id:
int!)- id
int! - name
String! - areas
[String!]! - segments
[String!]! - stops
[Stop!]
- id
-
stop(id:
int!)- id
int! - name
String! - area
String! - routes
[Route!]
- id
-
routes(active:
bool) -
stops(active:
bool)
For example, the user can model a request to return the names of the currently active routes and their served areas.
model
{
routes (active: true) {
names
areas
}
}request
axios.post('https://api.scarletbus.com/graphql/', {
query: {
{
routes (active: true) {
names
areas
}
}
}
});
/*
{
routes[
{
name: "A",
areas: ["Busch", "College Ave"]
},
{
name: "B",
areas: ["Busch", Livingston]
}
....
]
}
*/This project is licensed under the terms of the MIT license. See LICENSE for more details.