POI categories service NodeJS
Find POI categories by keyword, best match first, and search places with their codes in NodeJS
Loading the sandbox…
The console prints how many POI categories exist, the closest categories for a few keywords, a Spanish-language match, the places nearest Amsterdam for the codes keywords resolve to, and sushi or pizza places found from the words alone.
getPOICategoriesreturns the catalogue with names and codes, cached per language, so category discovery does not mean hardcoding a list.filterskeeps each keyword’s closest matches, best first, so a short keyword does not pull in every category whose name merely contains it.resolvePOICategorieshands back the codes for one search, plus the keywords that matched nothing.filters.poiCategoryQueryfolds that lookup into the search, sodiscoverPlacesresolves the words itself.
Related examples
Along route search service NodeJS
Find fast chargers within a one-minute detour of a route, from a Node.js process
Getting Started
Search and Geocoding
Routing
Electric Vehicles
Node.js
Batch geocoding with error handling NodeJS
Geocode several addresses in parallel from Node.js and report each failure by its SDK error code
Getting Started
Search and Geocoding
Node.js
Geocode service NodeJS
Server-side geocoding service with NodeJS implementation
Getting Started
Search and Geocoding
Node.js
Geometry search service NodeJS
Server-side geometry search with NodeJS implementation
Getting Started
Search and Geocoding
Geometry
Node.js