sebholstein / angular-google-maps

Angular 2+ Google Maps Components
https://angular-maps.com/
MIT License
2.03k stars 817 forks source link

Question: Find all the markers inside a given radius #916

Closed SMRockend closed 7 years ago

SMRockend commented 7 years ago

Is it possible to find all the markers inside a given radius, from given point ? Just wondering if this feature is available. Thanks.

code-by-nate commented 7 years ago

I have just used the DistanceMatrix API to find all suitable markers inside a given radius. I used origin co-ords and multiple destination co-ords as parameters with the request and then parse the response which includes how far each destination is away from the origin. Hope this points you in the right direction!

SMRockend commented 7 years ago

Thanks mate.