Add Iowa DOT
Turns out this is exactly the same as MNDOT, just a different URL!
Differences:
diff -x \*.geojson layers/dot-cams/mn layers/dot-cams/ia
diff -x '*.geojson' layers/dot-cams/mn/get_data.py layers/dot-cams/ia/get_data.py
16,20c16,20
< north:53.23294,
< south:40.40589,
< east:-78.6823,
< west:-107.24675,
< zoom:9,
---
> north:45.2,
> south:38.2,
> east:-82.9,
> west:-98.3,
> zoom:11,
29c29
< res = requests.post('https://511mn.org/api/graphql', json=PAYLOAD)
---
> res = requests.post('https://511ia.org/api/graphql', json=PAYLOAD)
This commit is contained in:
parent
7fbb7a426a
commit
91977bdc99
5 changed files with 200 additions and 0 deletions
45
layers/dot-cams/ia/query.graphql
Normal file
45
layers/dot-cams/ia/query.graphql
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
query MapFeatures($input: MapFeaturesArgs!, $plowType: String) {
|
||||
mapFeaturesQuery(input: $input) {
|
||||
mapFeatures {
|
||||
bbox
|
||||
tooltip
|
||||
uri
|
||||
features {
|
||||
id
|
||||
geometry
|
||||
properties
|
||||
}
|
||||
... on Event {
|
||||
priority
|
||||
}
|
||||
__typename
|
||||
... on Camera {
|
||||
views(limit: 5) {
|
||||
uri
|
||||
... on CameraView {
|
||||
url
|
||||
sources {
|
||||
type
|
||||
src
|
||||
}
|
||||
title
|
||||
}
|
||||
category
|
||||
}
|
||||
}
|
||||
... on Plow {
|
||||
views(limit: 5, plowType: $plowType) {
|
||||
uri
|
||||
... on PlowCameraView {
|
||||
url
|
||||
}
|
||||
category
|
||||
}
|
||||
}
|
||||
}
|
||||
error {
|
||||
message
|
||||
type
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue