Entry points
Entry points
Allow your users to display entry points using fuzzy search results.
Sample use case: A taxi driver wants to pick up a passenger from the specific entry point at the airport.
Use the code below to try this in your app:
for (TTEntryPoint *entryPoint in searchResult.entryPoints) {
CLLocationCoordinate2D coordinate = entryPoint.position;
UIImage *image = [UIImage imageNamed:@"entry_point"];
NSString *tag = [NSString stringWithFormat:@"Entry point type: %@", entryPoint.type];
TTAnnotation *annotation = [TTAnnotation annotationWithCoordinate:coordinate
image:image
tag:tag
anchor:TTAnnotationAnchorBottom
type:TTAnnotationTypeFocal];
[self.mapView.annotationManager addAnnotation:annotation];
[annotations addObject:annotation];
}
[self.mapView zoomToAnnotations:annotations];
Sample views utilizing entry points:
![]() Entry points for the Amsterdam airport |
![]() Entry points for the Kalvertoren mall |