nypd汽车碰撞api查询

时间:2017-09-25 16:46:44

标签: socrata soda

我正在尝试查询nypd collisions API。 以下网址是成功的查询 " https://data.cityofnewyork.us/resource/qiz3-axqb.geojson $其中= within_circle(位置,%2040.73214,%20-73.99860000000001,%20100)及number_of_persons_injured = 1" 但我似乎无法使用' number_of_persons_injured>查询相同内容。 0' 在尝试将其与' within_circle'组合时,我收到了该查询的错误信息。 如果您可以告诉我如何查询' within_circle()AND(number_of_persons_injured> 0ORnumber_of_persons_killed> 0)'那将是额外的帮助。 谢谢

1 个答案:

答案 0 :(得分:0)

这更像你在想什么?

GET https://data.cityofnewyork.us/resource/qiz3-axqb.geojson?$where=within_circle(location,%2040.73214,%20-73.99860000000001,%20100)%20AND%20(number_of_persons_injured%20%3E%200%20OR%20number_of_persons_killed%20%3E%200)

我所做的就是放弃number_of_persons_injured=1因为$where中的重复,我在ANDOR周围添加了空格。