osrm-backend/include/engine/api
Michael Bell 5d468f2897
Make edge metrics strongly typed (#6421)
This change takes the existing typedefs for weight, duration and
distance, and makes them proper types, using the existing Alias
functionality.

Primarily this is to prevent bugs where the metrics are switched,
but it also adds additional documentation. For example, it now
makes it clear (despite the naming of variables) that most of the
trip algorithm is running on the duration metric.

I've not made any changes to the casts performed between metrics
and numeric types, they now just more explicit.
2022-10-28 15:16:12 +01:00
..
flatbuffers Fixed typo in flatbuffers: longitute -> longitude. 2019-08-26 14:31:51 +03:00
base_api.hpp Refactor CMake code related to compiler warnings, enable some additional warnings (#6355) 2022-09-30 11:42:36 +02:00
base_parameters.hpp Support snapping to multiple ways at an input location (#5953) 2022-08-27 11:36:20 +01:00
base_result.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
json_factory.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
match_api.hpp Support snapping to multiple ways at an input location (#5953) 2022-08-27 11:36:20 +01:00
match_parameters_tidy.hpp Fix distance calculation consistency. (#6315) 2022-08-19 22:31:40 +01:00
match_parameters.hpp Reduce copying in API parameter constructors 2021-01-06 23:15:35 +00:00
nearest_api.hpp Support snapping to multiple ways at an input location (#5953) 2022-08-27 11:36:20 +01:00
nearest_parameters.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
route_api.hpp Fix annotations=true handling in NodeJS bindings & libosrm (#6415) 2022-10-19 08:35:18 +02:00
route_parameters.hpp Reduce copying in API parameter constructors 2021-01-06 23:15:35 +00:00
table_api.hpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
table_parameters.hpp Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
tile_parameters.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
trip_api.hpp Support snapping to multiple ways at an input location (#5953) 2022-08-27 11:36:20 +01:00
trip_parameters.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00