way-seoul / on-my-way

2 stars 0 forks source link

add <on the spot> functionality on challenge specific page #44

Closed hjusassac closed 1 year ago

hjusassac commented 1 year ago

when the user clicks on the button [I'm ON THE SPOT!]

A: Get user's current location coordinates B: Get the location coordinates of the specific challenge

Match A and B: define how much distance should be considered as

-> if true,

  1. user gets the challenge point
  2. modal pops up and show: the number of users who've accomplished the challenge, ..., congrats lines and effects
  3. disable the button -> show what instead..?

-> else,

  1. nothing..?
Struanjh commented 1 year ago

I will start working on the code to get user co-ordinates and compare to place co-ordinates

Struanjh commented 1 year ago

This functionality is completed, please check code is okay