Fork me on GitHub
Show:

PromiseToFetchGoogleDirections

Extends aeris.directions.promises.PromiseToFetchDirections

Summary

A promise to fetch directions from the Google Directions API.

Constructor

aeris.directions.promise.PromiseToFetchGoogleDirections

Syntax

aeris.directions.promise.PromiseToFetchGoogleDirections

()

Summary

Methods

getDistanceFromResponse_

Syntax

getDistanceFromResponse_

(
  • response
)

Summary

Parameters:

getPathFromResponse_

Syntax

getPathFromResponse_

(
  • response
)

Summary

Parameters:

isNoResultsStatus_

Syntax

isNoResultsStatus_

(
  • status
)

Summary

Parameters:

isSuccessStatus

Syntax

isSuccessStatus

(
  • status
)

Summary

Parameters:

resolveUsingResponse

Syntax

resolveUsingResponse

(
  • response
  • status
)

Summary

Parameters:

settleUsingResponse

Syntax

settleUsingResponse

(
  • response
  • status
)

Summary

Resolve or reject the promise, based on the response data from the Google directions API

Parameters: