Initial commit from monorepo

This commit is contained in:
Ruslan Bakiev
2026-01-07 09:10:35 +07:00
commit 3db50d9637
371 changed files with 43223 additions and 0 deletions

View 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
}
}
}

View 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
}
}

View 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
}
}
}

View 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
}
}
}

View 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)
}

View 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
}
}