added bearing to matching with uncertinty 30
This commit is contained in:
parent
c04b4fd9e7
commit
67f8d1e7ca
Binary file not shown.
BIN
cloc-2.08.exe
Normal file
BIN
cloc-2.08.exe
Normal file
Binary file not shown.
BIN
kdtree.obj
BIN
kdtree.obj
Binary file not shown.
BIN
src/main.obj
BIN
src/main.obj
Binary file not shown.
@ -19,6 +19,15 @@ inline void MatchParameters_Add(MatchParameters *params, Location l) {
|
|||||||
params->coordinates.push_back({util::FloatLongitude{l.longitude}, util::FloatLatitude{l.latitude}});
|
params->coordinates.push_back({util::FloatLongitude{l.longitude}, util::FloatLatitude{l.latitude}});
|
||||||
params->timestamps .push_back(l.time);
|
params->timestamps .push_back(l.time);
|
||||||
params->radiuses .push_back(radius);
|
params->radiuses .push_back(radius);
|
||||||
|
|
||||||
|
// @Note: Should be replaced by bearing_accuracy that is coming from android
|
||||||
|
// for better resutls.
|
||||||
|
short bearing_range = 30; // ±30 degrees tolerance
|
||||||
|
|
||||||
|
params->bearings.push_back(osrm::engine::Bearing{
|
||||||
|
static_cast<short>(l.bearing),
|
||||||
|
bearing_range
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void RouteParameters_Init(RouteParameters *params) {
|
inline void RouteParameters_Init(RouteParameters *params) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user