Represents the result of calculating a route, with four possible states:
idle: There is nothing to calculate, because the origin is null or the map has not loaded
pending: The route is not available yet, for example while waiting for the user's location
success: The route was calculated
error: No route could be calculated
The result updates as the route does. When the origin, destinations or options change, the
previous result is kept until the new route has one, so a displayed route does not disappear.
Represents the result of calculating a route, with four possible states:
idle: There is nothing to calculate, because the origin is null or the map has not loadedpending: The route is not available yet, for example while waiting for the user's locationsuccess: The route was calculatederror: No route could be calculatedThe result updates as the route does. When the origin, destinations or options change, the previous result is kept until the new route has one, so a displayed route does not disappear.