Can anyone see a problem with the following i hope its a simple snag but its driving me mad..
firebug brings up the 'missing : after property id' - I have looked online but cant suss it
any thoughts..?
navigator.geolocation.getCurrentPosition(function(position){
var lat = position.coords.latitude;
var lon = position.coords.longitude;
var request = {
request.origin = position.coords.latitude + ',' + position.coords.longitude;,
travelMode: google.maps.DirectionsTravelMode.DRIVING
};
});
},function(error){
//use error.code to determine what went wrong
});