TypeScript definitions for SharedStreets.js
npm install --save sharedstreets-types
import { SharedStreetsIntersection, RoadClass } from './'
// Intersection
const intersection: SharedStreetsIntersection = {
id: 'ABC',
nodeId: 123,
inboundReferenceIds: ['DEF'],
outboundReferenceIds: ['GHI']
}
// RoadClass
RoadClass.Motorway // => 0
RoadClass.Trunk // => 1
This package contains type definitions for sharedstreets (https://sharedstreets.io/).
These definitions were written by Denis Carriere https://github.com/DenisCarriere.