구글 place api 사용시

현재 규정상 30일동안 성능상 캐시할 수 있다. 대신 place id만 마음껏 저장할 수 있다. 


map image를 사용할 때, 30일 동안이라도 캐시하고 싶지만, 

다양한 모바일 기기에서 map size를 조절할 수 없기 때문에 캐시도 쉽지 않았다. 

그리고 실시간 결과와 구글 place api 정책 이슈에 걸리지 않게 하기 위해 캐시를 작게 하는 것이 좋은 것 같았다. 


참고로,  개발하기 전에 https://developers.google.com/maps/terms 의 10항을 꼼꼼하게 봐야 한다.  




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

로고 요구사항

애플리케이션에서 지도에 Google Places API 웹 서비스 데이터를 표시하는 경우 해당 지도는 Google이 제공해야 합니다.

애플리케이션에서 페이지 또는 보기에 Google 지도를 표시하지 않는 Google Places API 웹 서비스 데이터를 표시하는 경우, 'Powered by Google'이라는 로고를 데이터와 함께 표시해야 합니다. 예를 들어 애플리케이션에서 한 탭에 장소 목록을 표시하고 다른 탭에 장소가 포함된 Google 지도를 표시하는 경우, 첫 번째 탭에'Powered by Google' 로고를 표시해야 합니다.

흰색 배경에 사용하는 경우흰색이 아닌 배경에 사용하는 경우

다음 ZIP 파일에는 데스크톱, Android 및 iOS 애플리케이션별 적정 크기의 'Powered by Google' 로고가 있습니다. 어떤 방식으로든 로고를 수정하거나 크기를 조정해서는 안됩니다.




https://developers.google.com/places/place-id

향후 사용을 위한 장소 ID 저장

장소 ID는 Google Maps API 서비스 약관의 10.1.3 조항에 명시된 캐싱 제한에서 제외됩니다. 따라서 장소 ID 값을 무제한으로 저장할 수 있습니다.




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

콘텐츠 프리페칭, 캐싱 또는 저장

Google Places API 웹 서비스를 사용하는 애플리케이션은 Google Maps API 서비스 약관을 준수해야 합니다. 약관의 10.1.3 조항에는 약관에 명시된 제한 조건을 제외하고 어떠한 콘텐츠도 프리페치, 캐싱 또는 저장해서는 안된다고 기술되어 있습니다.

장소 ID는 장소를 고유하게 식별하는 데 사용되며 캐싱 제한에서 제외됩니다. 따라서 장소 ID 값을 무제한으로 저장할 수 있습니다. 장소 ID는 Google Places API 웹 서비스 응답에서 place_id 필드에 반환됩니다.



https://developers.google.com/maps/terms 의 10항



10. License Restrictions.

Except as expressly permitted under the Terms, or unless you have received prior written authorization from Google (or, as applicable, from the particular Content provider), Google’s licenses above are conditioned on your adherence to all of the restrictions below. In this Section 10, the phrase "you will not" means "when using the Service, you will not, and will not permit a third party to."

10.1 Administrative Restrictions.

  1. No access to APIs or Content except through the Service. You will not access the Maps API(s) or the Content except through the Service. For example, you must not access map tiles or imagery through interfaces or channels (including undocumented Google interfaces) other than the Maps API(s).
  2. No access to Service without applicable Developer Identifier(s). For certain versions or features of the Maps API(s), Google may require you to use a Developer Identifier to access and administer the Service. If a Developer Identifier is required under the Maps APIs Documentation, you will not access the Service without the Developer Identifier.
  3. No hiding identity. You will not hide from Google the identity of your Maps API Implementation. You must follow the identification conventions in the Maps APIs Documentation.

10.2 General Google API Restrictions. The following restrictions apply generally to all Google Services, including the Google application programming interfaces at https://developers.google.com/products/ (or such other URL as Google may provide) (the “Google API(s)”). You will not:

  1. Sublicense a Google API for use by a third party. Consequently, you will not create an API client that functions substantially the same as the Google APIs and offer it for use by third parties.
  2. Perform an action with the intent of introducing to Google Services any viruses, worms, defects, Trojan horses, malware, or any items of a destructive nature.
  3. Defame, abuse, harass, stalk, or threaten others.
  4. Interfere with or disrupt the Google APIs or the servers or networks providing the Google APIs.
  5. Promote or facilitate unlawful online gambling or disruptive commercial messages or advertisements.
  6. Reverse engineer or attempt to extract the source code from any Google API or any related software, except to the extent that this restriction is expressly prohibited by applicable law.
  7. Use the Google APIs for any activities where the use or failure of the Google APIs could lead to death, personal injury, or environmental damage (such as the operation of nuclear facilities, air traffic control, or life support systems).
  8. Use the Google APIs to process or store any data that is subject to the International Traffic in Arms Regulations maintained by the U.S. Department of State.
  9. Remove, obscure, or alter any Google terms of service, or any links to or notices of those terms.

10.3 Quality Standards Restrictions.

  1. No violation of Google’s Software Principles. You will not violate Google’s Software Principles athttp://www.google.com/intl/en/about/company/software-principles.html (or such other URLs that Google may designate).
  2. No modification of search results. You will not modify, reorder, augment, or manipulate search results in any way unless you explicitly notify the end user of your actions.

