-
Glenn Vorhes authoredGlenn Vorhes authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
_npmrdsInterfaces.js.map 2.85 KiB
{"version":3,"file":"_npmrdsInterfaces.js","sourceRoot":"","sources":["../../src/api/_npmrdsInterfaces.ts"],"names":[],"mappings":"AAAA;;GAEG;;;AAgHH,IAAI,YAAY,GAAG;IACf,GAAG,EAAE;QACD,UAAU,EAAE,EAAC,IAAI,EAAE,+BAA+B,EAAC;QACnD,IAAI,EAAE,MAAM;KACf;IACD,IAAI,EAAE,mBAAmB;IACzB,QAAQ,EAAE,EAAE;CACf,CAAC","sourcesContent":["/**\r\n * Created by glenn on 6/13/2017.\r\n */\r\n\r\n\r\nexport interface iRoad {\r\n number: string;\r\n direction: string;\r\n tmcs: string[];\r\n}\r\n\r\nexport interface iGetRoads {\r\n roads: iRoad[];\r\n}\r\n\r\nexport interface iExtent {\r\n coordinates?: Array<number[]>;\r\n bottom?: number;\r\n top?: number;\r\n left?: number;\r\n right?: number;\r\n}\r\n\r\nexport interface iRoad {\r\n number: string;\r\n direction: string;\r\n tmcs: string[];\r\n}\r\n\r\nexport interface iGeoJsonFeaturePointBase {\r\n type: string;\r\n properties: { [s: string]: string | number | boolean };\r\n\r\n}\r\n\r\n\r\nexport interface iGeoJsonFeaturePoint extends iGeoJsonFeaturePointBase {\r\n geometry: {\r\n type: string;\r\n coordinates: number[]\r\n }\r\n}\r\n\r\nexport interface iGeoJsonFeatureLine extends iGeoJsonFeaturePointBase {\r\n geometry: {\r\n type: string;\r\n coordinates: Array<number[]>\r\n }\r\n}\r\n\r\nexport interface iGeoJsonFeaturePolygon extends iGeoJsonFeaturePointBase {\r\n geometry: {\r\n type: string;\r\n coordinates: Array<Array<number[]>>\r\n }\r\n}\r\n\r\nexport interface iGeoJsonBase {\r\n type: string;\r\n crs: {\r\n properties: { name: string }\r\n type: string;\r\n };\r\n\r\n}\r\n\r\nexport interface iGeoJsonPoint extends iGeoJsonBase {\r\n features: iGeoJsonFeaturePoint[]\r\n}\r\n\r\nexport interface iGeoJsonLine extends iGeoJsonBase {\r\n features: iGeoJsonFeatureLine[]\r\n}\r\n\r\nexport interface iGeoJsonPolygon extends iGeoJsonBase {\r\n features: iGeoJsonFeaturePolygon[]\r\n}\r\n\r\n\r\nexport interface iSpeedVal {\r\n date: string;\r\n all: number;\r\n pas: number;\r\n frgt: number;\r\n}\r\n\r\n\r\nexport interface iSpeed {\r\n count: number;\r\n dates: string[];\r\n free: { [s: string]: number };\r\n std: { [s: string]: number };\r\n values: { [s: string]: iSpeedVal[] };\r\n}\r\n\r\nexport interface iError {\r\n error: string;\r\n}\r\n\r\nexport interface iGeometry{\r\n roads: iRoad[];\r\n geom: iGeoJsonLine;\r\n speed?: iSpeed;\r\n}\r\n\r\nexport interface iRoute{\r\n roads: iRoad[];\r\n line: iGeoJsonLine;\r\n points: iGeoJsonPoint;\r\n totalDistance: number;\r\n speed?: iSpeed;\r\n lengths: {[s: string]: number}\r\n}\r\n\r\nlet emptyGeojson = {\r\n crs: {\r\n properties: {name: \"urn:ogc:def:crs:OGC:1.3:CRS84\"},\r\n type: 'name'\r\n },\r\n type: \"FeatureCollection\",\r\n features: []\r\n};\r\n\r\n\r\n"]}