Menu
Docs
Feedback
Login
You are viewing a section of Superface that will be
deprecated in Q4 2023
. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit
superface.ai/docs/migrate
.
Points of Interest
navigation/nearby-poi@1.0.1
2 providers
Find nearby points of interest
NearbyPoi
Find points of interest near the given location.
Input
center
radius
categories
Result
Coordinates of this point
Name of the point of interest
Categories this point belongs to
Integrate
1.
Choose a provider
Mock implementation
google-apis-maps
overpass-de
Request a missing provider
2.
Use
NearbyPoi
with
mock
in your code
Below instructions are for our Node.js SDK.
Use OneService for other languages.
npm
i
@superfaceai/one-sdk
Copy
Copied!
Copy
Copied!
Structure details
Input (object)
center
required
Center of the search
object
latitude
required
number
longitude
required
number
radius
required
Radius of the search
number
categories
optional
Optional categories filter Points belonging to at least one of these categories are returned
list
RESTAURANT
optional
CAFE
optional
BAR
optional
SCHOOL
optional
TAXI
optional
POST
optional
POLICE
optional
HEALTHCARE
optional
BANK
optional
ATM
optional
PARKING
optional
Example
Copy
Copied!
Result (list of objects)
coordinates
required
Coordinates of this point
object
latitude
required
number
longitude
required
number
name
required
Name of the point of interest
string
categories
required
Categories this point belongs to
list
RESTAURANT
optional
CAFE
optional
BAR
optional
SCHOOL
optional
TAXI
optional
POST
optional
POLICE
optional
HEALTHCARE
optional
BANK
optional
ATM
optional
PARKING
optional
Example
Copy
Copied!
Implementation details
Provider
mock
Use case
NearbyPoi
Author
@superface
Source
View source
Verified