Initial commit from monorepo
This commit is contained in:
19
graphql/operations/public/geo/FindRoutes.graphql
Normal file
19
graphql/operations/public/geo/FindRoutes.graphql
Normal file
@@ -0,0 +1,19 @@
|
||||
query FindRoutes($fromUuid: String!, $toUuid: String!, $limit: Int) {
|
||||
findRoutes(fromUuid: $fromUuid, toUuid: $toUuid, limit: $limit) {
|
||||
totalDistanceKm
|
||||
totalTimeSeconds
|
||||
stages {
|
||||
fromUuid
|
||||
fromName
|
||||
fromLat
|
||||
fromLon
|
||||
toUuid
|
||||
toName
|
||||
toLat
|
||||
toLon
|
||||
distanceKm
|
||||
travelTimeSeconds
|
||||
transportType
|
||||
}
|
||||
}
|
||||
}
|
||||
6
graphql/operations/public/geo/GetAutoRoute.graphql
Normal file
6
graphql/operations/public/geo/GetAutoRoute.graphql
Normal file
@@ -0,0 +1,6 @@
|
||||
query GetAutoRoute($fromLat: Float!, $fromLon: Float!, $toLat: Float!, $toLon: Float!) {
|
||||
autoRoute(fromLat: $fromLat, fromLon: $fromLon, toLat: $toLat, toLon: $toLon) {
|
||||
distanceKm
|
||||
geometry
|
||||
}
|
||||
}
|
||||
20
graphql/operations/public/geo/GetNode.graphql
Normal file
20
graphql/operations/public/geo/GetNode.graphql
Normal file
@@ -0,0 +1,20 @@
|
||||
query GetNode($uuid: String!) {
|
||||
node(uuid: $uuid) {
|
||||
uuid
|
||||
name
|
||||
latitude
|
||||
longitude
|
||||
country
|
||||
countryCode
|
||||
syncedAt
|
||||
edges {
|
||||
toUuid
|
||||
toName
|
||||
toLatitude
|
||||
toLongitude
|
||||
distanceKm
|
||||
travelTimeSeconds
|
||||
transportType
|
||||
}
|
||||
}
|
||||
}
|
||||
40
graphql/operations/public/geo/GetNodeConnections.graphql
Normal file
40
graphql/operations/public/geo/GetNodeConnections.graphql
Normal file
@@ -0,0 +1,40 @@
|
||||
query GetNodeConnections($uuid: String!, $limitAuto: Int, $limitRail: Int) {
|
||||
nodeConnections(uuid: $uuid, limitAuto: $limitAuto, limitRail: $limitRail) {
|
||||
hub {
|
||||
uuid
|
||||
name
|
||||
latitude
|
||||
longitude
|
||||
country
|
||||
countryCode
|
||||
syncedAt
|
||||
}
|
||||
railNode {
|
||||
uuid
|
||||
name
|
||||
latitude
|
||||
longitude
|
||||
country
|
||||
countryCode
|
||||
syncedAt
|
||||
}
|
||||
autoEdges {
|
||||
toUuid
|
||||
toName
|
||||
toLatitude
|
||||
toLongitude
|
||||
distanceKm
|
||||
travelTimeSeconds
|
||||
transportType
|
||||
}
|
||||
railEdges {
|
||||
toUuid
|
||||
toName
|
||||
toLatitude
|
||||
toLongitude
|
||||
distanceKm
|
||||
travelTimeSeconds
|
||||
transportType
|
||||
}
|
||||
}
|
||||
}
|
||||
13
graphql/operations/public/geo/GetNodes.graphql
Normal file
13
graphql/operations/public/geo/GetNodes.graphql
Normal file
@@ -0,0 +1,13 @@
|
||||
query GetNodes($limit: Int, $offset: Int, $transportType: String) {
|
||||
nodes(limit: $limit, offset: $offset, transportType: $transportType) {
|
||||
uuid
|
||||
name
|
||||
latitude
|
||||
longitude
|
||||
country
|
||||
countryCode
|
||||
syncedAt
|
||||
transportTypes
|
||||
}
|
||||
nodesCount(transportType: $transportType)
|
||||
}
|
||||
6
graphql/operations/public/geo/GetRailRoute.graphql
Normal file
6
graphql/operations/public/geo/GetRailRoute.graphql
Normal file
@@ -0,0 +1,6 @@
|
||||
query GetRailRoute($fromLat: Float!, $fromLon: Float!, $toLat: Float!, $toLon: Float!) {
|
||||
railRoute(fromLat: $fromLat, fromLon: $fromLon, toLat: $toLat, toLon: $toLon) {
|
||||
distanceKm
|
||||
geometry
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user