このデータセットを使用して、(API呼び出しに渡された)アドレスがどの地区境界にあるかを判断しようとしています。
エンドポイントは、各地区または評議会のオブジェクトの配列を返します。ポリゴンは "the_geom"プロパティ内にあり、タイプと座標の2つのプロパティがあります。私はどこで$を使ってみましたが、エラーが出ます。
[
{
"comments": "Inaugurated 2015-06-22",
"council": "1",
"councilper": "Scott Griggs",
"district": "1",
"objectid": "1",
"shape_area": "343352603.892",
"shape_leng": "88541.3042539",
"the_geom": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-96.80995700065864,
32.77138899977414
],
[
-96.80969800043205,
32.77121999997131
],
[ ...
私は、以下のクエリを使用しようとしましたが、それは私にエラーを与えた:
https://www.dallasopendata.com/resource/h9ws-fqcn.json?$where=within_polygon(the_geom, 'MULTIPOLYGON (((-96.800270, 32.779091)))')
これは、ページのリファレンス・ページである - https://www.dallasopendata.com/Geography-Boundaries/Adopted-Council-Districts/6dcw-hhpj
そして、これはendpoint- https://www.dallasopendata.com/resource/dgxr-hmze.json
ですご協力いただければ幸いです。
[MULTIPOLYGONのFUNC](https://dev.socrata.com/docs/functions/within_polygon.html)はスペース区切りを取るように見えますカンマで区切られた緯度の長いタプルAKA [Well-Known Text](https://en.wikipedia.org/wiki/Well-known_text) – James