 <p>Some code would be useful. In the absence of that here's a best guess generic answer: In general terms you will need to work out how to map (convert) each format to the other. Then you can convert to the format suitable for the database before you save and convert from database format to google maps format when you retrieve. I imagine each polygon is a set of latitude/longitude pairs in both formats so it shouldn't be too difficult.</p> <p>Alternatively, since you're using JSON, you could just save the JSON to a text field in the database (or to a JSON field in the upcoming 9.2 release of PostgreSQL): </p> <p><a href="http://www.postgresql.org/docs/9.2/static/datatype-json.html" rel="nofollow">http://www.postgresql.org/docs/9.2/static/datatype-json.html</a></p> <p>However if you would like to perform geographical queries in the database that would obviously limit your options.</p>