Replies: 2 comments
-
Any updates or plans to implement this? Or wondering if anyone has successfully forked and implemented a solution. |
Beta Was this translation helpful? Give feedback.
0 replies
-
There wasn't much requests for this feature, which is why we didn't look into it yet. However the code should be here if you're interested in contributing:
@berserkia, alternatively you can also create only one hit per location |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Do you want to request a feature or report a bug?
Feature
Feature: What is your use case for such a feature?
In some cases hits can have multiple locations. In that case the
_geoloc
attribute will be an array of position instead of being a single location object. Right now we only handle the case for single location.Feature: What is your proposed API entry? The new option to add? What is the behavior?
There are several things to do in order to support this behaviour:
getRankingInfo
on theSearchParameters
in order to have access to the_rankingInfo
attribute that contains the correct matched locationaroundLatLng
: filter the_geoloc
locations with thematchedGeoLocation
value retrieved from the_rankingInfo
attributeinsideBoundingBox
: filter the_geoloc
locations from the current map bounding box. It means that it might happen that we have more results on the map rather than in the hits. Because a single hit might have multiple locations that match the current map view.Beta Was this translation helpful? Give feedback.
All reactions