geofire

How to set Geofire in node.js

自闭症网瘾萝莉.ら 提交于 2020-01-13 19:40:11
问题 I'm a newbie in NodeJS as well in Geofire. So, I want to know wheter is possible to set Geofire in NodeJS or not. I've tried to do the following: ... var geofire = require('geofire') var firebase = require('firebase'); var db = new firebase.database(); var ref = db.ref('path/to/repo'); geofire = new Geofire(ref) ; // THIS DOESN'T WORK. I couldn't set geofire object properly. How could I do it in the right way? 回答1: I think you need to respect the case in your first line : var GeoFire =

How To Display Multiple Markers Coordinates Stored In Firebase Database On Google Maps

此生再无相见时 提交于 2020-01-10 05:57:41
问题 I am trying to get the coordinates that are saved in the firebase real-time database and display them on a map using the google maps API. This is the code I have so far. Right now it opens and shows the users current location using the html5 geolocation API and it syncs the lat and long coordinates to the firebase real-time database using Geofire. I don't know how to retrieve these points and have multiple points on the google map at the same time showing different users locations. If anyone

Geofire/Firebase function is executing handler multiple times in swift

岁酱吖の 提交于 2020-01-06 09:09:23
问题 I have the following function which fetches a list of users using a Geofire then a Firebase query in a nested setup. I first execute the Geofire query to get the key and I then execute the Firebase query and create the User object that matches the key appending the User to an array which is then passed back via the handler . The User array is then use in a CollectionView , the problem is that by the time the CollectionView is displayed it only shows one User object. I have placed some print()

Geofire/Firebase function is executing handler multiple times in swift

有些话、适合烂在心里 提交于 2020-01-06 09:04:47
问题 I have the following function which fetches a list of users using a Geofire then a Firebase query in a nested setup. I first execute the Geofire query to get the key and I then execute the Firebase query and create the User object that matches the key appending the User to an array which is then passed back via the handler . The User array is then use in a CollectionView , the problem is that by the time the CollectionView is displayed it only shows one User object. I have placed some print()

Multiple Marker Icon Move by Updating GeoFire Location in Google Maps for Android

六眼飞鱼酱① 提交于 2020-01-06 07:57:09
问题 I’m trying to display all riders’ position in google maps using geo-fire within 1 km radius. But display only one rider marker icon in google maps. Though I get all riders latitude and longitude. Screenshot: https://imgur.com/p0wUxRB.jpg Code: @Override public void onLocationChanged(Location location) { if (location != null) { updateRiderPosition(new GeoLocation(location.getLatitude(), location.getLongitude())); } } public void updateRiderPosition(GeoLocation location) { ArrayList<Marker>

How to retrieve 'double' values saved under one key in Firebase?

故事扮演 提交于 2019-12-30 14:36:30
问题 I have stored Geofire coordinates in database and now I'm trying to retrieve them using childEventListener() like this: mDatabase.child("geofire").child(key).child("l").addChildEventListener(new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.getValue() != null) { //error on line below Map<Double, Double> newRequest = (Map<Double, Double>) dataSnapshot.getValue(); venueLatString = newRequest.get(0).toString(); venueLngString =

I want to send an real time location updates to Firebase when the user Clicks on a button

不羁的心 提交于 2019-12-25 18:16:06
问题 I want to send an location updates to Firebase when the user Clicks on a button. Updates are set to send every 3 seconds on location change, when I use an emulator it sends details to firebase, but when I use my own device it does not send. It does not update after every 3 seconds. Please help me is there need to use geofire (how to use)? As I am new to this Here is my code import android.Manifest; import android.content.Context; import android.content.Intent; import android.content.pm

Load existing Geofire location if one exists

柔情痞子 提交于 2019-12-24 18:58:29
问题 I would like Geofire to do one of two things; 1 - Look for a venue location in Firebase and if none exists, 2 - Create one. So to clarify: User creates a post based on the current venue. Geofire checks to see if it already has a venue (Long and Lat cocoordinates) on record for that geolocation. If it DOES have that location stored in Firebase then it takes the user's new post and ADDS it to the same venue. If Geofire DOES NOT detect a location in Firebase it creates a new venue and attaches

Geofire Query in Firebase Cloud Function

与世无争的帅哥 提交于 2019-12-24 01:47:28
问题 Sorry for my english, I have a doubt it is possible to make a query geofire in Firebase Cloud Func, with their respective key_enter and key_exited, in order to maintain a list of the geographic points near my position ?, extracted from a few hundred thousand. Taking into account that all this happens when the user updates its geolocation in a node firebase realtime database, and this list of hundreds of thousands is reduced to a few near the position of the user 回答1: The following is a trick

Firebase: Listening to multiple user nodes

谁说我不能喝 提交于 2019-12-23 19:55:30
问题 I'm working on an app using Firebase and Geofire. On running the Geo query at the current location, let's say I receive 10 keys in the OnKeyEntered override method. Each of these keys is essentially a user node in Firebase. I need to listen to each of the user in the query area for any data change so that I can show updates on the map in realtime. Currently, I'm adding a ValueEventListener for every key entered but I'm not sure if starting so many listeners at the same time is good idea. The