Exemple #1
0
 public async Task<GeoCodeResult> GetGeoCodeResult(Address address, int maxResults = 1)
 {
     return await GetGeoCodeResult(address.addressLine, address.locality, address.adminDistrict, address.postalCode, address.countryRegion, maxResults);
 }
Exemple #2
0
        public async Task<Tuple<double, double>> GetCoordinate(Address address, int maxResults = 1)
        {
            var result = await GetGeoCodeResult(address, maxResults);

            return result.GetFirstCoordinate();
        }