Location

Represents a location hosted by a MiX Telematics system.

Fields

SystemType
The type of MiX Telematics system that hosts the location.
LocationId
The MiX Telematics host system's unique identifier for the location.
Name
The name of the location.
Colour
The colour of the location expressed as an HTML colour code.
Type
The type of the location ('Circle', 'Rectangle', 'Polygon', 'Polyline' or 'Route').
MinLatitude
The minimum latitude of the bounding rectangle surrounding the location.
MinLongitude
The minimum longitude of the bounding rectangle surrounding the location.
MaxLatitude
The maximum latitude of the bounding rectangle surrounding the location.
MaxLongitude
The maximum longitude of the bounding rectangle surrounding the location.
Coordinates
The coordinates that define the location.
RadiusMetres
The radius of the location in metres (only applicable to locations with type 'Circle').
WidthMetres
The with of the location in metres (only applicable to locations with type 'Route').
Street
The name of the street that the location is located on.
CityOrTown
The name of the city or town that the location is located near.
StateOrProvince
The name of the state or province that the location is located in.
ZipOrPostalCode
The zip or postal code of the location.
Country
The name of the country that the location is located in.

Note: Fields which are not available will be omitted.

Examples

JSON body:

{"SystemType":"AssetManagement","LocationId":"43ad4afe-24df-4e29-9df4-dc3273b68e11","Name":"MiX","Colour":"#0000255","Type":"Circle","Coordinates":[{"Longitude":18.84198,"Latitude":-33.97837}],"RadiusMetres":286}

XML body:

<?xml version="1.0"?>
<Location SystemType="AssetManagement" LocationId="43ad4afe-24df-4e29-9df4-dc3273b68e11">
	<Name>MiX</Name>
	<Colour>#0000255</Colour>
	<Type>Circle</Type>
	<Coordinates>
		<Coordinate Longitude="18.84198" Latitude="-33.9783669"/>
	</Coordinates>
	<RadiusMetres>286</RadiusMetres>
</Location>