getAddressDetailLevel static method

AddressDetailLevel getAddressDetailLevel(
  1. 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

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']);
}