GithubHelp home page GithubHelp logo

wsdot-parser's Introduction

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"
    },
    ...
    {...},
    {...}
]

wsdot-parser's People

Contributors

chergik avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.