According to this blog post, Algolia now allows several geolocations on a single record. All we have to do is to pass it as an array. I've tried it with the algolia-rails gem but was unable to do it.
Here are the combinations I've tried that does not work:
"geoloc": [
{"lat": :latitude, "lng": :longitude}
]
geoloc [{:latitude, :longitude}]
And a bunch of other combinations. Most of it results in an error indicating that geoloc is expecting 2 arguments instead of 1 which is an array.
My original code for a single geoloc which works is:
geoloc :latitude, :longitude