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 following code to try this in your app:

JAVA
KOTLIN
1for (EntryPoint entryPoint : fuzzySearchDetails.getEntryPoints()) {
2 SimpleMarkerBalloon markerBalloon = new SimpleMarkerBalloon(
3 String.format(markerBalloonText, entryPoint.getType().toString().toLowerCase()));
4
5 addMarkerWithIcon(entryPoint, markerBalloon, icon);
6}
1fuzzySearchDetails.entryPoints.forEach { entryPoint ->
2 val markerBalloon = SimpleMarkerBalloon(
3 String.format(markerBalloonText, entryPoint.type.toString().toLowerCase())
4 )
5 addMarkerWithIcon(entryPoint, markerBalloon, icon)
6}
JAVA
KOTLIN
1private void addMarkerWithIcon(EntryPoint entryPoint, SimpleMarkerBalloon balloon, Icon icon) {
2 tomtomMap.addMarker(new MarkerBuilder(entryPoint.getPosition())
3 .markerBalloon(balloon)
4 .icon(icon));
5}
1private fun addMarkerWithIcon(entryPoint: EntryPoint, balloon: SimpleMarkerBalloon, icon: Icon) {
2 tomtomMap.addMarker(
3 MarkerBuilder(entryPoint.position)
4 .markerBalloon(balloon)
5 .icon(icon)
6 )
7}

Sample views utilizing entry points:

Entry points for the Amsterdam airport

Entry points for the Kalvertoren mall