getAddressDetailLevel static method
- Landmark landmark
Get the address detail level for a landmark
When there is only one result at a specific level and there is only one possible next level to search then the engine will automatically skip that level if this flag is set to true.
Parameters
- IN landmark The landmark for which to get the address detail level.
Returns
-
AddressDetailLevel.noDetail If landmark is not obtained via a previous call to GuidedAddressSearchService.search method.
-
Address detail level for the landmark in range of AddressDetailLevel.
Throws
- An exception if it fails.
Implementation
static AddressDetailLevel getAddressDetailLevel(final Landmark landmark) {
final OperationResult resultString = objectMethod(
0,
'GuidedAddressSearchService',
'getAddressDetailLevel',
args: landmark.pointerId,
);
return AddressDetailLevelExtension.fromId(resultString['result']);
}