Ignore traffic lights to the south
This commit is contained in:
parent
597feaead8
commit
dc91e5e6eb
@ -54,16 +54,19 @@ def get_traffic_lights_geo():
|
|||||||
}},
|
}},
|
||||||
{"$redact": {
|
{"$redact": {
|
||||||
"$cond": {
|
"$cond": {
|
||||||
"if": {"$lte": ["$calculatedRange", "$range"]},
|
"if": {
|
||||||
|
"$lte": ["$calculatedRange", "$range"]
|
||||||
|
},
|
||||||
"then": "$$KEEP",
|
"then": "$$KEEP",
|
||||||
"else": "$$PRUNE"
|
"else": "$$PRUNE"
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
if lat < traffic_light['location'][1]
|
||||||
]
|
]
|
||||||
|
|
||||||
return json_util.dumps({'cursor': traffic_lights})
|
return json_util.dumps({'cursor': traffic_lights[:1]})
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user