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