Skip to content

tttttir/location-predict-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
   }
}

About

Predicts the location of a person depending

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 50.1%
  • HTML 31.2%
  • Shell 18.7%