i having trouble algolia's geo search feature working before. here record of interest.
i had indexed described doc in order me sort nearest distance:
'attributestoindex' => ['name', 'description', 'geo']
in client script:
let settings = { aroundlatlng: '10.309813,123.893154', getrankinginfo: true, aroundradius: 2000 }; index.search(keyword, settings, (err, data) => { console.log(data); });
but gives me 0 hit. notice aroundlatlng
value -- same value record of interest.
am missing here?
my bad. malformed indexed data _geoloc. should keyed lat
, lng
Comments
Post a Comment