mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
21 lines
445 B
JavaScript
Executable File
21 lines
445 B
JavaScript
Executable File
import * as location from "m3o/location";
|
|
|
|
// Search for entities in a given radius
|
|
async function SearchForLocations() {
|
|
let locationService = new location.LocationService(
|
|
process.env.MICRO_API_TOKEN
|
|
);
|
|
let rsp = await locationService.search({
|
|
center: {
|
|
latitude: 51.511061,
|
|
longitude: -0.120022,
|
|
},
|
|
numEntities: 10,
|
|
radius: 100,
|
|
type: "bike",
|
|
});
|
|
console.log(rsp);
|
|
}
|
|
|
|
await SearchForLocations();
|