tfk-saksbehandling-skoleskyss-waypoints

Get an array of waypoints for selected addresses

Usage no npm install needed!

<script type="module">
  import tfkSaksbehandlingSkoleskyssWaypoints from 'https://cdn.skypack.dev/tfk-saksbehandling-skoleskyss-waypoints';
</script>

README

Build Status Coverage Status js-standard-style

tfk-skoleskyss-saksbehandling-waypoints

Greenkeeper badge 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"]