AltitudeAngelWings.ApiClient.Client.AltitudeAngelClient.GetMapData C# (CSharp) Method

GetMapData() public method

Get the map data from the AA api service. Required scopes: query_mapdata query_mapairdata
public GetMapData ( RectLatLng latLongBounds ) : Task
latLongBounds GMap.NET.RectLatLng The bounds of the request.
return Task
        public Task<AAFeatureCollection> GetMapData(RectLatLng latLongBounds)
        {
            return _apiUrl
                .AppendPathSegments("v2", "mapdata", "geojson")
                .SetQueryParams(new
                {
                    n = latLongBounds.Top,
                    e = latLongBounds.Right,
                    s = latLongBounds.Bottom,
                    w = latLongBounds.Left
                })
                .WithClient(_client)
                .GetJsonAsync<AAFeatureCollection>();
        }