googlemaps / googlemaps/google-maps-services-python

Place Details: Replace field `type` with `types`

未关闭
#493 0 条评论 0 个 reaction 已指派 1 人 已被 @wangela 认领 在 GitHub 查看
主要语言
Python
星标
5k
派生
1.4k
PR 合并指标
30 天内没有已合并 PR

描述

Hi everyone, thanks for the great library :heart:

Just noticed a small bug: According to the Place Details documentation, `type` is (no longer?) a valid field. Instead, there is now a `types` field. See: https://developers.google.com/maps/documentation/places/web-service/details#Place-types

![image](https://github.com/googlemaps/google-maps-services-python/assets/7606194/0bc9b893-7445-46a1-9a8b-95759aa3d2fe)

This will need to be changed in the list of `PLACES_DETAIL_FIELDS_BASIC` here: https://github.com/googlemaps/google-maps-services-python/blob/645e07de5a27c4c858b2c0673f0dd6f23ca62d28/googlemaps/places.py#L77

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。