new RoutingInstruction()
BeNomad BeMap JavaScript API - RoutingInstruction
One turn-by-turn instruction in a `RoutingRoute.routingInstructions` array.
Wire shape from the BeMap server (cross-checked against an actual response
payload):
{
type: "FOLLOW" | "ENTER_ROUNDABOUT" | "EXIT_ROUNDABOUT"
| "ENTER_MOTORWAY" | "EXIT_MOTORWAY" | "TAKE_RAMP"
| "STOP" | "DEPART" | "ARRIVE" | "U_TURN" | ...
geoElementType: "ROAD" | "ROUNDABOUT" | "MOTORWAY" | "SLIP_ROAD" | ...
manoeuvre: "STRAIGHT" | "LEFT" | "RIGHT" | "BEAR_LEFT" | "BEAR_RIGHT"
| "SLIGHT_LEFT" | "SLIGHT_RIGHT" | "U_TURN"
length: long // segment length in metres
duration: long // segment duration in seconds
coordinate: { lon, lat } // instruction point
roundAboutExitNumber:int // 0 unless type is ENTER_/EXIT_ROUNDABOUT
fromName: string // name of the road we're on
toName: string // name of the next road
toOn: string // additional "on " hint
toRn: string // road number ("D955", "A19/E60")
toSi: string // sign info / exit identifier
textDist: string // human-readable distance ("At 1.6 kilometer")
text: string // human-readable instruction
}
- Since:
- 1.5.0
- Source: