2.2.0 • Published 3 years ago

node-atlas-obscura v2.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

node-atlas-obscura

An API Wrapper for Atlas Obscura

Installation

npm install --save node-atlas-obscura

Usage

const Atlas = require("node-atlas-obscura");
const atlas = new Atlas();

Get places in a city

atlas.getPlaces({
  city: "Berlin",
  country: "Germany",
  orderByRecent: false,
});
/*
If true, this method will show most recent places added for this location
*/

Get food places in a city

atlas.getFoodPlaces({
  city: "Berlin",
  country: "Germany",
});

Get place details

atlas.getPlaceById(placeId, (placeOnly = true));
/*
If false, this method will also return places nearby this one
*/

Get tags for a city

atlas.getTags({
  city: "Berlin",
  country: "Germany",
});

Get places by tag

atlas.getPlacesByTag({
  city: "Berlin",
  country: "Germany",
  tag: "art",
});

Get most popular places

atlas.getPopular();

Get all places

atlas.getAllPlaces();

Search by keyword

atlas.search(keyword, isPlace = false);

Get user lists

atlas.getUserLists(username);

Get user list

atlas.getUserList(username, listName);
2.2.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.2.7

4 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.1.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago