All checks were successful
Build Docker Image / build (push) Successful in 3m31s
- Add NearestHubs.graphql - find hubs near coordinates - Add NearestOffers.graphql - find offers near coordinates - Add NearestSuppliers.graphql - find suppliers near coordinates - Add RouteToCoordinate.graphql - route from offer to coordinates - Regenerate geo-generated.ts with new operations These operations simplify frontend logic by working with coordinates instead of requiring entity-specific queries.
27 lines
499 B
GraphQL
27 lines
499 B
GraphQL
query RouteToCoordinate($offerUuid: String!, $lat: Float!, $lon: Float!) {
|
|
routeToCoordinate(offerUuid: $offerUuid, lat: $lat, lon: $lon) {
|
|
sourceUuid
|
|
sourceName
|
|
sourceLat
|
|
sourceLon
|
|
distanceKm
|
|
routes {
|
|
totalDistanceKm
|
|
totalTimeSeconds
|
|
stages {
|
|
fromUuid
|
|
fromName
|
|
fromLat
|
|
fromLon
|
|
toUuid
|
|
toName
|
|
toLat
|
|
toLon
|
|
distanceKm
|
|
travelTimeSeconds
|
|
transportType
|
|
}
|
|
}
|
|
}
|
|
}
|