public async Task <ApiMeasurement> GetMeasurementForInstallation(long installationId)
        {
            var query = HttpUrlBuilder.GetQuery(new Dictionary <string, object>
            {
                { "installationId", installationId }
            });
            var url = _options.GetUrl(AirlyApiClientFunction.GetMeasurements, query);

            var response = await GetHttpResponseAsync <ApiMeasurement>(url);

            return(response);
        }
        public async Task <List <ApiInstallation> > GetInstallations(LocationMapping location, double maxDistanceInKm = 1, int maxResults = -1)
        {
            if (location == null)
            {
                System.Diagnostics.Debug.WriteLine("No location data.");
                return(null);
            }

            var query = HttpUrlBuilder.GetQuery(new Dictionary <string, object>
            {
                { "lat", location.Latitude },
                { "lng", location.Longitude },
                { "maxDistanceKM", maxDistanceInKm },
                { "maxResults", maxResults }
            });
            var url      = _options.GetUrl(AirlyApiClientFunction.GetInstallations, query);
            var response = await GetHttpResponseAsync <IEnumerable <ApiInstallation> >(url);

            return(response.ToList());
        }