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
- Host: GitHub
- URL: https://github.com/enoumy/capy-maps-ui
- Owner: Enoumy
- Created: 2023-09-03T17:14:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-05T01:21:50.000Z (over 1 year ago)
- Last Synced: 2025-01-21T11:23:06.335Z (5 months ago)
- Language: Svelte
- Homepage: https://capymaps.com
- Size: 319 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 ]}))
```