getAddressDetailLevel static method
- Landmark landmark
Get the address detail level associated with a Landmark.
Returns the detail level for the provided landmark. If the landmark was not obtained from a previous
call to GuidedAddressSearchService.search, AddressDetailLevel.noDetail is returned.
Parameters
landmark: The landmark to inspect.
Returns
- AddressDetailLevel: The address detail level for the landmark.
Also see:
- getNextAddressDetailLevel - Determine valid next detail levels for a given parent landmark.
- search - Perform hierarchical address searches.
Implementation
static AddressDetailLevel getAddressDetailLevel(final Landmark landmark) {
final OperationResult resultString = staticMethod(
'GuidedAddressSearchService',
'getAddressDetailLevel',
args: landmark.pointerId,
);
return AddressDetailLevelExtension.fromId(resultString['result']);
}