getNextAddressDetailLevel static method
- Landmark landmark
Get the list of next possible address detail levels that can be searched for a landmark.
It is country dependent.
For example, for a street it may be possible to get AddressDetailLevel.crossing and AddressDetailLevel.houseNumber in some countries but in others to get AddressDetailLevel.streetSection
Parameters
- IN landmark The landmark for which to get the next possible address detail levels to search. If the landmark is default only AddressDetailLevel.country will be in the list. If there are no more address detail levels available then an empty list is returned.
Returns
- List next possible address detail levels. Items of the list are in range of AddressDetailLevel enum.
Throws
- An exception if it fails.
Implementation
static List<AddressDetailLevel> getNextAddressDetailLevel(
final Landmark landmark,
) {
final OperationResult resultString = objectMethod(
0,
'GuidedAddressSearchService',
'getNextAddressDetailLevel',
args: landmark.pointerId,
);
final List<int> retList = resultString['result'].whereType<int>().toList();
return retList
.map((final int id) => AddressDetailLevelExtension.fromId(id))
.toList();
}