--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/fb68660b-6729-4c7d-b9cc-de096992644b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/5da32536-5a00-4164-bab1-2b3f00836c01%40googlegroups.com.
@Override
public void onKeyEntered(String key, GeoLocation location) {
// Add a new marker to the map
Marker marker = this.map.addMarker(new MarkerOptions().position(new LatLng(location.latitude, location.longitude)));
this.markers.put(key, marker);
}
I was kinda expecting a loop to see all within tthe given radius
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/85e38123-1128-4762-a364-43ba7f8fa4c2%40googlegroups.com.
The onKeyEntered() callback is fired for every key in your GeoFire index which matches your GeoQuery. The GeoFire library itself will call that method when appropriate. All you need to do is respond to the event.Hope that helps,Jacob
On Wed, Oct 19, 2016 at 2:50 AM, Reuben Cabrera <reubenb...@gmail.com> wrote:
i dont understand how it puts multiple markers using the hashmap.@Override
public void onKeyEntered(String key, GeoLocation location) {
// Add a new marker to the map
Marker marker = this.map.addMarker(new MarkerOptions().position(new LatLng(location.latitude, location.longitude)));
this.markers.put(key, marker);
}I was kinda expecting a loop to see all within tthe given radius
On Wednesday, October 5, 2016 at 10:45:47 PM UTC+8, Reuben Cabrera wrote:I cannot find any tutorials regarding how to use Geofire in Android. is there any other tutorial for this?it seems that https://github.com/firebase/geofire-java is not updated?what I want to accomplish is.Assumptions: user is logged in.1. user can see his current location and updates the DB2. When user presses "search nearby people", user is able to view online users within a 2km radius.any help or any sample code will be appreciated thank you :)
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/09a1e50a-63ba-4dc5-88de-a21450e6073f%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/7073daca-4630-4f4d-9e3e-75959aa47772%40googlegroups.com.