Route elevation profile (climb, descent, max grade) from the terrain tiles, and reach (isochrones) in the route panel

This commit is contained in:
randy committed 2026-11-13 22:55:55 +01:00
1 parent b80575828a
commit cca985d2b9
10 files changed
+274 -26

No files matched your search

+2
View File
@@ -233,6 +233,8 @@ class AppTest < Minitest::Test
def test_routing_without_a_valhalla_service_says_so
assert_equal 503, request.post("/api/route", input: JSON.generate(locations: [[17.1, 48.1], [17.2, 48.2]]), "CONTENT_TYPE" => "application/json").status
assert_equal 400, request.post("/api/route", input: JSON.generate(locations: "x"), "CONTENT_TYPE" => "application/json").status
assert_equal 503, request.post("/api/isochrone", input: JSON.generate(center: [17.1, 48.1], minutes: [60]), "CONTENT_TYPE" => "application/json").status
assert_equal 422, request.post("/api/isochrone", input: JSON.generate(center: [17.1, 48.1], minutes: [999]), "CONTENT_TYPE" => "application/json").status
end
def test_the_vehicle_is_readable_by_anyone_but_saved_only_when_logged_in