Thinking about updating my firestore collection structure to incorporate geoquery in my app. Geofirestore requires a specific structure:
interface GeoDocument {
g: string;
l: GeoPoint;
d: DocumentData;
}
I understand that geofirestore doesn't support using where clause for document retrieval, but I want users to have the option to view location-based information or search via standalone queries. Currently, my app has multiple queries utilizing different indexes for collection search. Will I still be able to use my existing queries and indexes efficiently if I switch to geofirestore documents? :
interface GeoDocument {
g: string;
l: GeoPoint;
d: DocumentData;
}