IndoorRoutingEngine (API Reference)
Class IndoorRoutingEngine
Use the IndoorRoutingEngine to calculate a route inside a venue.
Route calculation is done asynchronously and requires an
internet connection. The resulting route contains various
information such as the polyline, route length in meters,
estimated time to traverse along the route and maneuver data.
Note: This feature is in BETA state and thus there can be bugs and unexpected behavior.
Related APIs may change for new releases without a deprecation process.
Currently, the indoor route calculation may not be accurate so that e.g. a pedestrian
end user might be routed via a vehicle access and route or similar. Therefore end users
must use this feature with caution and always be aware of the surroundings. The signs
and instructions given at the premises must be observed. You are required to inform
the end user about this in an appropriate manner, whether in the UI of your application,
your end user terms or similar.
-
Constructor Summary
ConstructorsConstructorDescriptionIndoorRoutingEngine(VenueService venueService) Creates a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculateRoute(IndoorWaypoint from, IndoorWaypoint to, IndoorRouteOptions routeOptions, CalculateIndoorRouteCallback callback) Asynchronously calculates a route inside a venue.
-
Constructor Details
-
IndoorRoutingEngine
Creates a new instance of this class.
- Parameters:
venueService-A venue service instance.
-
-
Method Details
-
calculateRoute
public void calculateRoute(@NonNull IndoorWaypoint from, @NonNull IndoorWaypoint to, @NonNull IndoorRouteOptions routeOptions, @NonNull CalculateIndoorRouteCallback callback) Asynchronously calculates a route inside a venue.
- Parameters:
from-A starting position of the route to calculate.
to-A destination position of the route to calculate.
routeOptions-Options specific for indoor route calculation, along with common route options.
callback-Callback object that will be invoked after route calculation. It is always invoked on the main thread.
-