Simple method is to Get your location data from google API is to use AJAX call.
$.ajax({
dataType: "json",
url: "http://maps.googleapis.com/maps/api/geocode/json?latlng=17.49266,78.54620&sensor=true",
success: function(){
}
});
the success function will return the JSON object. use this to get your location.
if you want to send data then use
data:{}
to send JSON object as parameter.
if you want to handle error then use
error: function(){
}
I thing this may help you..