Exemplo n.º 1
0
        public async Task <Address> GetPlaceDetail(string placeId)
        {
            var place = await _mapApi.GetAddressDetailAsync(placeId);

            var result = new GeoObjToAddressMapper().ConvertToAddress(place, null, true);

            return(result);
        }
Exemplo n.º 2
0
        public async Task <Address> GetPlaceDetail(string name, string placeId)
        {
            var place = await _client.GetPlaceDetailAsync(placeId).ConfigureAwait(false);

            var result = new GeoObjToAddressMapper().ConvertToAddress(place.Address, name, true);

            return(result);
        }