
Position Reports
To return ALL positions for ALL devices in your account:
https://secure.rock7mobile.com/API2/GetPositions?username=xxxx&password=yyyy&pretty=yes
To return all positions after our unique ID!5201300, for all devices:
https://secure.rock7mobile.com/API2/GetPositions?id=5201300&username=xxxx&password=yyyy&pretty=yes
To return ALL positions for tracker serial 2322:
https://secure.rock7mobile.com/API2/GetPositions/2322?username=xxxx&password=yyyy&pretty=yes
To return positions after our unique ID 5201300 for tracker serial 2322:
https://secure.rock7mobile.com/API2/GetPositions/2322?id=5201300&username=xxxx&password=yyyy&pretty=yes
To return positions after MOMSN 2450 for tracker serial 2322:
https://secure.rock7mobile.com/API2/GetPositions/2322?momsn=2450&username=xxxx&password=yyyy&pretty=yes
To return positions for all trackers in group with keyword ‘team-two’, after our unique ID 5201300:
https://secure.rock7mobile.com/API2/GetPositions?group=team-two&id=5201300&username=xxxx&password=yyyy&pretty=yes
Your account manager will provide you with your username and password parameters. Note that the pretty=yes parameter simply makes the output a bit more human-
readable.
There is usually a limit of 1000 positions returned per request. "It is anticipated that this service will be polled quite frequently and so this will not present
any problem. "If you think you've hit the limit, make another request with id param set to the maximum id seen so far, and repeat until you have fewer than
1000 positions returned.
An example of the output:
<TrackerData>
<device serial="1149">
<position id="5174721" momsn="831" at="2012-04-11T17:15:00Z" lat="51.58872" lon="0.31921" sog="0.1" cog="000"
alt="109" temp="19.0" batt="98" alert="false" />
The 'at' parameter will always be UTC. "Lat/Lon in decimal degrees. "Speed is in knots. "Altitude in metres. "Temperature in degrees. "Battery in percent.
Commentaires sur ces manuels