Last active
September 6, 2017 02:25
-
-
Save colindean/72b8143b2d2caaacc0ba2786f1a9b948 to your computer and use it in GitHub Desktop.
http://www.pittmesh.net/node-data/nodes.json converted to GeoJSON format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# nodes.json has JSONP crap on it so you have to remove | |
# the first and last line of the file before parsing it as JSON. | |
curl http://www.pittmesh.net/node-data/nodes.json | tail -n +2 | sed '$d' | jq -s '.[] | { type: "FeatureCollection", features: [ .[] | {type: "Feature", id: .name, properties: { address, hood, status, device_count }, geometry: { type: "Point", coordinates: [ .lon, .lat] } } ] }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment