-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Geofence #131
Comments
The following code can be used to calculate the distance (in km) between the user and the stand in functions.js. Next step: implementing in rent() function.
|
Full implementation of the geofence. functions.jsshowlocation, changelocation showstand
rent Add:
Replace:
returnbike Add:
Replace:
command.phpReplace
Replace:
actions-web.phprent Replace
Add the following to if ($force==FALSE)
returnBike Replace 'function returnBike($userId,$bike,$stand,$note="",$geofenceidd,$force=FALSE)' Add the following to if ($force==FALSE)
|
Only allow the user to rent / return a bike if they are within x meters of the stand.
The text was updated successfully, but these errors were encountered: