Hello and welcome to our community! Is this your first visit?
Register
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
    Posts
    1
    Thanks
    1
    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.

    Lance

  • #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,918
    Thanks
    56
    Thanked 545 Times in 542 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 01:28 PM.

  • 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
    •