Navigation: rerouting off the route (30 m for 3 fixes, HDOP ≤ 5, every 15 s at most) from the position to the points not reached yet; lanes as SVG arrows, the ones to take bold; dashboard background see-through with a slider; the GNSS simulation starts at a random place in the offline countries, the map jumping there
This commit is contained in:
1 parent
fbccb2acc9
commit
5f4c7c6ee8
9 files changed
+176
-35
No files matched your search
@@ -254,6 +254,7 @@ module Maptool
|
||||
properties: { kind: "route", costing: costing, distance_km: data["trip"]["summary"]["length"],
|
||||
time_s: data["trip"]["summary"]["time"], countries: along[:countries],
|
||||
speed_limits: along[:speed_limits], signals: along[:signals],
|
||||
legs_km: legs.map { |leg| leg.dig("summary", "length") }, # to each via point, for rerouting
|
||||
# lanes: Valhalla's [{directions:, valid:, active:}] bitmasks, at junctions that have them
|
||||
maneuvers: legs.flat_map { |leg| leg["maneuvers"].map { |m| { text: m["instruction"], km: m["length"], lanes: m["lanes"] }.compact } } } }
|
||||
rescue ArgumentError, TypeError
|
||||
|
||||
Reference in new issue
Block a user