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]) };
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); }