Find nearby points of interest.

Version: 1.0.0
navigation/nearby-poi
superface

Find points of interest near the given location using map services.

Find nearby points of interest

Find points of interest near the given location.

center
radius
categories
Coordinates of this point
Name of the point of interest
Categories this point belongs to

1. Install

npx @superfaceai/cli install navigation/nearby-poi

2. Use in your code

const { SuperfaceClient } = require('@superfaceai/one-sdk');

const sdk = new SuperfaceClient();

async function run() {
  // Load the installed profile
  const profile = await sdk.getProfile('navigation/nearby-poi');

  // Use the profile
  const result = await profile
    .getUseCase('NearbyPoi')
    .perform({
      center: {
        latitude: 51.477,
        longitude: 0
      },
      radius: 100,
      categories: [
        'CAFE'
      ]
    });

  return result.unwrap();
}

run();

3. Add providers