All of markers shows up on maps based from data latitude and longitude from firebase. And i want to show markers on maps only inside of the circle, circle radius from current place is 10 kilometers.
This is how i show all markers from Firebase
LatLng newlocation = new LatLng(dataSnapshot.child("latitude").getValue(Double.class),dataSnapshot.child("longitude").getValue(Double.class));
nama = new String(dataSnapshot.child("nama").getValue(String.class));
googleMap.addMarker(new MarkerOptions().position(newlocation).title(nama+"")));
This is how i show a circle around current place location :
LatLng latLng = new LatLng(latitude, longitude);
mMap.addCircle(new CircleOptions()
.center(latLng)
.radius(10000)
.strokeWidth(0f)
.fillColor(0x550000FF));
Please ask me for more detail!