You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Find rooms within a 100 meter radius of a coordinate:
LETco=GEO_POINT(13.45477,52.51171)FORdocINarangobnbSEARCHANALYZER(GEO_DISTANCE(doc.location,co)<100,"geo")LETdistance=GEO_DISTANCE(doc.location,co)// Note: Web UI map view is triggered by presence of `geometry` attribute!RETURNMERGE(KEEP(doc,"name","_key"),{distance,geometry: location})
Search listing locations within a rectangle:
LETrect=GEO_POLYGON([[13.4,52.4],[13.5,52.4],[13.5,52.45],[13.4,52.45],[13.4,52.4]])LETresults=(FORdocINarangobnbSEARCHANALYZER(GEO_CONTAINS(rect,doc.location),"geo")RETURNdoc.location)// Hack to return the shape within we search as wellFORrINPUSH(results,rect)RETURNr
Find private rooms within a rectangle that feature a hot tub, heating and Wi-Fi and cost between [30, 50] dollars:
Pick a random neighborhood and find all listings in that polygon:
LETrect=FIRST(FORnINneighborhoodsSORTRAND()LIMIT1RETURNn.geometry)LETresults=(FORdocINarangobnbSEARCHANALYZER(GEO_CONTAINS(rect,doc.location),"geo")RETURNdoc.location)// Hack to return the shape within we search as wellFORrINPUSH(results,rect)RETURNr
Nearby search to show available rentals near a specified address.
The text was updated successfully, but these errors were encountered: