Skip to content
kkintaro edited this page Aug 9, 2016 · 8 revisions

Directions with Scores

Gets the fastest route. Returns the safety scores and directions.

BaseURL: https://server/api/directionsWithScores

Parameters

See https://developers.google.com/maps/documentation/javascript/directions for more info on these parameters

Required

  • origin - The address, textual latitude/longitude value, or place ID from which you wish to calculate directions.
  • destination — The address, textual latitude/longitude value, or place ID to which you wish to calculate directions. The options for the destination parameter are the same as for the origin parameter, described above.

Optional

  • language
  • units
  • waypoints (will be implemented later

Example

TODO

Results

Will look a lot like a Google Directions Response.

Root elements

  • status
  • geocoded_waypoints
  • routes. Each route will have an extra parameter called "safe_score"
  • available_travel_modes (will deal with later)

safe_score

Write this, Josh, please!!

Example

TODO

Clone this wiki locally