Get Last Known Position

Request
Description Retrieve the last known position of a resource. The position is taken from the last attachment that was created by this resource that contains a geocode. If not available, the geocode of the resource as defined by the home address is used.
Context https://<instance>.optimizemyday.com/omdservices-basic/rest/v1/services/data
URL /getLastKnownPosition
Method GET
Response Code 200 when successful, another HTTP status code otherwise
Success Response The list of resources
Response Type XML or JSON
Parameter Datatype Description
configId Integer The identifier of the configuration.
resourceId String The list of external identifiers of the resource for which the last known location is requested.
_output String The requested output format being xml or json. If omitted, xml is assumed.

Sample Call

https://sandbox.optimizemyday.com/omdservices-basic/rest/v1/services/data/getLastKnownPosition?configId=16167225&resourceId=10000024&resourceId=10000021

Sample Result

<Result success="true">
  <Track resource="10000024" createdOn="2017-09-19 15:27:57" latitude="51.231537" longitude="6.80297"/>
  <Track resource="10000021" createdOn="2016-09-19 11:57:50" latitude="51.23146" longitude="6.802896"/>
</Result>

results matching ""

    No results matching ""