Beispiel #1
0
        async Task postLocationAsync()
        {
            var locator = CrossGeolocator.Current;

            locator.DesiredAccuracy = 100;                        //from Geolocator docs

            var position = await locator.GetPositionAsync(10000); //10 seconds

            DogOrCatModel model = new DogOrCatModel()
            {
                Longitude = (float)position.Longitude,
                Latitude  = (float)position.Latitude
            };

            await AzureManager.AzureManagerInstance.PostDogOrCatInformation(model);
        }
 public async Task PostDogOrCatInformation(DogOrCatModel DogOrCatModel)
 {
     await this.DogOrCatTable.InsertAsync(DogOrCatModel);
 }