Skip to content

Instantly share code, notes, and snippets.

@nicieja
Created October 31, 2019 10:11
Show Gist options
  • Save nicieja/1af825aafe9cde080acaef205eafecfb to your computer and use it in GitHub Desktop.
Save nicieja/1af825aafe9cde080acaef205eafecfb to your computer and use it in GitHub Desktop.
// Require the Ada library with a test secret key.
const ada = require('ada')('ada_test_BQokikJOvBiI2HlWgH4olfQ2');
// How much can people pay for apartments in a given location?
const demand = await ada.demand.get({
category: 'flat_for_rent',
rooms: 2,
lat: 51.10819,
lng: 17.036603,
photos: ['https://i.imgur.com/yKscXMA.jpg']
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment