geocode property

mdex:geocode properties represent latitude and longitude pairs.

mdex:geocode properties use the format:
latvalue lonvalue
where each is a double-precision floating-point value:
  • latvalue is the latitude of the location in whole and fractional degrees. Positive values indicate north latitude and negative values indicate south latitude.
  • lonvalue is the longitude of the location in whole and fractional degrees. Positive values indicate east longitude, and negative values indicate west longitude.

The latitude and longitude numbers may be separated by arbitrary white space or tab characters. Values are always re-serialized with a single space character regardless of the form of the parsed string.

For example, the following request updates Record 778 with a Location geocode property:
<ingest:ingestRecords 
      xmlns:ingest="http://www.endeca.com/MDEX/ingest/1/0" 
      xmlns:mdex="http://www.endeca.com/MDEX/XQuery/2009/09">
   <ingest:addAssignments>
      <mdex:record>
         <FactSalesID>778</FactSalesID>
         <Location type="mdex:geocode">42.365615 -71.075647</Location>
      </mdex:record>
   </ingest:addAssignments>
</ingest:ingestRecords>

The value of the geocode property specifies a location at 42.365615 north latitude, 71.075647 west longitude.