View Full Version : How do you send a Google Map image to a database?

01-05-2012, 06:03 AM
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.


01-05-2012, 02:24 PM
I would suggest reading Google's Terms of Service (http://code.google.com/apis/maps/terms.html), 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 (http://code.google.com/apis/maps/articles/phpsqlinfo_v3.html) that shows you how users can mark locations on the map then send that info to your database