LatLng

  • LatLng is used to specify the latitude and longitude of a place and is the same for all feed types.

  • The LatLng entity has one optional string attribute called label.

  • The required elements for LatLng are Latitude and Longitude, both of type float, while Source is an optional string element.

Use LatLng to specify the latitude and longitude of a place.

Attributes

The following table shows the attributes for LatLng:

Attribute Required? Type Description
label Optional string An informative label. For use as needed.

Elements

The following table shows the elements for the LatLng entity:

Element Multiplicity Type Element Description
Latitude 1 float Latitude of the contact location.
Longitude 1 float Longitude of the contact location.
Source 0 or 1 string System used to perform the lookup from location name to latitude and longitude, such as the name of a geocoding service.

Examples

XML

    <LatLng>
      <Latitude>46.2044</Latitude>
      <Longitude>6.1432</Longitude>
    </LatLng>

JSON

    "LatLng": {
      "Latitude": "46.2044",
      "Longitude": "6.1432"
    }