How it works
A route is not one line. It is a set of choices.
Safe Walk keeps Google Maps as the routing foundation, then adds civic data layers that help people understand the real-world conditions around each walking path.
Routing flow
Fastest stays visible. Alternatives stay explainable.
01
Request routes
Safe Walk asks Google Routes for walking alternatives between the origin and destination.
02
Decode each path
Every polyline is decoded so the map can draw route options cleanly and fit the camera around them.
03
Remove duplicates
Overlapping paths are filtered so the demo shows meaningful alternatives instead of repeated lines.
04
Compare options
The API returns the fastest route and a distinct comparison route when one is available.
Fastest: 18 min
Alternate: 21 min
API shape
Designed to plug into existing maps.
POST /api/route
{
"origin": "University of Toronto",
"destination": "Union Station"
}
{
"fastest": { "duration": "1040s" },
"alternate": { "duration": "1210s" }
}