IndoorRoutingEngine
public class IndoorRoutingEngine
extension IndoorRoutingEngine: NativeBase
extension IndoorRoutingEngine: Hashable
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.
-
Creates a new instance of this class.
Declaration
Swift
public init(_ venueService: VenueService)Parameters
venueServiceA venue service instance.
-
Asynchronously calculates a route inside a venue.
Declaration
Swift
public func calculateRoute(from: IndoorWaypoint, to: IndoorWaypoint, routeOptions: IndoorRouteOptions, completion: @escaping CalculateIndoorRouteCompletionHandler)Parameters
fromA starting position of the route to calculate.
toA destination position of the route to calculate.
routeOptionsOptions specific for indoor route calculation, along with common route options.
completionCallback object that will be invoked after route calculation. It is always invoked on the main thread.