How to allow seller and buyer to interact only base on location

How to allow seller and buyer to interact only base on location for example buyer can only see seller listing that are 5 km from them and vice versa

You would have to use an API that could calculate the distance between 2 locations and return that to your app. Then you could filter users based on this value.

Take a look at these APIs:

EDIT: I haven’t used them, so I’m just pointing you towards the direction you should look. I encourage you to research further.

hey thanks for this, I will check it out

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.