Block some roads using the intersection with polylines, calculate a route between two waypoints and display the route with and without taking account the blocked roads.
PTV Developer APIs used in this tutorial:
- Replace the API key placeholder "YOUR_API_KEY" in
index.js
with your PTV Developer API key. - Start the application by opening
index.html
in your browser.