public async Task CanReverseGeocodePoint() { var gateway = new GeocodeGateway(new ServiceStackSerializer()); var reverseGeocode = new ReverseGeocode("/World/GeocodeServer/".AsEndpoint()) { Location = new Point { X = 174.775505, Y = -41.290893, SpatialReference = new SpatialReference { Wkid = SpatialReference.WGS84.LatestWkid } } }; var response = await gateway.ReverseGeocode(reverseGeocode); Assert.Null(response.Error); Assert.NotNull(response.Address); Assert.NotNull(response.Location); Assert.Equal(response.Address.CountryCode, "NZL"); }
public Task<ReverseGeocodeResponse> ReverseGeocode(ReverseGeocode reverseGeocode) { return Get<ReverseGeocodeResponse, ReverseGeocode>(reverseGeocode); }