问题
I am trying to get the type of industry sector a company belongs to by using the Google Places API.
For example, when I do the obligatory example search for "rhythmboat cruises pyrmont", in the information box on the right side, Google tells me that this company is a "Cruise Agency" - however I am having a hard time finding this information within the Google Places API - neither using one of the general searches nor by using the detail search.
Am I right with my assumption that Google does not provide this information via the Places API and if yes, does another Google API provide this data?
回答1:
Places API exposes several types
for this place:
https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJyWEHuEmuEmsRm9hTkapTCrk&key=YOUR_API_KEY
types: [
"travel_agency",
"restaurant",
"food",
"point_of_interest",
"establishment"
],
I think you can classify any place into an industry sector by these types.
At least it seems like it should work with the 4 major industry sectors, the broader Global Industry Classification Standard, or PwC's list. Only in the 4 major industry sectors would I expect that every company fits under just one sector though.
来源:https://stackoverflow.com/questions/39096690/get-the-industry-sector-of-a-company-with-google-places-api