Location field of a Site

The location field of Site is a generic JSON-formatted object with the following fields. The location field, and its internal fields, are all optional. Omit them if not needed.

Site location schema

Field Description Type Example
placeName Full name or address of the place string Route De Barneville Carteret, 50580 Portbail, France
city City of the place string Portbail
country Country of the place string France
latitude Latitude of the place float 49.351531
longitude Longitude of the place float -1.71688

All fields are optional.

Samples

The following are all valid examples.

"location": {
    "city": "Portbail",
    "country": "France",
    "latitude": 49.351531,
    "longitude": -1.71688,
    "placeName": "Route De Barneville Carteret, 50580 Portbail, France"
},
"location": {
    "placeName": "My place",
    "latitude": 39.3812,
    "longitude": -97.9222,
}
"location": {
    "placeName": "My place",
    "city": "Roma",
    "country": "Italia",
    "latitude": 41.9,
    "longitude": 12.5,
}
"location": {
    "placeName": "My place",
    "city": "Roma",
    "country": "Italia",
}
"location": {
    "placeName": "My place",
    "city": "Roma",
}
"location": {
    "placeName": "My place",
    "country": "Italia",
}
"location": {
    "latitude": 39.3812,
    "longitude": -97.9222
}