Register Now
Developer API

Location Tracker runs a simple PHP API to process requests send from your projects. The URL of our server is:

https://locationtracker.online/api/getLocation.php

To ensure you are eligible to receive the coordinates your code is requesting, each request must always contain your unique

user_id

and

device_id
or
group_id

which you obtained during the registration process. These variables must be send with the standard HTTPS POST method. Our API will answer your request with a JSON string. If you send the combination of user and device id, you will receive just the location of the device who's device id you provided. In case of a successful procedure this string will contain the following data packages:

success
=
1

longitude
=
-122.17062342484

latitude
=
37.4283443587553

altitude
=
3.108551025390625

speed
=
10.26

accuracy
=
10

vertical_accuracy
=
4

timestamp
=
1473743605

name
=
Christian's iPhone

batteryLevel
=
0.78
(App Version 1.1 and higher)

Altitude, accuracy and vertical_accuracy are provided in meter, speed in m/s and the timestamp as a Unix Timestamp in seconds. In case an error occurred while handling your request, the API will answer with the following tags inside the JSON string:

success
=
0

title
=
Error Title

message
=
More accurate error message

In case you provide a user and group id, you will receive a json array containing the same structure explained above. Each device is marked with its own device id. An example is shown below:

{
  "52d5fa346a90043685h5e3c20ebdfd22":
  {
    "success":"1",
    "longitude":"-122.170684098536",
    "latitude":"37.4283404805745",
    "altitude":"22.4433841705322",
    "accuracy":"65",
    "speed":"-1",
    "vertical_accuracy":"10",
    "timestamp":"1474294992"
    "name":"Apples iPad"
    "batteryLevel":"1.0"
  },
  "0c4196423940522b4f5yf7a03316891c":
  {
    "success":"1",
    "longitude":"-88.2522065220125",
    "latitude":"43.0528517377519",
    "altitude":"0",
    "accuracy":"10",
    "speed":"0",
    "vertical_accuracy":"4",
    "timestamp":"1473874428"
    "name":"Christians iPhone"
    "batteryLevel":"0.55"
  },
  ...
}

On the Example Code page you can find code snippets how to send these request from your project explicitly for the most important programming languages.