Coder Social home page Coder Social logo

airly-api's Introduction

Airly API

Airly Unofficial Java API wrapper for API Documentation

Docs

Airly API is compatible with Airly's API v2.

Donwload

With Gradle:

dependencies {
    compile 'com.github.ihmc:airly-api:v0.4-alpha'
}

Client

You can create an Airly client using the AirlyClientBuilder:

AirlyAPI airly = new AirlyServiceBuilder(apiKey);

This will create an instance of AirlyAPI:

public interface AirlyAPI {

    // Installations

    Flowable<Installation> getInstallation(int installationId);

    Flowable<List<Installation>> getNearestInstallations(double latitude,
                                                         double longitude,
                                                         double maxDistanceKm,
                                                         int maxResults);

    // Measurements

    Flowable<Measurement> getMeasurements(int installationId);

    Flowable<Measurement> getNearestMeasurements(double latitude,
                                                 double longitude,
                                                 double maxDistanceKm);

    Flowable<Measurement> getInterpolatedMeasurements(double latitude,
                                                      double longitude);
}

AirlyAPIExtensions provides methods to retrieve installations and measurements in an area described by the South-West and North-East corners of a rectangular bounding box. These may come in handy to users of Airly API v1.

Rate Limit

Airly API access is rate-limited. Default rate limits per apikey are 1000 API requests per day and 50 API requests per minute. AirlyServiceBuilder does not enforce any limit by default, it can be set as such:

AirlyAPI airly = new AirlyClientBuilder(apiKey)
    .setRequestLimit(50, TimeUnit.MINUTES); // Enforce the 50 API requests per minute limit

Snippet

Look at AirlyRxApp.kt

airly-api's People

Contributors

alexdp74 avatar giacobenin avatar piotr-boronczyk avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

piotr-boronczyk

airly-api's Issues

Upgrade to API v2

  • From November 30 we will stop adding new sensors to the old version of the API, giving the possibility of further action to all applications created so far, which will not be updated yet, thus further encouraging their authors to change;
  • On February 28, we will end support for the old version of API v1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.