* Initial internal intersection updates paired with @oxidase and @kdiluca TODO fix tests and add in new ones * Added Internal Intersection Model * removed debug info * updates per PR 4845 * fixing build errors * fixing all compile errors * fixed EdgeID param * Added is_internal_straight lambda Added/Updated constexpr names and values * added rejection case turn degree logic * debug logging * added turn angle logic to reject if there are incoming edges that have opposite turn degrees than outgoing edges or if the outgoing edges have opposing turn degrees; also merged with master v5.16 * fixed formatting * fix to decrease tile size based on latest turn angle internal intersection updates * Removed breaks Breaks in code were a mistake and caused a change in the internal intersection identification. * Update segregated_intersection_classification.cpp * Update CHANGELOG.md Added CHANGED #4845: Updated segregated intersection identification to Unreleased
28 lines
1.4 KiB
JavaScript
28 lines
1.4 KiB
JavaScript
var path = require('path');
|
|
|
|
// Constants and fixtures for nodejs tests on our Monaco dataset.
|
|
|
|
// Somewhere in Monaco
|
|
// http://www.openstreetmap.org/#map=18/43.73185/7.41772
|
|
exports.three_test_coordinates = [[7.41337, 43.72956],
|
|
[7.41546, 43.73077],
|
|
[7.41862, 43.73216]];
|
|
|
|
exports.two_test_coordinates = exports.three_test_coordinates.slice(0, 2)
|
|
|
|
exports.test_tile = {'at': [17059, 11948, 15], 'size': 168612};
|
|
|
|
// Test files generated by the routing engine; check test/data
|
|
if (process.env.OSRM_DATA_PATH !== undefined) {
|
|
exports.data_path = path.join(path.resolve(process.env.OSRM_DATA_PATH), "ch/monaco.osrm");
|
|
exports.mld_data_path = path.join(path.resolve(process.env.OSRM_DATA_PATH), "mld/monaco.osrm");
|
|
exports.corech_data_path = path.join(path.resolve(process.env.OSRM_DATA_PATH), "corech/monaco.osrm");
|
|
exports.test_memory_path = path.join(path.resolve(process.env.OSRM_DATA_PATH), "test_memory");
|
|
console.log('Setting custom data path to ' + exports.data_path);
|
|
} else {
|
|
exports.data_path = path.resolve(path.join(__dirname, "../data/ch/monaco.osrm"));
|
|
exports.mld_data_path = path.resolve(path.join(__dirname, "../data/mld/monaco.osrm"));
|
|
exports.corech_data_path = path.resolve(path.join(__dirname, "../data/corech/monaco.osrm"));
|
|
exports.test_memory_path = path.resolve(path.join(__dirname, "../data/test_memory"));
|
|
}
|