For example, you are not permitted to offer a batch geocoding service that uses Content contained in the Maps API(s).
You must not use the Service in a manner that gives you or any other person access to mass downloads or bulk feeds of any Content, including but not limited to numerical latitude or longitude coordinates, imagery, visible map data, or places data (including business listings). (c) No Mass Downloads or Bulk Feeds of Content. For example, you must not use the Content to create an independent database of "places" or other local listings information. You must not pre-fetch, cache, or store any Content, except that you may store: (i) limited amounts of Content for the purpose of improving the performance of your Maps API Implementation if you do so temporarily, securely, and in a manner that does not permit use of the Content outside of the Service and (ii) any content identifier or key that the Maps APIs Documentation specifically permits you to store. (b) No Pre-Fetching, Caching, or Storage of Content.
Section 10.1 of Google Maps' Terms of Use says :
#Google maps contact extractor v2.0 how to#
So a discussion on how to retrieve it from a database is hypothetical as Google Maps data is not meant to reside in a DB. The details of the authorization process, or 'flow,' for OAuth 2.0 vary somewhat depending on what kind of application youre writing.
You cannot fetch google maps information in a database or any such entity which stores bulk information. Requests to the Google Contacts API for non-public user data must be authorized by an authenticated user.