How to exclude certain types/categories from Googl

2019-06-27 11:02发布

问题:

I want to exclude individual doctor's offices in my results.

Most doctor's offices are in the category "doctor" and "health".

I DO want to show places of category "health".

How can I achieve this?

If I remove "doctor" from the types parameter, but still have "health", i'll still get all the doctor's offices.

Is there a way to specifically exclude type "doctor"?

回答1:

There is currently no way to do this with out manually filtering them out of your results. This sounds like a great feature request, please file it as a Places API - Feature Request on the Google Maps issue tracker.