This commit is contained in:
Siarhei Fedartsou 2024-05-25 19:39:21 +02:00
parent e917e314b5
commit 423154f802
3 changed files with 10 additions and 8 deletions

View File

@ -673,8 +673,8 @@ jobs:
run: | run: |
python3 pr/scripts/ci/post_benchmark_results.py base_results pr_results python3 pr/scripts/ci/post_benchmark_results.py base_results pr_results
ci-complete: # ci-complete:
runs-on: ubuntu-22.04 # runs-on: ubuntu-22.04
needs: [build-test-publish, docker-image, windows-release-node, benchmarks] # needs: [build-test-publish, docker-image, windows-release-node, benchmarks]
steps: # steps:
- run: echo "CI complete" # - run: echo "CI complete"

View File

@ -1,10 +1,10 @@
#ifndef RESTRICTION_HPP #ifndef RESTRICTION_HPP
#define RESTRICTION_HPP #define RESTRICTION_HPP
#include "turn_path.hpp"
#include "util/coordinate.hpp" #include "util/coordinate.hpp"
#include "util/opening_hours.hpp" #include "util/opening_hours.hpp"
#include "util/typedefs.hpp" #include "util/typedefs.hpp"
#include "turn_path.hpp"
#include <limits> #include <limits>
namespace osrm::extractor namespace osrm::extractor

View File

@ -58,8 +58,10 @@ struct CoordinateToJsonArray
util::json::Array operator()(const util::Coordinate coordinate) util::json::Array operator()(const util::Coordinate coordinate)
{ {
util::json::Array json_coordinate; util::json::Array json_coordinate;
json_coordinate.values.emplace_back(util::json::Number{static_cast<double>(toFloating(coordinate.lon))}); json_coordinate.values.emplace_back(
json_coordinate.values.emplace_back(util::json::Number{static_cast<double>(toFloating(coordinate.lat))}); util::json::Number{static_cast<double>(toFloating(coordinate.lon))});
json_coordinate.values.emplace_back(
util::json::Number{static_cast<double>(toFloating(coordinate.lat))});
return json_coordinate; return json_coordinate;
} }
}; };