public class

MapstedMapApi.WayfindingImpl

extends Object
implements MapApi.Wayfinding
java.lang.Object
   ↳ com.mapsted.map.MapstedMapApi.WayfindingImpl

Summary

Public Constructors
WayfindingImpl(MapApi mapApi)
Public Methods
void clearAllRoutes()
Clears RouteResponse objects
void clearBuildingRoutes(int buildingId)
Clears route data on all floors for the provided building id
void clearPropertyRoutes(int propertyId)
Clear routes on property layer
RouteNode getCurNavigationInstruction()
Get current navigation instruction.
void onDestroy()
void requestRouting(RouteRequest routeRequest, RoutingRequestCallback callback)
This method is deprecated. use CoreApi.Routing
void startNavigation(Route route, RoutingStatusCallback routingStatusCallback)
This method is deprecated. use routing()
void stopNavigation()
This function will stop navigation process.
void switchRoute(Route route)
Change path drawing to a different route.
void switchRouteSegment(RouteSegment routeSegment)
Change path drawing to another route segment within the same route If you want to change to another route segment, use switchRoute(Route)} instead.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.mapsted.map.MapApi.Wayfinding

Public Constructors

public WayfindingImpl (MapApi mapApi)

Public Methods

public void clearAllRoutes ()

Clears RouteResponse objects

public void clearBuildingRoutes (int buildingId)

Clears route data on all floors for the provided building id

Parameters
buildingId Building id for which the routes are supposed to be cleared

public void clearPropertyRoutes (int propertyId)

Clear routes on property layer

Parameters
propertyId the route's PropertyId to clear

public RouteNode getCurNavigationInstruction ()

Get current navigation instruction.

Call this function to get the latest navigation instruction. This function need to be called inside navigation mode. Assume startNavigation(Route, RoutingStatusCallback) is already called.

Returns
  • A routing instruction contains a double value indicates the map rotation angle, and a set of route information.

public void onDestroy ()

public void requestRouting (RouteRequest routeRequest, RoutingRequestCallback callback)

This method is deprecated.
use CoreApi.Routing

Request a route

Parameters
routeRequest route request with options
callback Callback when successful or failed

public void startNavigation (Route route, RoutingStatusCallback routingStatusCallback)

This method is deprecated.
use routing()

This function will start navigation process. It will clear previous routes, tilt focus map, handle paths drawn on the map. Then call positioning library to start navigation process.

Parameters
route route to navigate to. You can get the route(s) in a @{RoutingResponse}. See @{requestRouting(RouteRequest, RoutingRequestCallback)}
routingStatusCallback callback
See Also

public void stopNavigation ()

This function will stop navigation process. It will call positioning library to stop navigation process.

public void switchRoute (Route route)

Change path drawing to a different route. If you want to change route segment only and keep the same route, use switchRouteSegment(RouteSegment) instead.

Parameters
route The route you want to switch to

public void switchRouteSegment (RouteSegment routeSegment)

Change path drawing to another route segment within the same route If you want to change to another route segment, use switchRoute(Route)} instead.

Parameters
routeSegment The route segment you want to switch.