Find points of interest near the given location.
npx @superfaceai/cli install navigation/nearby-poi
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();
Switching providers Learn how to use automatic failover or switch between providers manually.
Missing your favorite provider? Tell us which provider you'd like to use.