Chandler Swift
91977bdc99
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)
46 lines
772 B
GraphQL
46 lines
772 B
GraphQL
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
|
|
}
|
|
}
|
|
}
|