Get last known location refers to the last known location of the resource (trackee). This api method gives you the last known location of the given trackee. (API Usage Count 1, when geocode is set to No and usage count will be 5 when geocode is set to Yes)
http method : GET/ POST
|key||alphanumeric api key||The api key you got when your account was registered|
|email address||the account email|
Yes / No.
Default is No.
Setting geocode=yes will take lots of time to get the results as the system would translate the location names on the fly and the result would be slow
|trackeeid||integer||optional, when specified, the last known location of the specified trackee would be returned.|
|output||string||json/xml, default xml|
|zoneid||integer||When specified the last known location of all trackees of the zone would be returned, optional|
Response on success:
|trackeeid||integer||Resource id / trackee id|
|trackeename||string||The name of the resource/trackee|
|mobilenumber||integer||The mobile number of the trackee|
The location name name tranlated.
|time||datetime||The last known location time|
|lat||float||The latitude of the location|
|lon||float||The Longitude of the location|
|speed||double||The speed at the location|
This field tells you whether the updates are coming regularly or not, if the value is 1 then it means the updates are coming at regular intervals, otherwise there is no update from the device.
|instanceid||integer||The currently running trip id, if any|
1 or 0, this is applicable only for getting location, when set to 0 do not provide get location feature, however for all yantra devices we have disabled the support for getlocation feature, so this field value
is obsolete now.
|battery||double||battery level in percentile|
1 indicates the trip has started successfully, 0 indicates that the trip is yet to start
if a route is attached to the current trip, the routename is returned, otherwise Random is returned.
|routeid||integer||The currently associated route id, if any otherwise -1 or 0 is returned|
|routetype||integer||0=pickup, 1 drop.|
Sample XML Response: