Esempio n. 1
0
        public async Task <IEnumerable <Essentials.Placemark> > GetPlacemarksAsync(Essentials.Location location)
        {
            var bingAddresses = await Geocoder.ReverseGeocodeAsync(new Geocoding.Location(location.Latitude, location.Longitude));

            var placeMarks = bingAddresses.Select(x =>
                                                  new Essentials.Placemark
            {
                AdminArea    = x.AdminDistrict,
                CountryName  = x.CountryRegion,
                Locality     = x.Locality,
                PostalCode   = x.PostalCode,
                FeatureName  = "",
                Location     = new Essentials.Location(x.Coordinates.Latitude, x.Coordinates.Longitude),
                CountryCode  = "",
                SubAdminArea = x.AdminDistrict2,
                SubLocality  = x.Neighborhood,
                Thoroughfare = x.AddressLine
            });

            return(placeMarks);
        }
Esempio n. 2
0
 public Task <IEnumerable <Placemark> > GetPlacemarksAsync(Essentials.Location location)
 {
     throw new NotImplementedException();
 }