Dennis Luxen
bb3cbf2dda
fix indentation, remove superflous else clause
2014-08-20 14:01:40 +02:00
Dennis Luxen
39d96a45aa
fix lambda syntax
2014-08-20 12:14:31 +02:00
Emil Tin
00dd2463fd
use lambda to decide turn value
2014-08-20 11:48:47 +02:00
Emil Tin
2780ff31b5
fix bug with mode of 1st instruction
2014-08-20 11:08:59 +02:00
Emil Tin
30362cfc0c
update lua interface to speed and mode
2014-08-20 11:08:58 +02:00
Emil Tin
feaf8711d3
announce mode changes
2014-08-20 11:08:58 +02:00
Emil Tin
35988d8f09
fix problem with mode of first instruction
2014-08-20 11:08:42 +02:00
Emil Tin
4dd0377eb8
fix compilation of tests
2014-08-20 11:08:42 +02:00
Emil Tin
6fd615b9cd
first cut at porting travel mode, some tests fail
2014-08-20 11:08:41 +02:00
Dennis Luxen
c63218a889
add final/override keyword where possible to help compiler de-virtualize function calls
2014-08-18 10:19:33 +02:00
Dennis Luxen
0341a0d5e7
reformatting DescriptionFactory.cpp
2014-08-12 19:29:54 +02:00
Dennis Luxen
d54a55c12b
implements announcement of waypoints, closes #584
2014-08-11 20:29:15 +02:00
Dennis Luxen
d4bf02c882
replace boost integer range
2014-08-05 17:19:09 +02:00
Dennis Luxen
759449b4be
remove an unneeded check in JSONDescriptor
2014-08-01 15:59:45 +02:00
dmbreaker
a999cb9db9
Fixes alternative route end-point ( http://imgur.com/ZQhwTZi )
2014-07-31 16:10:02 +04:00
Dennis Luxen
1188002bcb
downcast position explicitly to unsigned
2014-07-15 16:48:04 +02:00
Dennis Luxen
fc399e01fe
explicitly cast segment length from float to int
2014-07-10 15:06:20 +02:00
Dennis Luxen
ffdc3eee2d
use proper float literal instead of implicit cast from int
2014-07-10 15:01:38 +02:00
Dennis Luxen
1d3932e8c5
fix an off-by-one issue in the output JSON
2014-06-27 16:18:38 +02:00
Guillaume Beraudo
129f7b7441
Remove unused polyline method
2014-06-24 17:18:52 +02:00
Dennis Luxen
5e1110930e
use proper floating point literal instead of implicit cast from int
2014-06-23 14:42:37 +02:00
Dennis Luxen
8104a8aea1
reformat to cut long line
2014-06-20 16:49:33 +02:00
Dennis Luxen
61f3d85af1
add even more cast sanity
2014-06-18 11:49:01 +02:00
Dennis Luxen
b8ea935424
cast bearing to unsigned
2014-06-18 11:17:51 +02:00
Dennis Luxen
0f2062b739
round bearing value to integers
2014-06-18 11:00:13 +02:00
Dennis Luxen
58134200df
use float consistently in DescriptionFactory
2014-06-18 10:44:46 +02:00
Dennis Luxen
f6bab21928
use double consistently in JSONDescriptor
2014-06-18 10:44:09 +02:00
Dennis Luxen
bbc0ba147a
reformat Descriptors/JSONDescriptor.h
2014-06-18 10:15:38 +02:00
Dennis Luxen
ba440550a6
make conversion explicit
2014-06-11 18:15:31 +02:00
Dennis Luxen
8aee371d81
further include untangling, chops 5sec compile time
2014-06-11 12:25:57 +02:00
Dennis Luxen
71c4f81b59
avoid signed/unsigned comparison
2014-06-10 18:08:58 +02:00
Dennis Luxen
44ca12ead6
fix inverted logic
2014-05-28 12:05:42 +02:00
Dennis Luxen
acefb5a5f3
remove debug output
2014-05-27 19:05:37 +02:00
Dennis Luxen
38ebdbb563
implements #949 , wrong duration on first segment
2014-05-27 16:54:10 +02:00
Dennis Luxen
49a1dfff60
fix off-by-one issue related to #1020
2014-05-27 12:09:05 +02:00
Dennis Luxen
5f4d342d45
move last leg handling into DescribeLeg() function
2014-05-27 11:48:19 +02:00
Dennis Luxen
78270c8155
fix unneeded variable warning in release build
2014-05-26 18:40:21 +02:00
Dennis Luxen
f62515e13b
commented assertion that is triggered on trivial instances
2014-05-26 16:03:08 +02:00
Dennis Luxen
0325861ef3
remove an unneeded parameter
2014-05-26 15:31:30 +02:00
Dennis Luxen
37f8285a6e
implements #1020
2014-05-26 15:31:09 +02:00
Dennis Luxen
917b1cbd6c
fix index of instructions
2014-05-26 11:38:35 +02:00
Dennis Luxen
75a2d4d00a
minor code refactoring, wip
2014-05-20 14:33:02 +02:00
Dennis Luxen
c970cd13cc
flip bearings by 180
2014-05-20 14:33:01 +02:00
Dennis Luxen
8983c0f927
move GetBearing(.) function into FixedPointCoordinate
2014-05-20 14:33:01 +02:00
Dennis Luxen
a47467f29b
store facade ptr in c'tor, save a param in sub-sequent function calls
2014-05-20 14:33:01 +02:00
Dennis Luxen
da5eec1c5f
refactor route name extraction into its own class, fix name extraction
2014-05-20 14:33:01 +02:00
Dennis Luxen
d2f19353ed
remove some debug output
2014-05-20 14:33:00 +02:00
Dennis Luxen
a80815d57a
implements output generation through a dedicated JSON container:
...
- JSON syntax is not scattered over several files, but one place
- Reduces code duplication
- breaking changes:
- new property in json(p) formatted response: "found_alternative": True/False
- returned filenames now response.js(on) or route.gpx
- /hello plugin returns JSON now
2014-05-20 14:33:00 +02:00
Dennis Luxen
24a61dc650
remove unused function parameters
2014-05-11 17:58:37 +02:00
Dennis Luxen
f060dfda40
refactor list of const static int into scoped enum
2014-05-08 18:04:05 +02:00