Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

"As of March 1st, 2025, google.maps.places.Autocomplete is not available to new customers"

オープン
#736 コメント 6 件 リアクション 15 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
react, typescript
領域
api, frontend

調査の方向性

まず、レポートに示されている useMapsLibrary('places') の使用箇所と places.Autocomplete の呼び出しを確認し、それらを Google の PlaceAutocompleteElement への移行ガイダンスと比較してください。リポジトリのファイルもテストも指定されていないため、対象範囲を決める前に、関連する hook と例を特定してください。完了とは、サポート対象の places 統合で新規顧客に対して報告された警告が発生しなくなることを意味します。

索引モデルが issue の本文から書いたものです。

説明

google maps issue
Description

I noticed this in my console today trying to use the places library from the useMapsLibrary hook:

Steps to Reproduce
  const places = useMapsLibrary('places');

  useEffect(() => {
    if (!places || !inputRef.current) return;

    const options = {
      fields: ['geometry', 'name', 'formatted_address']
    };

    const autocomplete = new places.Autocomplete(inputRef.current, options);
    setPlaceAutocomplete(autocomplete);

    // If we have an initial search, trigger a search
    if (initialSearch && inputRef.current) {
      inputRef.current.value = initialSearch;

      // Use the Geocoding service to find the place
      const geocoder = new google.maps.Geocoder();
      geocoder.geocode({ address: initialSearch }, (results, status) => {
        if (status === 'OK' && results?.[0]) {
          onPlaceSelect(
            results[0] as unknown as google.maps.places.PlaceResult
          );
        }
      });
    }
  }, [places, initialSearch, onPlaceSelect]);

Environment
  • Library version: "@vis.gl/react-google-maps": "^1.5.1",
  • Google maps version: ???
  • Browser and Version: Chrome
  • OS: MacOS Sequoia 15.3.2 (24D81)
Logs
places.js:50 As of March 1st, 2025, google.maps.places.Autocomplete is not available to new customers.  
Please use google.maps.places.PlaceAutocompleteElement instead. At this time, google.maps.places.Autocomplete is not scheduled to be discontinued, but google.maps.places.PlaceAutocompleteElement is recommended over google.maps.places.Autocomplete. 
While google.maps.places.Autocomplete will continue to receive bug fixes for any major regressions, existing bugs in google.maps.places.Autocomplete will not be addressed. At least 12 months notice will be given before support is discontinued. 
Please see https://developers.google.com/maps/legacy for additional details and https://developers.google.com/maps/documentation/javascript/places-migration-overview for the migration guide. Error Component Stack
主要言語
TypeScript
スター
1.9k
フォーク
195
平均マージ
2日 11時間
マージ済み PR(30日)
14

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

visgl/react-google-maps のほかの issue

visgl/react-google-maps の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。