toLandmark property
End point represented as a Landmark and a cached-data flag.
The tuple contains:
[Landmark]: the landmark representing the end 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):(landmark, hasLocalData).
See also:
- asyncUpdateToFromData — Fetch full landmark details from server.
- fromLandmark — Start landmark of the traffic event on the route.
- to - End coordinate of the traffic event on the route.
Implementation
(Landmark, bool) get toLandmark {
final OperationResult resultString = objectMethod(
pointerId,
'RouteTrafficEvent',
'getToLandmark',
);
return (
Landmark.init(resultString['result']['first']),
resultString['result']['second'],
);
}