Beispiel #1
0
 public static Pin ToGoogleMapsPin(this BusStopQueued busStopQueued)
 => new Pin
 {
     Label    = busStopQueued.Label,
     Address  = busStopQueued.Address,
     Position = new Position(busStopQueued.Latitude, busStopQueued.Longitude),
     Icon     = BitmapDescriptorFactory.FromBundle(_mapIcons[1])
 };
Beispiel #2
0
        public static bool IsInRange(this BusStopQueued busStopQueued, GeoPosition geoPosition, int range)
        {
            var busStopGeoPosition = new GeoPosition(busStopQueued.Latitude, busStopQueued.Longitude);

            if (CalcDistance(geoPosition, busStopGeoPosition) < range)
            {
                return(true);
            }

            return(false);
        }