tfk-saksbehandling-skoleskyss-waypoints
v1.0.11
Published
Get an array of waypoints for selected addresses
Downloads
7
Readme
tfk-skoleskyss-saksbehandling-waypoints
Returns an array of waypoints for some addresses
Usage
'use strict'
const getWaypoints = require('tfk-saksbehandling-skoleskyss-waypoints')
const nope = {
"skole": "3730",
"ADR": "ELSETVEGEN 7",
"POSTN": "3731"
}
const yep = {
"skole": "3730",
"ADR": "ELSETVEGEN 34",
"POSTN": "3731"
}
console.log(getWaypoints(nope)) //=> []
console.log(getWaypoints(yep)) //=> ["59.1919941,9.5440346","59.1914183,9.5543178"]