dapriett / nativescript-google-maps-sdk

Cross Platform Google Maps SDK for Nativescript
MIT License
244 stars 164 forks source link

Distance between current device location and closest marker on map #263

Open NikicaAsanin opened 6 years ago

NikicaAsanin commented 6 years ago

I have users current location on map and big number of markers. I would like to trigger when user is close to some of markers(for example if users is 200 m from marker, show him alert). Any ideas on solving this issue or any cool suggestion on my problem?

dapriett commented 6 years ago

Maybe check out other plugins like this https://github.com/transistorsoft/nativescript-background-geolocation-lt

Should be able to listen for location change alerts, and then check for nearby points.

NikicaAsanin commented 6 years ago

@dapriett yea I saw that one but, only ios suport for free :) so I am trying to find some better solution. Something like calculating between coordinates so in that case maybe I can get distance in meters?