An open API service indexing awesome lists of open source software.

https://github.com/enoumy/capy-maps-ui

https://capymaps.com
https://github.com/enoumy/capy-maps-ui

Last synced: 3 months ago
JSON representation

https://capymaps.com

Awesome Lists containing this project

README

        

# Capy Maps

Hosted on [capymaps.com](https://capymaps.com) via github pages.

The site is roughtly equivalent to:

```sh
curl https://panynj.gov/bin/portauthority/ridepath.json | jq '.results | map({(.consideredStation|tostring) : .})|add|map_values(.destinations | map({(.label|tostring) : .}) | add | map_values(.messages | map({target : .target, eta: .arrivalTimeMessage}) | group_by(.target)[] | {(.[0].target|tostring) : [.[] | .eta]}))'```
```

for all path stations. Here is the jq query with nicer, non-bash formatting:

```jq
.results
| map({( .consideredStation | tostring ) : . })
| add
| map_values(
.destinations
| map({( .label | tostring ) : . })
| add
| map_values(
.messages
| map({ target : .target, eta: .arrivalTimeMessage })
| group_by(.target)[]
| {( .[0].target | tostring ) : [ .[] | .eta ]}))
```