-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
102 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,102 @@ | ||
# Bee-Analyzer | ||
# 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 | ||
|
||
- Gradle 1.3: http://www.gradle.org/downloads | ||
- Android SDK v22: http://developer.android.com/sdk/index.html | ||
- Gradle Wrapper | ||
|
||
## 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=<br>{<br> "interface":"RestAPI",<br> "method":"InsertGPSdatas",<br> "parameters":<br> {<br> "timestamp":"05-08-2017 19:58:37",<br> "longitude":"29.0030576",<br> "latitude":"41.0805082",<br> "out":"0",<br> "imei":"#imei"<br> }<br>} | | ||
| **Success Response** | **Status:** 200 OK | | ||
| **Error Response** | **Status:** 406 Not Acceptable <br>or<br>**Status:** 500 Internal Server Error | | ||
|
||
<br> | ||
|
||
| Title | Get Instant Marks on the Map | | ||
|-----------------------|-----------------| | ||
| **URL** | /Handler.aspx | | ||
| **Method** | POST | | ||
| **Data Params** | Content=<br>{<br> "interface":"RestAPI",<br> "method":"getMarks"<br>} | | ||
| **Success Response** | **Status:** 200 OK <br>**Content:** <br>{<br> "#imei":<br> {<br> "imei":"#imei",<br> "latitude":"41.0805082",<br> "longitude":"29.0030576",<br> "timestamp":"05-08-2017 19:58:37"<br> }<br>} | | ||
| **Error Response** | **Status:** 406 Not Acceptable <br>or<br>**Status:** 500 Internal Server Error | | ||
|
||
<br> | ||
|
||
| Title | Get Routes on the Map by IMEI | | ||
|-----------------------|-----------------| | ||
| **URL** | /Handler.aspx | | ||
| **Method** | POST | | ||
| **Data Params** | Content=<br>{<br> "interface":"RestAPI",<br> "method":"getOwnRoutes",<br> "parameters":<br> {<br> "imei":"#imei",<br> "mindate":"18-05-2017 13:00:00",<br> "maxdate":"18-05-2017 14:00:00"<br> }<br>} | | ||
| **Success Response** | **Status:** 200 OK <br>**Content:** <br>{<br> "#id":<br> {<br> "latitude":"41.1044601",<br> "longitude":"29.0192417",<br> "timestamp":"18-05-2017 13:00:45"<br> },<br> "#id":<br> {<br> "latitude":"41.1034601",<br> "longitude":"29.0152417",<br> "timestamp":"18-05-2017 13:01:20"<br> }<br> ...<br>} | | ||
| **Error Response** | **Status:** 406 Not Acceptable <br>or<br>**Status:** 500 Internal Server Error | | ||
|
||
<br> | ||
|
||
| Title | Get All Routes | | ||
|-----------------------|-----------------| | ||
| **URL** | /Handler.aspx | | ||
| **Method** | POST | | ||
| **Data Params** | Content=<br>{<br> "interface":"RestAPI",<br> "method":"getRoutes"<br>} | | ||
| **Success Response** | **Status:** 200 OK <br>**Content:** <br>{<br> "#imei":<br> {<br> "#id":<br> {<br> "latitude":"41.0805082",<br> "longitude":"29.0030576",<br> "timestamp":"05-08-2017 19:58:37",<br> "out":"0"<br> },<br> "#id":<br> {<br> "latitude":"41.0305082",<br> "longitude":"29.0630576",<br> "timestamp":"05-08-2017 20:00:37",<br> "out":"1"<br> }<br> },<br> "#imei":<br> {<br> "#id":<br> {<br> "latitude":"40.0805082",<br> "longitude":"29.7030576",<br> "timestamp":"05-08-2017 18:58:37",<br> "out":"0"<br> }<br> ...<br> }<br> ...<br>} | | ||
| **Error Response** | **Status:** 406 Not Acceptable <br>or<br>**Status:** 500 Internal Server Error | | ||
|
||
<br> | ||
|
||
| Title | Admin Login | | ||
|-----------------------|-----------------| | ||
| **URL** | /Handler.aspx | | ||
| **Method** | POST | | ||
| **Data Params** | Content=<br>{<br> "interface":"RestAPI",<br> "method":"login",<br> "parameters":<br> {<br> "username":"#username",<br> "password":"#password"<br> }<br>} | | ||
| **Success Response** | **Status:** 200 OK <br>**Content:** <br>{<br> "status":"successful"<br>}| | ||
| **Error Response** | **Status:** 200 OK <br>**Content:** <br>{<br> "status":"failed"<br>}<br>or<br>**Status:** 406 Not Acceptable <br>or<br>**Status:** 500 Internal Server Error | | ||
|
||
<br> | ||
|
||
| Title | Send Notification | | ||
|-----------------------|-----------------| | ||
| **URL** | https://fcm.googleapis.com/fcm/send | | ||
| **Method** | POST | | ||
| **Data Params** | {<br> "to":"/topics/news",<br> "data":<br> {<br> "text":"message"<br> }<br>} | | ||
| **Success Response** | **Status:** 200 OK <br>| | ||
| **Error Response** | **Status:** 400 <br>or<br>**Status:** 401 <br>or<br> **Status:** 5xx| | ||
|
||
## License | ||
|
||
Copyright (C) 2017 Nurefsan Sarikaya. It is distributed under the MIT license - see the accompanying LICENSE file for more details. |