要在 Google 地图地点 api 中使用支持的地点类型以外的地点类型
To use Place type other than supported place type in Google map place api
我正在研究 Google 个地图地点 API,我是新手。我创建了一个示例项目,我可以在其中检索附近餐馆的纬度和经度。但是现在我想找附近的纹身店。但是 "tattoo shops" 在 google 处 API 不是受支持的类型。有人可以告诉我该怎么做吗?我找不到任何方法。
只需在您的请求中使用 keyword=tattoo+shops
而不是 type=restaurant
。
(我假设您在 Google 地点 API Web 服务中使用 Nearby Search。)
我正在研究 Google 个地图地点 API,我是新手。我创建了一个示例项目,我可以在其中检索附近餐馆的纬度和经度。但是现在我想找附近的纹身店。但是 "tattoo shops" 在 google 处 API 不是受支持的类型。有人可以告诉我该怎么做吗?我找不到任何方法。
只需在您的请求中使用 keyword=tattoo+shops
而不是 type=restaurant
。
(我假设您在 Google 地点 API Web 服务中使用 Nearby Search。)