Back

Geolocation Near Me function

  • 0
  • Databases
  • Flutter
Mosh Ontong
24 Jul, 2023, 02:26
TL;DR
The user wants to implement a geolocation "Near Me" function in their application. They are unsure about how to calculate bounds and filter the results. They are also unsure if there is a Flutter package to get the bounds. The user is informed that they can calculate bounds locally and send them to the server to filter results. They are also provided with a link to a Gist that explains how to calculate bounds from a center and distance. The user mentions that the application is for service providers and they want to show the distance of each provider from the customer. The user asks if Appwrite has a similar feature to Firebase's GeoPoint.
Drake
24 Jul, 2023, 02:39
Mosh Ontong
24 Jul, 2023, 10:07

do you have plan to integrate this feature in Appwrite?

Drake
24 Jul, 2023, 14:31

What can't you do at the moment?

Mosh Ontong
24 Jul, 2023, 21:39

so here is the thing,

in my application there is a services providers such as aircon repair. Now when the customer search an service provider then the results contains names and the kilometers of how much the provider distance. The application also have filter the service provider that near to the customer

Drake
24 Jul, 2023, 21:42

so you can calculate bounds locally and then send that to the server to filter the results. After you get the data back, you can run through the data to calculate the distance. To calculate the bounds from a center and distance, you can do something like https://gist.github.com/stnguyen90/145bc06d4ae72c69295a46a05e2092d5

Drake
24 Jul, 2023, 21:43

also, will you be showing a map?

Mosh Ontong
24 Jul, 2023, 21:45

nope, btw I will using a flutter i do not know if there is a flutter package to get the bounds like south, north and etc. But what I know I can only get long and lat as of my knowledge for now but I will going to search.

Drake
24 Jul, 2023, 21:45

look at my gist

Mosh Ontong
24 Jul, 2023, 21:46

ohh I see thanks steve

Mosh Ontong
24 Jul, 2023, 21:51

"calculate bounds locally and then send that to the server to filter the results" does it mean that I will going to get the current long lat of the customer and use this to send to the server to filter the results, so what kind of filter to be use sir?

Drake
24 Jul, 2023, 21:57

read the resources I previously sent

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more