Skip to content
rodo edited this page May 31, 2012 · 6 revisions

Describe output in json format

Viaroute Plugin

Described in Descriptors/JSONDescriptor.h.

Segment information has following format: ["instruction","streetname",length,position,time,"length","earth_direction",azimuth]

Example: ["Turn left","High Street",200,4,10,"200m","NE",22.5]

See also: http://developers.cloudmade.com/wiki/navengine/JSON_format

route_instructions

Route instructions are returned in an array. Each part is an array of 8 fields

  • 0 - driving directions : integer numbers as defined in the source file DataStructures/TurnInstructions.h.

  • 1 - way name (string)

  • 2 - length in meters (integer)

  • 3 - position

  • 4 - time

  • 5 - length with unit (string)

  • 6 - Direction abreviation (string) N: north, S: south, E: east, W: west, NW: North West, ...

  • 7 - azimuth (float)

route_summary

  • total_distance : (integer) total length in meters

  • total_time : (integer) total trip time in seconds

  • start_point : (string)

  • end_point : (string)

via_points

hint_data

Clone this wiki locally