API Docs for: 7.2
Show:

MQA.Route Class

Module: MQA

Convenience object instance of the default MQA.RoutePlatformService

Methods

dragRoute

(
  • options
)

Inherited from MQA.RoutePlatformService

Parameters:

fixPois

(
  • options
)
Object private

Inherited from MQA.RoutePlatformService

fix pois to locations for routing

Parameters:

Returns <Object>

optimizedRoute

(
  • options
)

Inherited from MQA.RoutePlatformService

Parameters:

  • options Object
    • request Object
    • display Object
      • [color] String optional the color of the ribbon
      • [colorAlpha] String optional the color of the alpha of the ribbon
      • [borderWidth] Number optional the width of the route ribbon
      • [draggable] Boolean optional if the route is draggable
      • [draggablepoi] Boolean optional if the route's pois (waypoints) are draggable
      • [dragComplete] Function optional the function to call if the route drag completes, returns the new RouteResult
    • success Function

      the response to call if the route is a success

    • error Function

      the response to call if the route is a failure

restorPois

(
  • options
  • result
)
Object private

Inherited from MQA.RoutePlatformService

restore the pois to the location node of the json result

Parameters:

Returns <Object>

route

(
  • options
)

Inherited from MQA.RoutePlatformService

Parameters:

  • options Object
    • request Object
    • [display] Object optional
      • [color] String optional the color of the ribbon
      • [colorAlpha] String optional the color of the alpha of the ribbon
      • [borderWidth] Number optional the width of the route ribbon
      • [draggable] Boolean optional if the route is draggable
      • [draggablepoi] Boolean optional if the route's pois (waypoints) are draggable
      • [dragComplete] Function optional the function to call if the route drag completes, returns the new RouteResult
    • success Function

      the response to call if the route is a success

    • error Function

      the response to call if the route is a failure

routeMatrix

(
  • options
)

Inherited from MQA.RoutePlatformService

route matrix

Parameters:

  • options Object
    • request Object
    • success Function

      the response to call if the route is a success

    • error Function

      the response to call if the route is a failure

routeShape

(
  • options
)

Inherited from MQA.RoutePlatformService

Parameters:

  • options Object
    • request Object
      • sessionId String
      • mapState MapState
    • success Function

      the response to call if the route is a success

    • error Function

      the response to call if the route is a failure