VisioMove Essential (iOS)  1.23.0

◆ queryPlacesWithFilter:callback:()

- (void) queryPlacesWithFilter: (VMEPlaceFilter *)  filter
callback: (id< VMEPlaceFilterCallback >)  callback 

Queries the map for places matching the filter.

Parameters
filterThe place filter to be applied to the map.
callbackThe callback object to be notified of the results
Note
Applies to:
  • static places
  • dynamic places
Example
-(void) queryPlacesExample
{
VMEPlaceFilter* lFilter = [[VMEPlaceFilter alloc] initWithPlaceID:@"404"];
lFilter.restrictToTargetLayer = false;
lFilter.restrictToPlaceIDs = NSArray arrayWithObjects:@"411", @"413", @"206", nil];
[self.mapView queryPlacesWithFilter:lFilter callback:self];
}
-(void)placeFilterDidFinish:(VMEMapView*)mapView
parameters:(VMEPlaceFilter*)filter
results:(NSArray<VMERouteResult*>*)results
{
for (VMERouteResult* lResult in results) {
NSLog(@"%fm from %@", lResult.length, lResult.destinations.firstObject);
}
}
Version
1.8
Visioglobe® 2015-2020