MichaelSolati / geofirestore-js

Location-based querying and filtering using Firebase Firestore.

Home Page:https://geofirestore.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to set radius on DB?

ozican opened this issue · comments

On my app, I have clients and shoppings.

Shoppings set the radius of their service area. So my question is, is it possible to set it on DB side?

Clients search the shoppings which are near. But for example a shopping dont want to deliver 2 mile but other wants... How can I seperate this?

Hey @ozican, so I'm not exactly sure what you're looking to do... GeoQuery objects (such as a GeoCollectionReference ) have a near method which can take an query criteria argument which includes the radius for the query...

Could you provide an example of what you're trying to achieve?