Difference between revisions of "Get Mobile User Location"

From MyMobileWorkers API
Jump to: navigation, search
(Created page with "== Summary == {| border="1" class="wikitable" ! Jobs ! colspan="2" | |- ! URL | colspan="2" | http://:base_url/:api_path/:version/mobile_users/latest_position?api_key=YOUR_...")
 
(→‎Example response)
Line 26: Line 26:
  
 
<source lang="java">
 
<source lang="java">
−
 
+
{"timestamp":"2015-10-08T14:38:00+01:00","provider":"gps","vehicleId":null,"altitude":76.0,"accuracy":19.0,"lat":53.43464271,"lng":-2.54718891}
 
</source>
 
</source>
  

Revision as of 14:54, 22 October 2015

Summary

Jobs
URL http://:base_url/:api_path/:version/mobile_users/latest_position?api_key=YOUR_KEY&mobile_user=USERNAME
Type GET
Params: api_key required
mobile_user required
Response JSON

The response will only contain a single position which is the most recent one we have for the given user

Example response

{"timestamp":"2015-10-08T14:38:00+01:00","provider":"gps","vehicleId":null,"altitude":76.0,"accuracy":19.0,"lat":53.43464271,"lng":-2.54718891}

Example curl request

http://live.mymobileworkers.com:8080/api/1/mobile_users/latest_position?api_key=YOUR_KEY&mobile_user=USERNAME

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox