最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to use SKU:Basic with google places api? - Stack Overflow

programmeradmin2浏览0评论

Google states, that SKU:Basic with google places is free:

I'm using google maps javascript API and use autocomplete (with react).

How can I activate SKU:Basic?

Google states, that SKU:Basic with google places is free: https://developers.google.com/places/web-service/usage-and-billing#new-pricing-for-the-places-api

I'm using google maps javascript API and use autocomplete (with react).

How can I activate SKU:Basic?

Share Improve this question edited Sep 3, 2022 at 9:01 CopsOnRoad 268k95 gold badges697 silver badges467 bronze badges asked Jun 26, 2018 at 15:57 Fabian LurzFabian Lurz 2,0396 gold badges26 silver badges55 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 22

You shouldn't activate SKU:Basic Data anywhere it will be taken into account automatically according to the list of fields that you specify in your details request. The basic group of fields according to the documentation is the following

The Basic category includes the following fields: address_component, adr_address, alt_id, formatted_address, geometry, icon, id, name, permanently_closed, photo, place_id, plus_code, scope, type, url, utc_offset, vicinity

source: https://developers.google.com/places/web-service/details

Also you should understand that SKU:Basic Data refers only to the data part of details request. But you will always trigger SKU: Places Details. In other words when you try to get a details for a place getPlaceDetails() will trigger the following SKUs:

  • SKU: Places Details (17$ per 1000, always)
  • SKU: Basic Data (Free, if you request basic fields)
  • SKU: Contact Data (3$ per 1000, if you request contact fields)
  • SKU: Atmosphere Data (5$ per 1000, if you request atmosphere fields)

If you don't specify fields in request all SKUs are included which results in 25$. In case of autocomplete followed by place details request you will get

  • SKU: Autocomplete (included with Places Details) – Per Session (Free)
  • Details SKUs as described before

That means that price for place autocomplete widget varies from 17$ per 1000 requests to 25$ per 1000 requests depending on the list of fields that you specify in details requests.

I hope my answer clarifies your doubt.

If you have any price specific questions I would suggest reaching directly to Google support team via https://console.developers.google.com/google/maps-apis/support

发布评论

评论列表(0)

  1. 暂无评论