-
Notifications
You must be signed in to change notification settings - Fork 0
Output json
Describe output in json format
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 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)
-
total_distance : (integer) total length in meters
-
total_time : (integer) total trip time in seconds
-
start_point : (string)
-
end_point : (string)