Skip to main content
Google Places 工具允许您的代理利用 Google Places API,从关于 Google Places 上列出的地点的文本中查找地址、电话号码、网站等信息。

设置

您需要从 Google 这里获取 API 密钥,并启用新的 Places API。然后,将您的 API 密钥设置为 process.env.GOOGLE_PLACES_API_KEY,或将其作为 apiKey 构造函数参数传入。

用法

npm

相关内容