Skip to content

Instantly share code, notes, and snippets.

@emiltin
Created August 14, 2014 10:36
Show Gist options
  • Save emiltin/d9433497fae52186d21d to your computer and use it in GitHub Desktop.
Save emiltin/d9433497fae52186d21d to your computer and use it in GitHub Desktop.
JSONDescriptor::Run()
RawRouteData:
PathData vector:
PathData:
node: 1
name_id: 2
segment_duration: 100
turn_instruction: 2
travel_mode: 4
DescriptionFactory::SetStartSegment()
PhantomNode
forward_node_id: 2
reverse_node_id: 3
name_id: 2
forward_weight: 0
reverse_weight: 100
forward_offset: 0
reverse_offset: 0
packed_geometry_id: 4294967295
location: (0.9991,1.0027)
fwd_segment_position: 0
travel_mode : 1
backward_travel_mode : 1
DescriptionFactory::AppendSegment()
append, m:1
DescriptionFactory::AppendSegment()
append, m:4
bail from append!
DescriptionFactory::SetEndSegment()
PhantomNode
forward_node_id: 0
reverse_node_id: 1
name_id: 1
forward_weight: 0
reverse_weight: 503
forward_offset: 0
reverse_offset: 0
packed_geometry_id: 4294967295
location: (1,1.0009)
fwd_segment_position: 0
travel_mode : 3
backward_travel_mode : 4
After DescriptionFactory.Run():
SegmentInformation vector:
SegmentInformation
location: (0.9991,1.0027)
name_id: 1
duration: 503
length: 223.616
bearing: 2965
turn_instruction: 10
necessary: 1
is_via_location: 0
travel_mode : 1
SegmentInformation
location: (1,1.0009)
name_id: 1
duration: 503
length: 223.616
bearing: 0
turn_instruction: 0
necessary: 1
is_via_location: 1
travel_mode : 4
build json, m:1
using
build json, m:4
skipping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment