getAddressDetailLevel static method

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

Also see:

Implementation

static AddressDetailLevel getAddressDetailLevel(final Landmark landmark) {
  final OperationResult resultString = staticMethod(
    'GuidedAddressSearchService',
    'getAddressDetailLevel',
    args: landmark.pointerId,
  );

  return AddressDetailLevelExtension.fromId(resultString['result']);
}