public void QueryAsync(Location location) { var requestUri = new Uri("http://maps.googleapis.com/maps/api/geocode/json?latlng=" + location.lat + "," + location.lng + "&sensor=" + hasSensor.ToString().ToLower()); var wr = WebRequest.CreateHttp(requestUri); wr.Headers["Accept-Language"] = "DE"; wr.BeginGetResponse(WebRequestReady, wr); }
public ReverseGeocode(Location location, bool hasSensor) { this.location = location; this.hasSensor = hasSensor; }
public ReverseGeocode(Location location) { this.location = location; }