Thu, 11/21/2019 - 03:00
#1
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...)
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?
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/