@@ -1493,7 +1493,7 @@ void testBearingsForStartAndEndPoints() {
14931493 body .put ("coordinates" , HelperFunctions .constructCoords ("8.688694,49.399374|8.686495,49.40349" ));
14941494 body .put ("preference" , getParameter ("preference" ));
14951495 body .put ("geometry" , true );
1496- body .put ("bearings" , constructBearings ("25,30|90 ,20" ));
1496+ body .put ("bearings" , constructBearings ("25,30|270 ,20" ));
14971497
14981498 given ()
14991499 .config (JSON_CONFIG_DOUBLE_NUMBERS )
@@ -1505,7 +1505,7 @@ void testBearingsForStartAndEndPoints() {
15051505 .then ()
15061506 .assertThat ()
15071507 .body ("any { it.key == 'routes' }" , is (true ))
1508- .body ("routes[0].summary.distance" , is (closeTo (804.9 , 1 )))
1508+ .body ("routes[0].summary.distance" , is (closeTo (647.2f , 1 )))
15091509 .statusCode (200 );
15101510 }
15111511
@@ -1518,6 +1518,7 @@ void testBearingsExceptLastPoint() {
15181518 body .put ("bearings" , constructBearings ("25,30" ));
15191519
15201520 given ()
1521+ .config (JSON_CONFIG_DOUBLE_NUMBERS )
15211522 .headers (CommonHeaders .jsonContent )
15221523 .pathParam ("profile" , "cycling-road" )
15231524 .body (body .toString ())
@@ -1526,7 +1527,7 @@ void testBearingsExceptLastPoint() {
15261527 .then ()
15271528 .assertThat ()
15281529 .body ("any { it.key == 'routes' }" , is (true ))
1529- .body ("routes[0].summary.distance" , is (647.2f ))
1530+ .body ("routes[0].summary.distance" , is (closeTo ( 804.7f , 1 ) ))
15301531 .statusCode (200 );
15311532 }
15321533
0 commit comments