![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Automated Access APIThis API allows you to integrate location data from your vehicles into your web site(s) and/or data collection infrastructures. There are two API functions at this time.
The API is based upon an HTTP POST request followed by an XML response. 1. In order to access the last location of all vehicles for a specific user a login and password need to be posted to https://api.sysdevx.com/GetAllVehiclesV1 For example: <form method='post' action='https://api.sysdevx.com/GetAllVehiclesV1'> <input type='text' name='login' value='your_login' /> <input type='text' name='password' value='your_password' /> <input type='submit'> </form> The response will be ordered by serial number in descending order and look like: <response> <status code="100" msg="Success"/> <vehicle serial="2002348" date="1170813924" lat="49.2520500" lng="-123.1108800" type="18" address="271 W 21st Ave, Vancouver, BC, V5Y" speed="0" heading="0"/> <vehicle serial="2001452" date="1157654983" lat="49.2521320" lng="-123.1111760" type="17" address="" speed="0" heading="0"/> <vehicle serial="2001450" date="1168890892" lat="32.7947333" lng="-117.1367500" type="0" address="8999 Gowdy Ave, San Diego, CA, 92123" speed="0" heading="-1"/> </response> Where the dates are all in unix time format (seconds from Jan 1st 1970), heading is in degrees, speed is in mph (miles per hour), and the type field corresponds to:
The code element of the response XML file contains a status code and a message. The possible status codes are:
Test it here using your own account login and password. 2. In order to get the locations for a specific vehicle you need to post login, password, device serial number, start date, and end date to the following: (Please note that dates must be in Coordinated Universal Time and can be in yyyy-mm-dd hh:mm format or just yyyy-mm-dd. If hours are used then specify in 24 hour format) https://api.sysdevx.com/GetLocationsV1 For example: <form method='post' action='https://api.sysdevx.com/GetLocationsV1'> <input type='text' name='login' value='your_login' /> <input type='text' name='password' value='your_password' /> <input type='text' name='serial' value='2002348' /> <input type='text' name='start' value='2006-02-02' /> <input type='text' name='end' value='2007-02-03' /> <input type='submit'> </form> The response will be ordered by location date in descending order and look like: <response> <status code="100" msg="Success"/> <location date="1170444494" lat="49.2492140" lng="-123.1155700" type="17" address="" speed="20" heading="1"/> <location date="1170444385" lat="49.2472000" lng="-123.1157400" type="17" address="" speed="0" heading="0"/> <location date="1170444324" lat="49.2452350" lng="-123.1155240" type="17" address="" speed="8" heading="279"/> <location date="1170444265" lat="49.2432170" lng="-123.1093140" type="17" address="" speed="24" heading="324"/> <location date="1170440329" lat="49.2433850" lng="-123.1078200" type="18" address="4581 Clancy Loranger Way, Vancouver, BC, V5Y" speed="0" heading="0"/> </response> The code element of the response XML file contains a status code and a message. There is a maximum number of 100,000 locations returned. If you receive 100,000 locations then you should narrow the date range of your search. The possible status codes are:
Test it here using your own information: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||