How to search nearby places based on food type
The SearchNearby
API enables you query nearby restaurants that serve a
specific type of food. You can also exclude food types from your results.
You can use the SearchNearby API to let end users explore neighborhoods and discover places of interest. The API requires QueryPosition, which can be a device position, IP position, or a map‘s view port center. Another way is to let end users provide the city name or place name and the application can bias results based on the geo-coordinates.
For more information on food types, see Food Type filters.
Potential use cases
-
Explore types of food available in the vicinity.
-
Exclude restaurant options that serve food types to which you're allergic.
Example
The following example demonstrates how to search for nearby places based on food type.
Developer Tips
-
You can use
ExludeFoodTypes
to exclude certain business chains from your results. -
You can exclude or include multiple food types.