10.4 Restrictions on Unfair Exploitation of the Service and Content.

  1. No use except under these Terms. You will not use the Service or Content except as expressly permitted under these Terms. For example:
    1. No fees. You will not charge any third party a fee to use your Maps API Implementation, the Service, or the Content, unless you have purchased an applicable Maps for Work license that expressly permits this use.
    2. No printing 5,000+ copies for direct marketing. You will not print more than 5,000 copies of sales collateral materials containing a screenshot of the Content for purposes of commercial sales lead generation.
    3. No use as a core part of printed matter. You will not incorporate the Content as a core part of printed matter (such as a printed map or guide book) that is redistributed for a fee.
  2. No use beyond transaction limits and usage policies. If your Maps API Implementation generates a high volume of transactions, Google reserves the right to set transaction limits, as described in the Maps APIs Documentationhere. Google also reserves the right to set other usage policies in the Documentation from time to time. If you want to engage in use outside these transaction limits or usage policies, you can purchase more usage capacity through the Maps API Standard pricing plan, or you can contact the Google Maps for Work sales team for licensing options to address your needs. Google may decline your request, or condition acceptance on your agreement to additional terms and/or charges for that use.
  3. Restrictions on your Maps API Implementations.
    1. No creation of a substitute service. You will not use the Service to create a Maps API Implementation that is a substitute for, or substantially similar service to, Google Maps (at https://www.google.com/maps (or such other URL as Google may provide)) ("Google Maps") or the Service.
    2. No creation or augmentation of data sets based on Google’s Content or Services. You will not use Google’s Content or Services to create or augment your own mapping-related dataset (or that of a third party), including a mapping or navigation dataset, business listings database, mailing list, or telemarketing list.
    3. No navigation. You will not use the Service or Content for or in connection with (a) real-time navigation or route guidance; or (b) automatic or autonomous vehicle control.
    4. No asset-tracking unless you have purchased the applicable Maps for Work license. Unless you have purchased an applicable Maps for Work license that expressly permits you to do so, you will not use the Service or Content for commercial asset-tracking or in Maps API Implementations whose primary purpose is to assess vehicle insurance risks.
      1. Commercial asset-tracking includes dispatch, fleet management, and Maps API Implementations that track your (or your end users’) assets (for example, private or commercial transportation applications, including taxi and vehicle-for-hire applications).
      2. Non-commercial asset-tracking implementations include applications used for a non-commercial purpose (for example, a free, publicly accessible Maps API Implementation that displays real-time public transit or other transportation status information or that allows end users to share real-time location with others).
    5. No use of Content in a listings service. You will not use business listings-related Content in any Customer Implementation that has the primary purpose of making available business, residential address, or telephone directory listings.
    6. No use of Content for an Ads product. You will not use business listings-related Content to create or augment an advertising product.
  4. No use of Content without a Google map. Unless the Maps APIs Documentation expressly permits you to do so, you will not use the Content in a Maps API Implementation without a corresponding Google map. For example, you may display Street View imagery without a corresponding Google map because the Maps APIs Documentationexpressly permits this use.
  5. No use of Content with a non-Google map. You must not use the Content in a Maps API Implementation that contains a non-Google map.

10.5 Intellectual Property Restrictions.

  1. No distribution or sale except as permitted under the Terms. You will not distribute, sell, or otherwise make any part of the Service available to third parties except as permitted by these Terms.
  2. No derivative works. You will not modify or create a derivative work based on any Content unless expressly permitted to do so under these Terms. For example, the following are prohibited: (i) creating server-side modification of map tiles; (ii) stitching multiple static map images together to display a map that is larger than permitted in the Maps APIs Documentation; or (iii) tracing or copying the copyrightable elements of Google’s maps or building outlines and creating a new work, such as a new mapping or navigation dataset.
  3. No use of Content outside the Service. You will not use any Content outside of the Service except as expressly permitted to do so in Subsection (d). For example, you will not export or save the Content to a third party’s platform or service.
  4. No caching or storage. You will not pre-fetch, cache, index, or store any Content to be used outside the Service, except that you may store limited amounts of Content solely for the purpose of improving the performance of your Maps API Implementation due to network latency (and not for the purpose of preventing Google from accurately tracking usage), and only if such storage:
    1. is temporary (and in no event more than 30 calendar days);
    2. is secure;
    3. does not manipulate or aggregate any part of the Content or Service; and
    4. does not modify attribution in any way.
  5. No mass downloading. You will not use the Service in a manner that gives you or a third party access to mass downloads or bulk feeds of any Content. For example, you are not permitted to offer a batch geocoding service that uses Content contained in the Maps API(s).
  6. No incorporating Google software into other software. You will not incorporate any software provided as part of the Service into other software.
  7. No removing, obscuring, or altering terms of service, links, or proprietary rights notices. You will not:
    1. remove, obscure, or alter any Google terms of service or any links to or notices of those terms, or any copyright, trademark, or other proprietary rights notices; or
    2. falsify or delete any author attributions, legal notices, or other labels of the origin or source of material.


Posted by '김용환'
,