sharedstreets / sharedstreets-js

SharedStreets (Node.js & Javascript)
https://sharedstreets.io
MIT License
78 stars 25 forks source link

Add intersection method #14

Closed DenisCarriere closed 6 years ago

DenisCarriere commented 6 years ago

Add intersection method

example

const intersection = sharedstreets.intersection([110, 45]);
// => intersection

intersection output

{
    id: "71f34691f182a467137b3d37265cb3b6",
    nodeId: undefined,
    lat: 45,
    lon: 110,
    inboundReferenceIds: [],
    outboundReferenceIds: [],
  }