Capture Google Map KML input to Google Form/Fusion Table

This project received 3 bids from talented freelancers with an average bid price of $583 USD.

Get free quotes for a project like this
Project Budget
Total Bids
Project Description

My goal is let a user draw a route on a Google Map so they can submit it to the site.

In the following jsfiddle, a user can draw a route and double-click when finished. Double-click will bring up a Google Form with 'Location' field pre-populated with the KML coordinates. The user can submit it, and it goes to a Fusion Table for easy display down the line once it is approved.

Here is the jsfiddle. [url removed, login to view]

And the code in question:


//here is the variable with properly formatted KML

geolines=escape("")+[url removed, login to view]().getArray().toString().replace(/([\s]+)/g, '')+escape("") ;

//infowindow that should display a form with Location field pre-populated with geolines variable for easy submission.

infowindowv2 = new [url removed, login to view]({

content: ''



The problem is that if one zooms out and draws a more complicated route, the KML becomes too large very quickly and I get the following error: "413. That’s an error. Your client issued a request that was too large. That’s all we know." This is because only 2000 characters can be passed via URL and the KML files get a lot bigger very quickly. See here. [url removed, login to view]

I like the way maps/forms/fusion tables work together and I would like to preserve this combination, if possible.


Figure out a way to get around this error, while preserving the look and feel of the site. Basically, take the KML captured in the "geolines" variable and have it ready for submission via a form.

There is probably a Javascript solution to this. Maybe AJAX. Or maybe Fusion Tables API. Take your pick.

In your responses, please post how you would like to proceed and please post something that gives me confidence you can do finish this.

Note: There may be more than one winning bid for this so I can get several solutions and test and compare on my own.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online