Class: RoutingWaypoint

bemap.RoutingWaypoint()

new RoutingWaypoint()

BeNomad BeMap JavaScript API - RoutingWaypoint One entry in `RoutingResponse.usedDestinations[]` — the per-input snap info the server emits for every routing destination it received. Wire shape from the BeMap server (cross-checked against an actual response payload): { inputOrder: int, // index of this destination in the request array used: bool, // whether the destination was used in the route usedOrder: int, // order in which it was used (matrix / 1-to-N) matchedCoordinateGps: { lon, lat }, confidenceValue: double, // 0..1 confidence of the snap distanceFromRequest: double, // metres between input and matched coordinate polylineIndex: int, // index into the polyline array (-1 = not on it) duration: long, // seconds from start to this waypoint (-1 if unknown) length: long // metres from start to this waypoint (-1 if unknown) }
Since:
  • 1.5.0
Source: