I know Mapzen can provide a pedestrian route for the itinerary I am trying to do because I can get it on openstreetmaps.org.
But I can't get it to work on my embedded map, and I absolutely don't know the reason.
My code is the following:
L.Routing.control({
waypoints: [
L.latLng(-44.004358, 170.476709),
L.latLng(-43.985844, 170.464058)
],
router: L.Routing.Mapzen('valhalla-apikey', 'pedestrian')
// formatter: new L.Routing.Mapzen.Formatter()
}).addTo(cafeMap);
(Replacing apikey with my apikey)
But all I get is the normal driving itinerary. I tried replacing 'pedestrian' by all the other options available, but can't get it to work.
Anyone sees a glitch in my code?
Thanks