/location-predict-server

Predicts the location of a person depending on the previously logged location data. Location data can be logged using any mobile device.

Primary LanguagePythonApache License 2.0Apache-2.0

Location Predict Server

Logs data from provided by the client and predicts the location based on previously logged data.

####WARNING This project is still in an incubator stage. It is under development and not yet ready for production purposes. Feel free to fork it and contribute.

API

Storing location data

Syntax

http://mydomain.com/location-predict/api/v1/logdata/<userid>/<float:latitude>/<float:longitude>/<int:weekday>/<int:hour>/<int:minutesQuant>

Depricated Syntax

http://mydomain.com/logdata/<string uuid>/<float latitude>/<float longitude>/<int weekday>/<int hour>/<int minutes_quantized>

Sample response

{
   "error":{
      "code":0,
      "comment":"valid"
   }
}
  • error/code is 0 when there is no error and is 1 when there the given input is not valid.

Get predicted location

Syntax

http://mydomain.com/location-predict/api/v1/predict-res/<userid>

Depricated Syntax

http://mydomain.com/logdata/<uuid>/predictlocation

Sample response

{
   "prediction":{
      "latitude":34.4455,
      "longitude":76.6767
   },
   "status":{
      "action":"none",
      "situation":"normal"
   }
}