public IEnumerable<GeoCodingResult> GetFromAddress(string address) { var uri = new UriBuilder(_configProvider.BaseUri); uri.AddToQueryString(string.Format("address={0}", Uri.EscapeDataString(address))); return GetData(uri.Uri); }
public GeoCodingResult GetFromCoordinate(Coordinate coordinate) { var uri = new UriBuilder(_configProvider.BaseUri); uri.AddToQueryString(string.Format("latlng={0},{1}", coordinate.Latitude, coordinate.Longitude)); return GetData(uri.Uri).FirstOrDefault(); }