You just made my day, I've been waiting for this for a long time, I had to use a workaround in my app with firebase realtime database in order to make this feature work, now I can rewrite that code and keep working only with firestore, again thanks for making our developer life easier, keep sharing your knoledge
@Fireship6 жыл бұрын
I had a project for a client that simply was not feasible in the RTDB, so that compelled me to package this into a library.
@carrillocarlosce6 жыл бұрын
Thats awesome, I hope soon I can become pro member, and keep learning from you!!,
@louisart926 жыл бұрын
And mine!!!, I m gonna try it on ionic but should be exactly the same
@carlosalvarez41886 жыл бұрын
Compatible with both flat earth and round earth theories lol hahah
@Fireship6 жыл бұрын
I'm pretty sure the math works the same for both theories :)
@phillachmann35526 жыл бұрын
Compatible with those who are intelligent and those who ignore proven science!
@andrefortin99176 жыл бұрын
Your comment made my day. Hahaha.
@BenBodan5 жыл бұрын
I heard Flutter instead of Flat-Earth, happy for no reason.
@developer-juice-Khailenno4 жыл бұрын
lmao
@mateja1766 жыл бұрын
Amazing, thanks Jeff!! I've recently been working on a location based app and I've decided to go the easy route and differentiate users by city, but the app might just get a level up, thanks to this video.
@Fireship6 жыл бұрын
I have a bunch of additional features on another branch for this lib, like a query inside bounding boxes and stuff like that. Please let me know how it goes if you use it :)
@mateja1766 жыл бұрын
Angular Firebase Gladly :)
@satisfakshin6 жыл бұрын
Same here!
@carltongordon6 жыл бұрын
wow!!! you just made me replace my entire ng5 project with ths lol thanks jeff you the best
@Fireship6 жыл бұрын
Cool! Let me know if you run into any issues on Github :)
@RussianBritish6 жыл бұрын
Great work. Absolutely brilliant I gotta say. I almost made the simular stuff for my last project, but had to give up (not by geo queries though, but filtering) But still it's not as powerful as MongoDB. I mean with firebase it always looks like you fighting against the system limitations rather then developing. You'd probably either very dedicated person or have a nerve for it. Good job anyway. Appreciate it a lot.
@Fireship6 жыл бұрын
Thank you. Mongo has better geospatial support but I hope we see Firestore improve in this area in the future.
@ShufflePetro3 ай бұрын
00:08 Building real-time geolocation features using Firestore and Angular Google Maps. 01:07 Geo queries in Firestore are different from normal queries 02:10 Utilizing geohashes for precise geo queries 03:08 Initialize Firebase app and Angular Google Maps in Angular or Ionic. 04:08 Geoqueries allow multiple geo points on a single document. 05:14 Firestore Geoquery enables querying against multiple geo points within a single document. 06:20 Using switch map allows for reactive changes in radius and queries. 07:27 Firestore Geoquery allows real-time updates based on user position.
@boogiedowngames68936 жыл бұрын
Cool!! Was busting my head trying to figure this out. Thanks for the solution. We are pro members as well.
@Fireship6 жыл бұрын
Nice! Message me on slack if you need support with it :)
@ChrisEsplin6 жыл бұрын
Rad! I hadn't heard of geohashes before. I've never had a use case for them... so I don't feel too bad about it. But now I need to find a good reason to spend a few days building some maps :)
@Fireship6 жыл бұрын
I went down a rabbit hole with geohashes recently. You can also use them to build AR features, like Pokemon GO.
@EwaldDieser2 жыл бұрын
Fantastic! Exactly what I need to implement right now.
@yogenp6 жыл бұрын
Amazing contribution again, Jeff.
@SolomonKahsai6 жыл бұрын
well well well, you are simply perfect !!!!
@storylineteam4 жыл бұрын
Amazing! Can you please do the same video for flutter?
@will_abule6 жыл бұрын
😱Oh! Awesome! I've been waiting for this for a long time. Can I do things like layout, routing, symbology plus you got my star 🌟 all ready thanks. I'll have to go through the your docs to see how far I can actually use this. I ❤️ you and your content.
@Fireship6 жыл бұрын
Awesome :) Let me know if there's a feature you want to see, my goal is to make realtime maps as easy as possible.
@tonyrusignuolo5 жыл бұрын
@@Fireship data pagination and limits would be great! I'm thinking about working on a fork, so recommendations would be appreciated. Thanks!
@AbhishekKumar-mq1tt6 жыл бұрын
Thank you for this awesome video
@pandarzzz6 жыл бұрын
Thank you for sharing this informative video! 🐰🖐🏻
@sanjyotsatvi69544 жыл бұрын
i am getting this error - Property 'collection' does not exist on type 'GeoFireClient'
@requenapolonio4 жыл бұрын
me too
@pdela726 жыл бұрын
Awesome tutorial Jeff. I have a question, although not totally related to Geo problems: I see you have to initialize AGM with Google Maps API key. What about security? Hard coding the API key directly in the spa makes it visible to whoever wants to look for it. Is there another pattern I can use? Eventually storing the API key in Firestore itself (despite rules shouldn't prevent any user to read the data, thus same problem). Storing in firebase functions config and return on Https trigger? What else to ensure security of the API key? Many thanks!
@amacodes73472 жыл бұрын
storing it in an environment variable would be better.
@pdela722 жыл бұрын
@@amacodes7347 I don't understand what environment variable in a client spa app? Like angular app?
@humaneBicycle2 жыл бұрын
iTs CoMpaTibLe wiTh fLat eARTh tHeORiEs.
@pierojoss6 жыл бұрын
Awesome!
@Fireship6 жыл бұрын
Thank you Pedro :)
@1amb6356 жыл бұрын
Amazing! Thank you!
@j4nch4 жыл бұрын
How to link the radius with the zoom? I want to display everything that is currently visible in the map? The goal being that the user isn't aware that I don't show everything? Also, how would you do to not only react on a radius change but also on Latitude/Longitude change? Since you can pipe only on one of the 3 elements?
@hartneil936 жыл бұрын
This video is AMEZING!, thank you soo much!! Is there a way to do pagination with that?
@alexanderchele89783 жыл бұрын
Hello, could you do with the example of if it leaves the geofence, present an alert with angle and firebase
@stevengao83456 жыл бұрын
Thanks for this great info amd tutorial, Sorry, a noob question, is this geoquery api can be used in ios or android app as long as it is using firebase as backend ? Thanks
@tonnie70794 жыл бұрын
trying to get around this in Android n m stuck ... any leads?
@satisfakshin6 жыл бұрын
Thank you for this! 😭
@ChranMurugapandi6 жыл бұрын
Great Tutorial, by the way, what program did you use for video editing? The intro was too sick I had to watch it twice lol
@Fireship6 жыл бұрын
Thanks! I use adobe aftereffects with the help of some pre-built animation elements
@vishnuvardhan93006 жыл бұрын
Awesomeness
@urmilshroff5 жыл бұрын
Hey there! I'm trying to implement something exactly like this in my Flutter app, where I want to create a kind of density hotspot/heatmap wherever there are multiple users in a certain area. Do you have any solutions? Google Maps Flutter package currently does not support displaying heatmaps, so I'm kind of stuck.
@kawaiifreak975 жыл бұрын
thank you so much for this! is there a way to query nested collections? thank you!
@johnrivelt6 жыл бұрын
Thank you for this video, you have excellent presentation skill. Does it filter points from client side or server side ? As I need to deal with thousands points on mobile device, I am wondering performance.
@Fireship6 жыл бұрын
It actually does a little of both. It calculates the minimum geohash squares guaranteed to cover the radius and filters those server side. This can return extra results that are then filtered client-side, but that depends on the size of the radius and distribution of points.
@info-namec7686 жыл бұрын
Aye sir! thanks for this awesome material
@Fireship6 жыл бұрын
Thank you, it's a fun area
@7lnbo7a6 жыл бұрын
nice video,, As a pro member I adore your tutorials,,for Geo Search I wanted to user Algolia Geo Search,, what do you think about that??? since I am heavily using algolia with my firebase web app.. do u recommend your library over Algolia GEO Search?? Regards
@Fireship6 жыл бұрын
Algolia geo search is excellent. If you already have your data indexed there I would definitely consider that the best option.
@7lnbo7a6 жыл бұрын
@@Fireship Great,, thanks for feedback
@iansong16764 жыл бұрын
Will I also be able to use the GeoFireX library with native IOS(Swift) and android(Kotlin) apps?
@DheerajRijhwani6 жыл бұрын
Sir, How I can load external Html on a single component. I want to build a blog by using MEAN. Please suggest. Happy Coding:)
@info-namec7686 жыл бұрын
typescript compile the code, you may load html, but add functionalities into it would not be easy stackoverflow.com/questions/46659860/angular4-load-external-html-page-in-a-div
@vitikahappy4 жыл бұрын
Who can help me with geoquering nearby documents in Firebase Firestore in Android Studio (Java)? I've been searching this topic and the results I get are only either it is impossible or there is some solution but no clear example in Android Studio or Java. I know I am a newbie, that's why I am asking for help. Can someone please reply?
@ekhmoi45526 жыл бұрын
Nice video. But it is not that hard to build from scratch thanks to MongoDB's Geospatial Query Operators.
@Fireship6 жыл бұрын
I've worked with Mongo's GeoSpatial stuff in the past and this was loosely inspired by it. Firestore has hinted at native geolocation support, so hoping that lands as a feature in the future.
@runfunmc645 жыл бұрын
Anyone know if there is a way to unsubscribe from a real time data stream?
@Rose-jp7dm6 жыл бұрын
Is it possible to get a code of this example please!?
@jasonc62419923 жыл бұрын
does not work with firebase 8+
@MarcPujolGualdo5 жыл бұрын
It is possible to use it in NodeJS? (Cloud Function) Error: Argument "onNext" is not a valid function.
@david-tracy5 жыл бұрын
Marc Pujol Gualdo hey Marc, any update bro?
@fitzmode6 жыл бұрын
There's also a port of Geofire for Firestore called Geofirestore. github.com/MichaelSolati/geofirestore
@Fireship6 жыл бұрын
That is a very well done port of Geofire and could be a good choice depending on your needs. In our case, we had big collections that needed to be limited by a query first and also needed multiple geopoints on a document, as well as some other specialized internal stuff.
@chungtommy51284 жыл бұрын
is it possibe to implement this to Laravel?
@abbaskagdi16 жыл бұрын
2:39 lol
@sandeeppatil59255 жыл бұрын
Is there one for React Native ?
@manofleisure50996 жыл бұрын
U could make a multi million dollar app with this one tutorial Haha 😂
@TheGenZProgrammer5 жыл бұрын
who else thought he or she saw donald glover
@gunaavanthigai9243 жыл бұрын
Sir,
@ibrahimmohammed34846 жыл бұрын
this is not ideal at all for any GIS web development or apps that just has any spatial data
@Fireship6 жыл бұрын
It's not a fully featured geospatial db, but does provide a basic pathway for features like this. What is ideal for GIS web development?
@ibrahimmohammed34846 жыл бұрын
i understand but even that basic is too complicated using firebase, all that just to query data that falls within a certain buffer distance, the ideal player for such operations here is Postgresql with Postgis extension. i think mongodb have nearly competitive spatial operations now but can't really judge since i haven't used it yet and also it depends really on what purpose your mapping needs, you can use file database like sqlite if your data don't change a lot, but as i said the big player for me here is postgis
@Fireship6 жыл бұрын
Thanks for the info. I have used Mongo and it is superior in this area, but Firebase has hinted at native support for Firestore geo in future. Postgis seems like the gold standard for most, but I imagine it's harder to get setup with realtime listeners.
@garethdavies23083 жыл бұрын
Nobody uses Angular how to do this in React Hooks?