Location
The Location resource encompasses the geographical details of an address associated with a contact. It includes information such as formatted address, country, state, city, town, postal code, latitude, and longitude. Additionally, the what3words resource, nested within Location, provides geocoding information using What3words, where What3words is enabled.
The location object
Attributes
- objectstring
Type of the location, always "Location".
- idstring
Unique identifier for the location.
- location_typeLocationType (string enum)
The type of location.
Show child attributes
- collisionstring
Applies to [Incident] resources.
Location of a collision. - addressstring
Applies to [Contact] resources.
Standard address location. Applies to [Vehicle] resources.
Location for recovery pickup when the vehicle is being recovered.Applies to [Vehicle] resources.
Location for recovery dropoff when the vehicle is being recovered.- vehicle_repair_locationstring
Applies to [Vehicle] resources.
Location for repair where the vehicle (is being/to be) repaired. - registered_addressstring
Applies to [Vehicle] resources.
Registered address of a vehicle.
- subjectobject
The subject of the location, which can be a contact, incident or vehicle.
Show child attributes
- subject.typestring
Type of the subject, which can be
Contact,Incident, orVehicle. - subject.idstring
Unique identifier for the subject.
- formatted_addressstring or null
Formatted address.
- address_linestring or null
First line of the address.
- address_line2string or null
Second line of the address.
- countrystring or null
Country of the location.
- statestring or null
State of the location.
- citystring or null
City of the location.
- townstring or null
Town of the location.
- postal_codestring or null
Postal code of the location.
- latitudenumber or null
Latitude of the location.
- longitudenumber or null
Longitude of the location.
- what3wordsobject or null
What3Words information for the location.
Show child attributes
- what3words.countrystring or null
Country for What3Words.
- what3words.squareobject or null
Square information for What3Words.
Show child attributes
Southwest coordinates in the square.
Show child attributes
Longitude coordinate.
Latitude coordinate.
Northeast coordinates in the square.
Show child attributes
Longitude coordinate.
Latitude coordinate.
- what3words.nearestPlacestring or null
Nearest place for What3Words.
- what3words.coordinatesobject or null
Coordinates information for What3Words.
Show child attributes
Longitude coordinate.
Latitude coordinate.
- wordsstring or null
Words information for What3Words.
- mapstring or null
Map information for What3Words.
interface Location {
object: "Location";
id: string;
location_type: LocationType;
subject: LocationSubject;
formatted_address: string | null;
address_line: string | null;
address_line2: string | null;
country: string | null;
state: string | null;
city: string | null;
town: string | null;
postal_code: string | null;
latitude: number | null;
longitude: number | null;
what3words: W3w | null;
}
