UNPKG

multiplanner

Version:

Tool om polydestinale reizen te plannen over het Nederlandse spoornet.

9 lines (8 loc) 254 B
import coordinaatAfstand from "#f/coordinaatAfstand.js"; export default (polyline) => { let afstand = 0; for (let i = 1; i < polyline.length; i++) { afstand += coordinaatAfstand(polyline[i], polyline[i - 1]); } return afstand; };