0

我正在尝试查询 nypd 冲突 API。以下网址是一个成功的查询“ https://data.cityofnewyork.us/resource/qiz3-axqb.geojson ?$where=within_circle(location,%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)' 谢谢

4

1 回答 1

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)

我所做的只是删除了s 和 snumber_of_persons_injured=1中重复的s ,并在s 和.$where周围添加了空格。ANDOR

于 2017-09-25T20:31:54.483 回答