Skip to content

Bee Analyzer is about developing GPS tracking mobile phone application and analyzing pedestrian movement of the Istanbul Technical University Ayazaga Campus community.

License

Notifications You must be signed in to change notification settings

sarikaya/Bee-Analyzer

Repository files navigation

Bee-Analyzer

Bee Analyzer is about developing GPS tracking mobile phone application and analyzing pedestrian movement of the Istanbul Technical University Ayazaga Campus community. The application is used for keeping trace of the campus members. According to GPS tracks of volunteers a set of queries executed than there was meaningful results came to light.

Requirements

Dependencies

  • Google Services
  • Google Maps API
  • Firebase Messaging & Notification Services

Gradle Tasks with Wrapper

Resolve Dependencies

gradlew androidDependencies

Build Task

gradlew build

Run Tests

gradlew test

Install

gradlew installDebug

Server-Side

  • JSON Web Service API (ASP.NET)
  • MSSQL Server

API Documentation

Title Insert GPS Data
URL /Handler.aspx
Method POST
Data Params Content=
{
   "interface":"RestAPI",
   "method":"InsertGPSdatas",
   "parameters":
   {
      "timestamp":"05-08-2017 19:58:37",
      "longitude":"29.0030576",
      "latitude":"41.0805082",
      "out":"0",
      "imei":"#imei"
   }
}
Success Response Status: 200 OK
Error Response Status: 406 Not Acceptable
or
Status: 500 Internal Server Error

Title Get Instant Marks on the Map
URL /Handler.aspx
Method POST
Data Params Content=
{
   "interface":"RestAPI",
   "method":"getMarks"
}
Success Response Status: 200 OK
Content:
{
   "#imei":
   {
      "imei":"#imei",
      "latitude":"41.0805082",
      "longitude":"29.0030576",
      "timestamp":"05-08-2017 19:58:37"
   }
}
Error Response Status: 406 Not Acceptable
or
Status: 500 Internal Server Error

Title Get Routes on the Map by IMEI
URL /Handler.aspx
Method POST
Data Params Content=
{
   "interface":"RestAPI",
   "method":"getOwnRoutes",
   "parameters":
   {
      "imei":"#imei",
      "mindate":"18-05-2017 13:00:00",
      "maxdate":"18-05-2017 14:00:00"
   }
}
Success Response Status: 200 OK
Content:
{
   "#id":
   {
      "latitude":"41.1044601",
      "longitude":"29.0192417",
      "timestamp":"18-05-2017 13:00:45"
   },
   "#id":
   {
      "latitude":"41.1034601",
      "longitude":"29.0152417",
      "timestamp":"18-05-2017 13:01:20"
   }
   ...
}
Error Response Status: 406 Not Acceptable
or
Status: 500 Internal Server Error

Title Get All Routes
URL /Handler.aspx
Method POST
Data Params Content=
{
   "interface":"RestAPI",
   "method":"getRoutes"
}
Success Response Status: 200 OK
Content:
{
   "#imei":
   {
      "#id":
      {
         "latitude":"41.0805082",
         "longitude":"29.0030576",
         "timestamp":"05-08-2017 19:58:37",
         "out":"0"
      },
      "#id":
      {
         "latitude":"41.0305082",
         "longitude":"29.0630576",
         "timestamp":"05-08-2017 20:00:37",
         "out":"1"
      }
   },
   "#imei":
   {
      "#id":
      {
         "latitude":"40.0805082",
         "longitude":"29.7030576",
         "timestamp":"05-08-2017 18:58:37",
         "out":"0"
      }
      ...
   }
   ...
}
Error Response Status: 406 Not Acceptable
or
Status: 500 Internal Server Error

Title Admin Login
URL /Handler.aspx
Method POST
Data Params Content=
{
   "interface":"RestAPI",
   "method":"login",
   "parameters":
   {
      "username":"#username",
      "password":"#password"
   }
}
Success Response Status: 200 OK
Content:
{
   "status":"successful"
}
Error Response Status: 200 OK
Content:
{
   "status":"failed"
}
or
Status: 406 Not Acceptable
or
Status: 500 Internal Server Error

Title Send Notification
URL https://fcm.googleapis.com/fcm/send
Method POST
Data Params {
   "to":"/topics/news",
   "data":
   {
      "text":"message"
   }
}
Success Response Status: 200 OK
Error Response Status: 400
or
Status: 401
or
Status: 5xx

License

Copyright (C) 2017 Nurefsan Sarikaya. It is distributed under the MIT license - see the accompanying LICENSE file for more details.

About

Bee Analyzer is about developing GPS tracking mobile phone application and analyzing pedestrian movement of the Istanbul Technical University Ayazaga Campus community.

Resources

License

Stars

Watchers

Forks

Packages

No packages published