Multiple Latitude/Longitude Values for an Item

You can index pairs of latitude/longitude values in a changeset. When you query that dimension, the best match point is used to determine the relevance.

Your changeset entry snippet for latitude and longitude with multiple values should look like this:

 <entry name="latitude">
  <array>
    <element>
       <string>34.2344</string>
    </element>
    <element>
       <string>36.2564</string>
    </element>
   </array>
 </entry>
 <entry name="longitude">
  <array>
    <element>
       <string>-70.3433</string>
    </element>
    <element>
       <string>-71.2344</string>
    </element>
   </array>
 </entry>

Notes

  1. We use <string> because we'll convert the string to a double without any loss of precision (Which would not be the case if you used a long decimal value with <real>.

  2. The end result is that the elements of the latitude and longitude arrays are paired by index, e.g. the above snippet will create two points: (34.2344, -70.3433) and (36.2564, -71.2344)