This is a web endpoint for a treasure hunt game. It allows participants to send requests containing their current position (latitude and longitude in decimal representation) and email. Response contains a distance to the treasure expressed in meters. When players are in a 5 meter radius from the treasure an e-mail message with congratulations and exact position of the treasure is sent on the provided e-mail address:
“Hey, you’ve found a treasure, congratulations!”
Treasure location: 50.063617 N, 19.931784 E
Request format:
/hunt.json?current_location[]=:latitude¤t_location[]=:longitude&email=:email
Example request:
POST /hunt/current_location[]=0¤t_location[]=0&email=test@example.com
http://huntee.herokuapp.com