Passing Javascript Variables Up
<p>I need help comprehending some javascript and maps api code.
I would like to learn how to best get and parseInt a variable.
I would also like to know how to pass a variable to the where query in a maps layer.</p>

<pre><code>function codeAddress() {
    var radius = document.getElementById('radius');
    var address = document.getElementById('address').value;

    // I especially don't understand this area.       
    var miles = parseInt(this.radius, 10); 
    // What is the best way to parse a value to an integer?

    geocoder.geocode( { 'address': address}, function(results, status) {

    if (status == google.maps.GeocoderStatus.OK) {
        map.setCenter(results[0].geometry.location);
        circle.setCenter(results[0].geometry.location);

    layer.setOptions({
            query: {
                select: 'Address',
                from: tableid,
                where: 'ST_INTERSECTS(Address, ' + 'CIRCLE(LATLNG'+results[0].geometry.location+', ' + miles + '))'
                // How would i most effectively pass the value from 'results[0].geometry.location' to this line?
                }
            });
            circle.setRadius(miles);
            alert(miles);
            alert(latlon);
        } else {
        alert('Geocode was not successful for the following reason: ' + status);
        }
    });
}
</code></pre>

<p>I also don't understand how to write the layer.setOptions({query: {where: 
How would I best pass 'results[0].geometry.location' variable to it?</p>

<p>I've used this post as a guide. 
<a href="http://stackoverflow.com/questions/4839259/using-a-variable-for-latlng-position-in-sql-expr-for-google-fusion-tables">Stack Overflow: Fusion Tables</a></p>
