java - How to draw markers inside a specific radius for google maps in android -
i have google map fragment on android application.
i have markers drawn on map represent places of interest , have functionality draws circle on center radius defined user.
what want markers contained inside circle shall displayed on map. using circle object, google maps shapes, draw circle.
the problem that, although center of circle defined in latitude/longitude coordinates, it's radius defined in meters. how can calculate if position of place in latlng contained within radius defined in meters?
thank you
all need calculate if 2 latlngs
closer each other radius.
for can use location.distancebetween
.
see circle.contains
function here example.
Comments
Post a Comment