How to get the closest distance to my point

I’m working on the tutorial for this!!!

[UPDATE]
you’re looking to get a response like this back, right?

i create the milesToPoint property everytime the database is called using the URL scheme above.
i include only milesToPoint,state,city,objectId. everything done very quickly by the DB server. The search was conducted using arbitrary coordinates near my home!

without any fancy querying the response looks like this.

1 Like