MapsIndoorsAndroid
MapsIndoorsSDK
/
com.mapsindoors.core
/
MPDirectionsService
MPDirections
Service
class
MPDirectionsService
:
MPDirectionsServiceInterface
Default
MPDirectionsServiceInterface
implementation
Constructors
Functions
Constructors
MPDirections
Service
Link copied to clipboard
open
fun
MPDirectionsService
(
@
NonNull
context
:
Context
)
Creates a
MPDirectionsService
object than can be queried for directions between different
MPPoint
s
Functions
add
Avoid
Way
Type
Link copied to clipboard
open
fun
addAvoidWayType
(
highWayType
:
String
)
clear
Way
Type
Link copied to clipboard
open
fun
clearWayType
(
)
get
Matrix
Link copied to clipboard
open
fun
getMatrix
(
@
NonNull
origins
:
List
<
MPPoint
>
,
@
NonNull
destinations
:
List
<
MPPoint
>
,
@
NonNull
graphId
:
String
,
@
NonNull
onDistanceMatrixResultListener
:
OnDistanceMatrixResultListener
)
Gets a matrix of distances and duration between points inside a a venue
query
Link copied to clipboard
open
fun
query
(
@
NonNull
from
:
MPPoint
,
@
NonNull
to
:
MPPoint
)
Queries the map for a path between two
MPPoint
s These can be fetched from a
MPLocation
via
getPoint
set
Is
Departure
Link copied to clipboard
open
fun
setIsDeparture
(
isDeparture
:
Boolean
)
set
Route
Result
Listener
Link copied to clipboard
open
fun
setRouteResultListener
(
routeResultListener
:
OnRouteResultListener
)
set
Time
Link copied to clipboard
open
fun
setTime
(
date
:
Date
)
set
Travel
Mode
Link copied to clipboard
open
fun
setTravelMode
(
travelMode
:
String
)