Hi, looking for suggestions on handling documents ...
# community-help
j
Hi, looking for suggestions on handling documents with multiple geographies (lat/lon).
j
There’s a
geopoint[]
data type… But could you elaborate on how you’re looking to query the data?
j
Users are saving favorite things to named lists. We wish to surface these named lists as queryable. The lists consist of POIs with lat/lon geopoints and there is no geographical limitation on these lists… e.g., a single list could consist of POIs in multiple countires. We wish to query these named lists for at least geopoint within a range.
to better illustrate we are essentially trying to do a
geopoint[][]
j
Are the results shown to users, the list names, or the POI items inside the list?
j
Yes, a minimal amount of information… an image, name, owner, city, state or province.
j
Let me rephrase that… Are the results shown to users: a) the list names OR b) POI items inside the list
j
ah,
a
information on the lists.
The pois are surfaced when a user selects a given list, outside of search.
j
So when a user searches for “some term”, you want to return a list of “named lists”, where the POIs within that list are within X distance to the user, and the name (or any attribute) of the list has “some term” yeah?
j
essentially, the term is paired with a geopoint sort by
j
You could just “flatten” all the geopoints of all the POIs in a list into a single
geopoint[]
field.
For eg:
Copy code
{
  list_name: 'xyz',
  poi_geopoints: [ [lat1,lng1], [lat2,lng2], [lat3,lng3], ... ]
}
where
[lat1,lng1]
is the
geopoint
associated with poi1 and so on
j
This is excellent; didn’t expect this to work actually.
Thank you.
👍 1