private void LoadElement() { fusedLocationProviderClient = LocationServices.GetFusedLocationProviderClient(Activity); _userLocation = new LumoLocationDTO(); _refreshMapIcon = _view.FindViewById <LinearLayout>(Resource.Id.refreshIcon); _refreshMapIcon.Click += RefreshMap_OnClick; _centerMapIcon = _view.FindViewById <LinearLayout>(Resource.Id.mapcenterIcon); _centerMapIcon.Click += CenterMap_OnClick; _mapLayout = _view.FindViewById <FrameLayout>(Resource.Id.map); }
public async Task <IHttpActionResult> Post(LumoLocationDTO location) { try { string token = await _hashHelper.GetHash(); var vehiclesBusiness = new VehiclesBusiness(); var vehiclesInRange = await vehiclesBusiness.GetVehiclesInRange(token, location.Latitude, location.Longitude); return(Ok(vehiclesInRange)); } catch (Exception e) { return(InternalServerError(e)); } }