afs:geoCluster - AFS

AFS Integration Guide

Product
AFS
AFS_Version
7.7
Category
Reference Guide

Role

afs:geoCluster parameter is used to cluster geolocation facets values on a matrix.

Status

Optional, no clustering by default.

Example

...&afs:geoCluster=3,3&...

will cluster geolocation facet values in a 6 squares matrix.

Output example when using afs:geoCluster parameter:

<afs:facets>
<afs:facet layout="interval" type="real" producer="expression" id="geo:lat">
<afs:interval key="[48.810998 .. 48.872192]" items="5881">
<afs:subFacet layout="interval" type="real" producer="expression" id="geo:long">
<afs:interval key="[2.228115 .. 2.342069]" items="1994"/>
<afs:interval key="]2.342069 .. 2.368195]" items="2007"/>
<afs:interval key="]2.368195 .. 3.539454]" items="1936"/>
</afs:subFacet>
</afs:interval>
<afs:interval key="]48.872192 .. 49.407797]" items="5652">
<afs:subFacet layout="interval" type="real" producer="expression" id="geo:long">
<afs:interval key="[1.004494 .. 2.309228]" items="1837"/>
<afs:interval key="]2.309228 .. 2.364802]" items="1996"/>
<afs:interval key="]2.364802 .. 5.174928]" items="1921"/>
</afs:subFacet>
</afs:interval>
<afs:interval key="]49.407797 .. 51.915617]" items="5563">
<afs:subFacet layout="interval" type="real" producer="expression" id="geo:long">
<afs:interval key="[0.528682 .. 2.334938]" items="1875"/>
<afs:interval key="]2.334938 .. 3.078918]" items="1910"/>
<afs:interval key="]3.078918 .. 5.864742]" items="1901"/>
</afs:subFacet>
</afs:interval>
</afs:facet>
</afs:facets>