@mapsindoors/react-native-maps-indoors-google-maps
    Preparing search index...

    Class MPDirectionsService

    Service used to generate a route between two MPPoints.

    MPDirectionsService

    Index

    Methods

    • Add an avoidWayType, these are based on OSM highways.

      Supported types are defined in MPHighway.

      Parameters

      • wayType: string

      Returns Promise<void>

    • Add an excludeWayType, these are based on OSM highways.

      Supported types are defined in MPHighway.

      Parameters

      • wayType: string

      Returns Promise<void>

    • Clears all added excludeWayType.

      Returns Promise<void>

    • Clears all added avoidWayTypes.

      Returns Promise<void>

    • Queries the routing network to generate a route from the origin to the destination.

      Parameters

      Returns Promise<MPRoute>

    • Sets whether routes should use departure time or arrival time when using the transit travel mode.

      Parameters

      • isDeparture: boolean

      Returns Promise<void>

    • sets the wanted arrival/departure time for routes generated with this [MPDirectionsService]

      this setting is used in conjunction with setIsDeparture and setTravelMode.

      Parameters

      • time: number

      Returns Promise<void>

    • defines the travel mode for routes, can be one of the following:

      • "walking"
      • "bicycling"
      • "driving"
      • "transit"

      Parameters

      • travelMode: string

      Returns Promise<void>