Skip to content

chergik/wsdot-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Since packge is not on npm, clone it using git

Installation

Install this packge globally

$ npm install ./wsdot_parser -g

Execution

Run the program with input file as the resource:

$ wsdotp --in=wsdot-file.json --out=../somedir/newfile.json

or with a remote url:

$ wsdotp --in=https://data.seattle.gov/api/views/2az7-96yc/rows.json?accessType=DOWNLOAD \
                    --out=../intersections.json

Source data.

Example json data could be downloaded from here

Output example

The output of the parser will look like an array of objects with key-value pairs:

[
    {
        "sid": 719742,
        "id": "719742",
        "position": null,
        "created_at": null,
        "created_meta": null,
        "updated_at": 0,
        "updated_meta": null,
        "meta": null,
        "OBJECTID": "719742",
        "INTR_ID": "7511",
        "GIS_XCOORD": "1273924.06942999991588294506072998046875",
        "GIS_YCOORD": "245435.13156999999773688614368438720703125",
        "COMPKEY": "25797",
        "COMPTYPE": "13",
        "UNITID": "14338",
        "SUBAREA": "NE",
        "UNITDESC": "7TH AVE NE AND NE 47TH ST",
        "ARTERIALCLASSCD": "2",
        "SHAPE": [
            null,
            "47.663146393000034",
            "-122.3207304519999",
            null,
            false,
            {
                "point": [
                    -122.3207304519999,
                    47.663146393000034
                ]
            }
        ],
        "SIGNAL_MAINT_DIST": " ",
        "SIGNAL_TYPE": "NONE"
    },
    ...
    {...},
    {...}
]

About

Parses and prettifies WSDOT map data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages