Fix formatting
This commit is contained in:
@@ -288,4 +288,4 @@ util::json::Array makeRouteLegs(std::vector<guidance::RouteLeg> legs,
|
||||
}
|
||||
return json_legs;
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::api::json
|
||||
|
||||
@@ -63,4 +63,4 @@ MMapMemoryAllocator::~MMapMemoryAllocator() {}
|
||||
|
||||
const storage::SharedDataIndex &MMapMemoryAllocator::GetIndex() { return index; }
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::datafacade
|
||||
|
||||
@@ -34,4 +34,4 @@ ProcessMemoryAllocator::~ProcessMemoryAllocator() {}
|
||||
|
||||
const storage::SharedDataIndex &ProcessMemoryAllocator::GetIndex() { return index; }
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::datafacade
|
||||
|
||||
@@ -37,4 +37,4 @@ SharedMemoryAllocator::~SharedMemoryAllocator() {}
|
||||
|
||||
const storage::SharedDataIndex &SharedMemoryAllocator::GetIndex() { return index; }
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::datafacade
|
||||
|
||||
@@ -117,4 +117,4 @@ std::vector<util::Coordinate> douglasPeucker(std::vector<util::Coordinate>::cons
|
||||
|
||||
return simplified_geometry;
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine
|
||||
|
||||
@@ -25,4 +25,4 @@ bool EngineConfig::IsValid() const
|
||||
storage_config.IsValid()) &&
|
||||
limits_valid;
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine
|
||||
|
||||
@@ -86,4 +86,4 @@ std::vector<util::Coordinate> assembleOverview(const std::vector<LegGeometry> &l
|
||||
return overview_geometry;
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::guidance
|
||||
|
||||
@@ -23,4 +23,4 @@ Route assembleRoute(const std::vector<RouteLeg> &route_legs)
|
||||
return Route{distance, duration, weight};
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::guidance
|
||||
|
||||
@@ -44,4 +44,4 @@ std::pair<short, short> getArriveBearings(const LegGeometry &leg_geometry,
|
||||
return std::make_pair<short, short>(
|
||||
std::round(util::coordinate_calculation::bearing(pre_turn_coordinate, turn_coordinate)), 0);
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::guidance::detail
|
||||
|
||||
@@ -415,4 +415,4 @@ bool straightTurnFollowedByChoiceless(const RouteStepIterator step_entering_inte
|
||||
noIntermediaryIntersections(*step_entering_intersection);
|
||||
}
|
||||
|
||||
} /* namespace osrm */
|
||||
} // namespace osrm::engine::guidance
|
||||
|
||||
@@ -663,4 +663,4 @@ RouteSteps collapseSegregatedTurnInstructions(RouteSteps steps)
|
||||
return steps;
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::guidance
|
||||
|
||||
@@ -205,4 +205,4 @@ std::vector<RouteStep> anticipateLaneChange(std::vector<RouteStep> steps,
|
||||
return steps;
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::guidance
|
||||
|
||||
@@ -714,4 +714,4 @@ void applyOverrides(const datafacade::BaseDataFacade &facade,
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::guidance
|
||||
|
||||
@@ -81,4 +81,4 @@ std::vector<RouteStep> suppressShortNameSegments(std::vector<RouteStep> steps)
|
||||
return removeNoTurnInstructions(std::move(steps));
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::guidance
|
||||
|
||||
+1
-1
@@ -122,4 +122,4 @@ bool Hint::IsValid(const util::Coordinate new_input_coordinates,
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine
|
||||
|
||||
@@ -310,4 +310,4 @@ Status MatchPlugin::HandleRequest(const RoutingAlgorithmsInterface &algorithms,
|
||||
|
||||
return Status::Ok;
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::plugins
|
||||
|
||||
@@ -53,4 +53,4 @@ Status NearestPlugin::HandleRequest(const RoutingAlgorithmsInterface &algorithms
|
||||
|
||||
return Status::Ok;
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::plugins
|
||||
|
||||
@@ -153,4 +153,4 @@ Status TablePlugin::HandleRequest(const RoutingAlgorithmsInterface &algorithms,
|
||||
|
||||
return Status::Ok;
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::plugins
|
||||
|
||||
@@ -691,4 +691,4 @@ Status TilePlugin::HandleRequest(const RoutingAlgorithmsInterface &algorithms,
|
||||
|
||||
return Status::Ok;
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::plugins
|
||||
|
||||
@@ -293,4 +293,4 @@ Status TripPlugin::HandleRequest(const RoutingAlgorithmsInterface &algorithms,
|
||||
|
||||
return Status::Ok;
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::plugins
|
||||
|
||||
@@ -182,4 +182,4 @@ Status ViaRoutePlugin::HandleRequest(const RoutingAlgorithmsInterface &algorithm
|
||||
|
||||
return Status::Ok;
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::plugins
|
||||
|
||||
@@ -71,4 +71,4 @@ std::int32_t decode_polyline_integer(std::string::const_iterator &first,
|
||||
result = ((result & 1) == 1) ? ~(result >> 1) : (result >> 1);
|
||||
return static_cast<std::int32_t>(result);
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::detail
|
||||
|
||||
@@ -850,4 +850,4 @@ InternalManyRoutesResult alternativePathSearch(SearchEngineData<Algorithm> &engi
|
||||
return InternalManyRoutesResult{{std::move(primary_route), std::move(secondary_route)}};
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::routing_algorithms
|
||||
|
||||
@@ -956,4 +956,4 @@ InternalManyRoutesResult alternativePathSearch(SearchEngineData<Algorithm> &sear
|
||||
return InternalManyRoutesResult{std::move(routes)};
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::routing_algorithms
|
||||
|
||||
@@ -87,4 +87,4 @@ InternalRouteResult directShortestPathSearch(SearchEngineData<mld::Algorithm> &e
|
||||
return extractRoute(facade, weight, endpoint_candidates, unpacked_nodes, unpacked_edges);
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::routing_algorithms
|
||||
|
||||
@@ -247,4 +247,4 @@ manyToManySearch(SearchEngineData<ch::Algorithm> &engine_working_data,
|
||||
return std::make_pair(std::move(durations_table), std::move(distances_table));
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::routing_algorithms
|
||||
|
||||
@@ -672,4 +672,4 @@ manyToManySearch(SearchEngineData<mld::Algorithm> &engine_working_data,
|
||||
calculate_distance);
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::routing_algorithms
|
||||
|
||||
@@ -453,7 +453,7 @@ mapMatching(SearchEngineData<mld::Algorithm> &engine_working_data,
|
||||
const std::vector<boost::optional<double>> &trace_gps_precision,
|
||||
const bool allow_splitting);
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::routing_algorithms
|
||||
|
||||
//[1] "Hidden Markov Map Matching Through Noise and Sparseness"; P. Newson and J. Krumm; 2009; ACM
|
||||
// GIS
|
||||
|
||||
@@ -103,4 +103,4 @@ PhantomEndpoints endpointsFromCandidates(const PhantomEndpointCandidates &candid
|
||||
return PhantomEndpoints{*source_it, *target_it};
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::routing_algorithms
|
||||
|
||||
@@ -202,4 +202,4 @@ double getNetworkDistance(SearchEngineData<Algorithm> &engine_working_data,
|
||||
|
||||
return getPathDistance(facade, unpacked_path, source_phantom, target_phantom);
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::routing_algorithms::ch
|
||||
|
||||
@@ -17,4 +17,4 @@ shortestPathSearch(SearchEngineData<mld::Algorithm> &engine_working_data,
|
||||
const std::vector<PhantomNodeCandidates> &waypoint_candidates,
|
||||
const boost::optional<bool> continue_straight_at_waypoint);
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::routing_algorithms
|
||||
|
||||
@@ -265,4 +265,4 @@ std::vector<TurnData> getTileTurns(const DataFacade<mld::Algorithm> &facade,
|
||||
return generateTurns(facade, edges, sorted_edge_indexes, edge_finder);
|
||||
}
|
||||
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine::routing_algorithms
|
||||
|
||||
@@ -128,4 +128,4 @@ void SearchEngineData<MLD>::InitializeOrClearManyToManyThreadLocalStorage(
|
||||
many_to_many_heap.reset(new ManyToManyQueryHeap(number_of_nodes, number_of_boundary_nodes));
|
||||
}
|
||||
}
|
||||
} // namespace osrm
|
||||
} // namespace osrm::engine
|
||||
|
||||
Reference in New Issue
Block a user