Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Thanked 0 Times in 0 Posts

    How do you send a Google Map image to a database?

    I am designing a website for a user to select a desired location on a map using Google Maps API. Once the user picks the desired location, I would like that image sent to a database (to store the selected image).

    Iíve gotten Google Maps API to operate on my website but I have not set up a database to store the image. Please offer guidance for the following questions:

    1) How do you develop the code for sending the desired map image to the database
    2) What type of database should I use to store the image?

    Thank you advance as Iím quite a newbie.


  2. #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Thanked 667 Times in 662 Posts
    I would suggest reading Google's Terms of Service, particularly section 10.1.3 (b): No Pre-Fetching, Caching, or Storage of Content, before going too much further down this road.

    basically, you can't store or save anything that google serves up (like the map image) but you can store your own or user interactions with the map (where they are, if they place a marker, etc) and then display them on a map later.

    there's a google tutorial here that shows you how users can mark locations on the map then send that info to your database
    Last edited by xelawho; 01-05-2012 at 02:28 PM.

  3. Users who have thanked xelawho for this post:

    phifertoo (01-05-2012)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts