LatLng

  • LatLng is used to define the geographical location of a place using latitude and longitude coordinates.

  • It includes elements for Latitude, Longitude, and an optional Source to indicate the system used for geocoding.

  • An optional label attribute can provide additional information about the location.

  • Examples are provided in both XML and JSON formats to demonstrate how to structure LatLng data.

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"
    }