а всё понял, надо было сделать так:
if(navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(function (position) {
        var latitude = position.coords.latitude;
        var longitude = position.coords.longitude;
		alert(latituded+' '+longituded);
		var rabotaet = {znachenie: latitude};
		$.post('client_gps.php', rabotaet);
		
        });
    }