Search API: Place Search with categories

4 posts / 0 new
Last post
jeepay
Search API: Place Search with categories

Hi,

I formatted test requests for restaurants, hotels etc. (with corresponding NAICS codes) in San Francisco center but got always empty results (response 200, no error)

Example: https://www.mapquestapi.com/search/v4/place?location=-122.419291%2C37.76...

There are obviously a lot of such POIs there: what's wrong?

(a query phrase with 'starbucks' instead of these categories returns 20 results : https://www.mapquestapi.com/search/v4/place?location=-122.419291%2C37.76...)


MQBrianCoakley
Try these sic codes for
Try these sic codes for Starbucks: 581228F52 or coffee shops: 581228.

jeepay
Thanks but I'm lost!

Thanks but I'm lost!

581228 desn't exist according to https://www.naics.com/six-digit-naics/ but I indeed got 'cafe' results for 581228

I'm mostly interested in restaurants, hotels etc.
I tried all NAICS codes 72xxxx (Accommodation and Food Services), only 721199 ('All Other Traveler Accommodation') returns results

What is the right code for restaurants?
What is the right NAICS code source to use for the Mapquest API?


jeepay
Found

I understand now that, although the doc clearly mentions "six-digit North American Industry Classification System (NAICS) codes", it doesn't correspond to the codes listed in https://www.naics.com/six-digit-naics/ 
It seems the list to use is https://www.naics.com/sic-codes-industry-drilldown/