Trying to add GEO2DSPHERE index on address lat lng values


#1

The problem is i want to index the lat,lng on an address JSON.

address: { streetAddress: “—”, city: “”, state: “”, lat: -124.99, lng: 192.0984 }


#2

You need to express that point as GeoJSON, rather than as two different keys of the address bin.

https://www.aerospike.com/docs/guide/geospatial.html