Skip to content

Commit cfa4e5f

Browse files
committed
Back to Monaco for examples and benchmarks
1 parent 74df7ad commit cfa4e5f

File tree

7 files changed

+120
-75
lines changed

7 files changed

+120
-75
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ matrix:
4242
apt:
4343
sources: ['ubuntu-toolchain-r-test']
4444
packages: ['g++-6', 'libbz2-dev', 'libstxxl-dev', 'libstxxl1', 'libxml2-dev', 'libzip-dev', 'lua5.1', 'liblua5.1-0-dev', 'libtbb-dev', 'libgdal-dev', 'libluabind-dev', 'libboost-all-dev']
45-
# Disabled sanitizer since the build was too slow. We need to downgrade our tets dataset from Berlin to Monaco again.
46-
#env: CCOMPILER='gcc-6' CXXCOMPILER='g++-6' BUILD_TYPE='Debug' TARGET_ARCH='x86_64-asan' ENABLE_COVERAGE=ON ENABLE_SANITIZER=ON
47-
env: CCOMPILER='gcc-6' CXXCOMPILER='g++-6' BUILD_TYPE='Debug' TARGET_ARCH='x86_64-asan' ENABLE_COVERAGE=ON ENABLE_SANITIZER=OFF
45+
env: CCOMPILER='gcc-6' CXXCOMPILER='g++-6' BUILD_TYPE='Debug' TARGET_ARCH='x86_64-asan' ENABLE_COVERAGE=ON ENABLE_SANITIZER=ON
4846

4947
- os: linux
5048
compiler: "clang-4.0-debug"
@@ -197,7 +195,7 @@ install:
197195
script:
198196
- if [[ $TARGET_ARCH == armhf ]] ; then echo "Skip tests for $TARGET_ARCH" && exit 0 ; fi
199197
- make -C test/data benchmark
200-
- ./example/build/osrm-example test/data/ch/berlin.osrm
198+
- ./example/build/osrm-example test/data/monaco.osrm
201199
# All tests assume to be run from the build directory
202200
- pushd ${OSRM_BUILD_DIR}
203201
- ./unit_tests/library-tests

appveyor-build.bat

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ unit_tests\%Configuration%\server-tests.exe
133133
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
134134

135135
ECHO running library-tests.exe ...
136-
SET test_region=berlin
137-
SET test_region_ch=ch\berlin
138-
SET test_region_corech=corech\berlin
139-
SET test_region_mld=mld\berlin
136+
SET test_region=monaco
137+
SET test_region_ch=ch\monaco
138+
SET test_region_corech=corech\monaco
139+
SET test_region_mld=mld\monaco
140140
SET test_osm=%test_region%.osm.pbf
141-
IF NOT EXIST %test_osm% powershell Invoke-WebRequest https://s3.amazonaws.com/mapbox/osrm/testing/berlin.osm.pbf -OutFile %test_osm%
141+
IF NOT EXIST %test_osm% powershell Invoke-WebRequest https://s3.amazonaws.com/mapbox/osrm/testing/monaco.osm.pbf -OutFile %test_osm%
142142
%Configuration%\osrm-extract.exe -p ../profiles/car.lua %test_osm%
143143
MKDIR ch
144144
XCOPY %test_region%.osrm %test_region%.osrm.* ch\
File renamed without changes.
File renamed without changes.

example/example.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ int main(int argc, const char *argv[])
3939
// The following shows how to use the Route service; configure this service
4040
RouteParameters params;
4141

42-
// Route in Berlin: Alexanderplatz to Hackescher Markt
43-
params.coordinates.push_back({util::FloatLongitude{13.414307}, util::FloatLatitude{52.521835}});
44-
params.coordinates.push_back({util::FloatLongitude{13.402290}, util::FloatLatitude{52.523728}});
42+
// Route in monaco
43+
params.coordinates.push_back({util::FloatLongitude{7.419758}, util::FloatLatitude{43.731142}});
44+
params.coordinates.push_back({util::FloatLongitude{7.419505}, util::FloatLatitude{43.736825}});
4545

4646
// Response is in JSON format
4747
json::Object result;
@@ -58,7 +58,7 @@ int main(int argc, const char *argv[])
5858
const auto distance = route.values["distance"].get<json::Number>().value;
5959
const auto duration = route.values["duration"].get<json::Number>().value;
6060

61-
// Warn users if extract does not contain the default Berlin coordinates from above
61+
// Warn users if extract does not contain the default coordinates from above
6262
if (distance == 0 || duration == 0)
6363
{
6464
std::cout << "Note: distance or duration is zero. ";

example/example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var OSRM = require('..');
55
var path = require('path');
66

77
var app = express();
8-
var osrm = new OSRM(path.join(__dirname,"../test/data/berlin_CH.osrm"));
8+
var osrm = new OSRM(path.join(__dirname,"../test/data/ch/monaco.osrm"));
99

1010
// Accepts a query like:
1111
// http://localhost:8888?start=13.414307,52.521835&end=13.402290,52.523728

0 commit comments

Comments
 (0)