This is the documentation of version 1.0.0-rc.0. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Function resolvePOICategories

    • Resolves category words, or codes, to the POI categories of one search, and reports the words that match none.

      Parameters

      Returns Promise<ResolvedPOICategories>

      Each filter matches as on getPOICategories, so a code stays itself. Each keeps its best three codes, merged round-robin and capped at the 10 a search accepts. Codes alone skip the catalog request. discoverPlaces runs the same lookup for filters.poiCategoryQuery, so call this first to decide what to do about the words that match nothing. To browse every close match, use getPOICategories.

      const { poiCategories, unmatched } = await resolvePOICategories({ filters: ['café', 'PHARMACY', 'xyzzy'] });
      // unmatched: ['xyzzy']
      const places = await discoverPlaces({ filters: { poiCategories }, geoBias: { position: [4.9041, 52.3676] } });