java.lang.Object | |
↳ | com.mapsted.map.MapstedMapApi.WayfindingImpl |
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.
| ||||||||||
boolean | isBuildingCurrentlyInvolvedInRoutingSession(int buildingId) | ||||||||||
boolean | isPropertyCurrentlyInvolvedInRoutingSession(int propertyId) | ||||||||||
void | onDestroy() | ||||||||||
void |
requestRouting(RouteRequest routeRequest, RoutingRequestCallback callback)
Request a route
| ||||||||||
void |
startNavigation(Route route, RoutingStatusCallback routingStatusCallback)
This function will start navigation process.
| ||||||||||
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Clears RouteResponse objects
Clears route data on all floors for the provided building id
buildingId | Building id for which the routes are supposed to be cleared |
---|
Clear routes on property layer
propertyId | the route's PropertyId to clear |
---|
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.
Request a route
routeRequest | route request with options |
---|---|
callback | Callback when successful or failed |
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.
route | route to navigate to. You can get the route(s) in a @{RoutingResponse }. See @{requestRouting(RouteRequest, RoutingRequestCallback) } |
---|---|
routingStatusCallback | callback |
This function will stop navigation process. It will call positioning library to stop navigation process.
Change path drawing to a different route. If you want to change route segment only and
keep the same route, use switchRouteSegment(RouteSegment)
instead.
route | The route you want to switch to |
---|
Change path drawing to another route segment within the same route
If you want to change to another route segment,
use switchRoute(Route)
} instead.
routeSegment | The route segment you want to switch. |
---|