-
Notifications
You must be signed in to change notification settings - Fork 0
Request Architecture
All the requests are POST-requests where all the parameters are sent in the body (x-www-form-urlencoded). Everyone can use the route and poi urls, but for the stats you'll need to be logged in as a user in the android app.
When using this request the server generates a route starting and ending in a certain coordinate and gives within the response the generated route.
lat: coordinate latitude
lon: coordinate longitude
distance: The route distance
tags: the requested POI's
type: the response type. See the geojson.respond_path function for more details
**** Special Note ----- In order to have the poi points in the route,one must have to use type = directions or coordinates
This generates a route leading the user back to his starting point. This is mainly used if the user wants a longer or shorter route or if the user went off-route and a new route is needed.
visited_path: the route that the user used to run.
lon, lat: position of the user.
distance: The preferred distance to the starting point.
Check out the current statistics in the database of the specified user. Used mainly for synchronization between the app and the database. The response of this request are all the runing statistics and edit time.
android_token: The token generated on the app by firebase (for IOS, firebase can also be used). This is used on our server to verify and identify users.
Updates or inserts the statistics of the user corresponding to the received token.
android_token
avg_heartrate: Average heartrate of the user
avg_distance: Average distance that the user runs
tot_distance: Total distance ran
tot_duration: Total time spent running
avg_duration: Average duration of a run
runs: Amount of runs the user made
edit_time: Epoch time for when the stats were last edited in milliseconds
tags: a list of poi tags eg. &tags=water&tags=park
Gives a response with all the points of interest according to a list of tags, it returns each point in the following format:
{
"lat": 54.6,
"lon": 3.6,
"name": "some point",
"description": "this is some point."
}
Gives all the possible POI-tags the server accepts and returns it as an array.
Students
Gerwin Dox -
Tim Baccaert -
Redouane Arroubai -
Simon Neuville -
Gregory De Crock -
Hendrik Depauw -
Lorenz van Herwaarden -
Maxim Deweirdt -
Nick Aelterman -
Olivier Cammaert
Supervisors
Krishna Kumar Thirukokaranam Chandrasekar -
Florian Vandecasteele -
Steven Verstockt
Partners
imec - IDLab - Ghent University