File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -686,17 +686,18 @@ First of all you have to define a property in your NodeTypes.yaml for your node
686686
687687Query your nodes in your Fusion:
688688` ` `
689- geoSorting = Neos.Fusion:DataStructure {
690- _geo_distance = Neos.Fusion:DataStructure {
691- latlng = Neos.Fusion:DataStructure {
692- lat = 51.512711
693- lon = 7.453084
694- }
695- order = "plane"
696- unit = "km"
697- distance_type = "sloppy_arc"
689+ geoSorting = Neos.Fusion:DataStructure {
690+ _geo_distance {
691+ geopoint {
692+ lat = 51.512711
693+ lon = 7.453084
694+ }
695+ order = "asc"
696+ unit = "km"
697+ ignore_unmapped = true
698+ }
698699 }
699- }
700+
700701nodes = ${Search.query(site).nodeType('Vendor.Name:Retailer').sort(this.geoSorting)}
701702```
702703
You can’t perform that action at this time.
0 commit comments