Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] android – Filtering results with GeoFirestore and Firestore

Posted on November 11, 2022 By

Solution 1 :

There is a library available at https://github.com/mbramwell1/GeoFire-Android

The location of each document is stored using the following formula (a method is provided by the library itself):

degreeMatch = (latitudeDegrees + 90) * 180 + longitudeDegrees

I did a few tests combining a few operators (including limit and array-contains) and it seems to be returning the correct results.

Problem :

I am currently filtering some data using GeoFirestore for Android. By decreasing the radius, of course it is possible to decrease the number of documents retrieved. However, I would like to further filter the same data using the compound queries functionalities provided by Firestore or simply limit the number of reads using limit(), in order to 1) avoid downloading/reading documents that are no needed and 2) improve my users’ experience in terms of time and resources.

I know this question has been already asked several times (for example, here). Nevertheless, Firestore is rapidly evolving—for this reason I would like to ask if there are updates regarding this topic.

READ  [FIXED] Android MP Chart library get X-axis height
Powered by Inline Related Posts
Android Tags:android, firebase, geofirestore, google-cloud-firestore, server-side

Post navigation

Previous Post: [FIXED] Xamarin.forms – Trouble behaviour between ListView & keyboard
Next Post: [FIXED] android – two elements in linear layout are packed to center instead of to the sides

Related Posts

[FIXED] android – Network requests not working on react native Android
[FIXED] the back button does not work in firebase ui Android Android
[FIXED] android – View PostIME 0,1 error while retrieving data from firebase Android
[FIXED] c# – ‘The Android App Bundle was not signed.’ when I upload my Unity project in the Play Store Console Android
[FIXED] android – How to add marker on google map with Kotlin? Android
[FIXED] Android App with Location Services is detected as Virus Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • What are the main features of Islamic education?
  • Is the Jeep 4xe worth it?
  • How does the ringer work on cast iron?
  • What is the biggest size interior door?
  • Is blue raspberry an original Jolly Rancher flavor?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme