wackey / lockets

WordPress用プラグインLocketsのリポジトリ
0 stars 0 forks source link

プレイスAPIキャッシング設定 #35

Closed wackey closed 4 years ago

wackey commented 4 years ago

キャッシュの範囲の規約確認、Googleへ問い合わせ

wackey commented 4 years ago

https://developers.google.com/places/web-service/policies

Pre-Fetching, Caching, or Storage of Content Applications using the Places API are bound by the Google Maps Platform Terms of Service. Section 3.2.4(a) and (b) of the terms states that you must not pre-fetch, index, store, or cache any Content except under the limited conditions stated in the terms.

Note that the place ID, used to uniquely identify a place, is exempt from the caching restriction. You can therefore store place ID values indefinitely. The place ID is returned in the place_id field in Places API responses.

コンテンツの事前取得、キャッシュ、または保存 Places APIを使用するアプリケーションは、Google Maps Platform利用規約に拘束されます。条件のセクション3.2.4(a)および(b)には、条件に記載されている制限された条件を除き、コンテンツをプリフェッチ、インデックス化、保存、またはキャッシュしてはならないことが記載されています。

場所を一意に識別するために使用される場所IDは、キャッシュの制限から免除されることに注意してください。したがって、場所IDの値を無期限に保存できます。プレイスIDは、Places APIレスポンスのplace_idフィールドに返されます。

https://cloud.google.com/maps-platform/terms/?__utma=102347093.1444538186.1568167908.1569818500.1569818500.1&__utmb=102347093.0.10.1569818500&__utmc=102347093&__utmx=-&__utmz=102347093.1569818500.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=233530782&_ga=2.224288920.2028092065.1569818377-1444538186.1568167908&_gac=1.12250880.1568167915.EAIaIQobChMIu-vA1djH5AIVVgwrCh3AJAdMEAAYASAAEgIjtPD_BwE#3-license

3.2.4 Restrictions Against Misusing the Services.

(a) No Scraping. Customer will not extract, export, or otherwise scrape Google Maps Content for use outside the Services. For example, Customer will not: (i) pre-fetch, index, store, reshare, or rehost Google Maps Content outside the services; (ii) bulk download Google Maps tiles, Street View images, geocodes, directions, distance matrix results, roads information, places information, elevation values, and time zone details; (iii) copy and save business names, addresses, or user reviews; or (iv) use Google Maps Content with text-to-speech services.

(b) No Caching. Customer will not cache Google Maps Content except as expressly permitted under the Maps Service Specific Terms.

(c) No Creating Content From Google Maps Content. Customer will not create content based on Google Maps Content. For example, Customer will not: (i) trace or digitize roadways, building outlines, utility posts, or electrical lines from the Maps JavaScript API Satellite base map type; (ii) create 3D building models from 45° Imagery from Maps JavaScript API; (iii) build terrain models based on elevation values from the Elevation API; (iv) use latitude/longitude values from the Places API as an input for point-in-polygon analysis; (v) construct an index of tree locations within a city from Street View imagery; or (vi) convert text-based driving times into synthesized speech results.

(d) No Re-Creating Google Products or Features. Customer will not use the Services to create a product or service with features that are substantially similar to or that re-create the features of another Google product or service. Customer’s product or service must contain substantial, independent value and features beyond the Google products or services. For example, Customer will not: (i) re-distribute the Google Maps Core Services or pass them off as if they were Customer’s services; (ii) create a substitute of the Google Maps Core Services, Google Maps, or Google Maps mobile apps, or their features; (iii) use the Google Maps Core Services in a listings or directory service or to create or augment an advertising product; (iv) combine data from the Directions API, Geolocation API, and Maps SDK for Android to create real-time navigation functionality substantially similar to the functionality provided by the Google Maps for Android mobile app.

(e) No Use With Non-Google Maps. Customer will not use the Google Maps Core Services in a Customer Application that contains a non-Google map. For example, Customer will not (i) display Places listings on a non-Google map, or (ii) display Street View imagery and non-Google maps in the same Customer Application.

(f) No Circumventing Fees. Customer will not circumvent the applicable Fees. For example, Customer will not create multiple billing accounts or Projects to avoid incurring Fees, prevent Google from accurately calculating Customer’s Service usage levels, abuse any free Service quotas, or offer access to the Services under a “time-sharing” or “service bureau” model.

(g) No Use in Prohibited Territories. Customer will not distribute or market in a Prohibited Territory any Customer Application(s) that use the Google Maps Core Services.

(h) No Use in Embedded Vehicle Systems. Customer will not use the Google Maps Core Services in connection with any Customer Application or device embedded in a vehicle. For example, Customer will not create a Customer Application that (i) is embedded in an in-dashboard automotive infotainment system; and (ii) allows End Users to request driving directions from the Directions API.

(i) No Modifying Search Results Integrity. Customer will not modify any of the Service’s search results.

3.2.5 Benchmarking. Customer may not publicly disclose directly or through a third party the results of any comparative or compatibility testing, benchmarking, or evaluation of the Services (each, a “Test”), unless the disclosure includes all information necessary for Google or a third party to replicate the Test. If Customer conducts, or directs a third party to conduct, a Test of the Services and publicly discloses the results directly or through a third party, then Google (or a Google directed third party) may conduct Tests of any publicly available cloud products or services provided by Customer and publicly disclose the results of any such Test (which disclosure will include all information necessary for Customer or a third party to replicate the Test).

3.2.4サービスの誤用に対する制限。

(a)スクレイピングなし。お客様は、サービス外で使用するためにGoogleマップコンテンツを抽出、エクスポート、またはその他の方法でスクレイピングすることはありません。たとえば、お客様は次のことを行いません。(i)サービス外でGoogleマップコンテンツをプリフェッチ、インデックス登録、保存、再共有、または再ホストする。 (ii)Googleマップタイル、ストリートビュー画像、ジオコード、方向、距離マトリックスの結果、道路情報、場所情報、標高値、およびタイムゾーンの詳細を一括ダウンロードします。 (iii)ビジネス名、住所、またはユーザーレビューをコピーして保存する。または(iv)テキスト読み上げサービスでGoogleマップコンテンツを使用する。

(b)キャッシングなし。お客様は、マップサービス固有の条件で明示的に許可されている場合を除き、Googleマップコンテンツをキャッシュしません。

(c)Googleマップコンテンツからコンテンツを作成することはできません。お客様は、Googleマップコンテンツに基づいてコンテンツを作成しません。たとえば、お客様は次のことを行いません。(i)Maps JavaScript API Satelliteベースマップタイプから道路、建物の輪郭、ユーティリティポスト、または電線をトレースまたはデジタル化します。 (ii)Maps JavaScript APIの45°画像から3D建物モデルを作成します。 (iii)Elevation APIからの標高値に基づいて地形モデルを構築します。 (iv)Places APIの緯度/経度値を、ポリゴン内のポイント分析の入力として使用します。 (v)木の位置のインデックスを構築する

(d)Google製品または機能の再作成はありません。お客様は、本サービスを使用して、他のGoogle製品またはサービスの機能に実質的に類似する機能または再作成する機能を備えた製品またはサービスを作成しません。お客様の製品またはサービスには、Googleの製品またはサービスを超えて、実質的で独立した価値と機能が含まれている必要があります。たとえば、お客様は次のことを行いません。(i)Google Maps Coreサービスを再配布したり、お客様のサービスであるかのように見せかけたりすること。 (ii)Google Maps Core Services、Google Maps、Google Mapsモバイルアプリ、またはそれらの機能の代替物を作成する。 (iii)リスティングまたはディレクトリサービスでGoogleマップコアサービスを使用するか、広告製品を作成または拡張する。 (iv)Directions API、Geolocation API、Maps SDK for Androidのデータを組み合わせて、Androidモバイルアプリ向けGoogle Mapsが提供する機能とほぼ同様のリアルタイムナビゲーション機能を作成します。

(e)Google以外のマップでは使用できません。お客様は、Google以外の地図を含むお客様のアプリケーションでGoogle Maps Core Servicesを使用しません。たとえば、お客様は、(i)Google以外の地図にプレイスリスティングを表示したり、(ii)同じ顧客アプリケーションでストリートビュー画像とGoogle以外の地図を表示したりしません。

(f)回避費用なし。お客様は該当する料金を回避しません。たとえば、料金の発生を避けるため、Googleがお客様のサービス使用レベルを正確に計算できないようにする、無料のサービスクォータを悪用する、「タイムシェアリング」または「サービスビューロー」でサービスへのアクセスを提供するために、複数の請求アカウントまたはプロジェクトを作成しない" 型。

(g)禁止地域では使用できません。お客様は、Googleマップコアサービスを使用するお客様のアプリケーションを禁止地域で配布または販売することはありません。

(h)組み込み車両システムでは使用できません。お客様は、車両に組み込まれたお客様のアプリケーションまたはデバイスに関連してGoogleマップコアサービスを使用することはありません。たとえば、顧客は、(i)ダッシュボード内の車載インフォテインメントシステムに組み込まれている顧客アプリケーションを作成しません。 (ii)エンドユーザーがDirections APIから運転ルートをリクエストできるようにします。

(i)検索結果の整合性の変更はありません。お客様は、サービスの検索結果を変更しません。

wackey commented 4 years ago

Googleに問い合わせた

wackey commented 4 years ago

プレイスID、緯度経度のみキャッシュ可。 対応としては

1.管理画面でプレイスID、緯度、経度のみ使うか否かの選択肢を作る 例;Google Mapsの埋め込みのみ使う or プレイスの情報を出力する(住所や電話番号、レイティング、写真など)

2.Google Maps埋め込みのみのこの場合は緯度経度、プレイスIDのみ取得し、緯度経度は30日キャッシュ保存し地図埋め込みに活用する。  プレイス詳細情報を使う場合は、キャッシュしないで詳細情報を取得するようにする(現在表向き出していないレビュー情報等も出す用に検討)

wackey commented 4 years ago

[LocketsGMaps placeid="ChIJb-6NqQ73GGARzVJb6OHf3mM" placename="あざみ野駅"]

placenameを編集可能とした。プレイスIDは永続的にキャッシュ可、緯度経度はキャッシュを付ける

wackey commented 4 years ago

別Issueにてセンターマーカー設置予定。 キャッシングのタスクは完了