fromLandmark property
Start point represented as a Landmark and a cached-data flag.
The tuple contains:
[Landmark]: the landmark representing the start point (may be partially populated if no local cache exists).[bool]:truewhen the landmark has local cached data (description and address),falsewhen details must be fetched from the server.
Use the asyncUpdateToFromData method to fetch full details from the server when needed. Is required for this method to work.
Returns
(Landmark, bool)representing the start point as a landmark and a cached-data flag.
Also see:
- asyncUpdateToFromData — Fetch full landmark details from server.
- toLandmark — End landmark of the traffic event on the route.
- from - Start coordinate of the traffic event on the route.
Implementation
(Landmark, bool) get fromLandmark {
final OperationResult resultString = objectMethod(
pointerId,
'RouteTrafficEvent',
'getFromLandmark',
);
return (
Landmark.init(resultString['result']['first']),
resultString['result']['second'],
);
}