Hello, I am trying polygon geoSpattial data in nodejs client with this data
let GeoJSON = aerospike.GeoJSON;
let polygon = new GeoJSON({
type: 'Polygon',
coordinates:
[
[
[
71.6967773,
32.6393749
],
[
76.4868164,
34.3434361
],
[
80.4638672,
32.0639556
],
[
79.4750977,
28.1107488
],
[
74.3994141,
26.4312281
],
[
68.9941406,
28.8831596
],
[
71.6967773,
32.6578757
]
]
]
})
Aerospike.put({
bins: {
"storeId": 82,
"menuId": 5,
"geoFence": polygon
},
set: 'outlet',
key: "outlet1",
update: true
})
It is giving error code 160 : Unsupported Geo JSON format . but if i try coordinates like [20,30] it works. So i am assuming there is some issue with floating points as well as negative coordinates. Where i am making the mistake? Any help appreciated. Thanks.