<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
var distance = 2;
$(document).ready(function(){
$.ajax({
url: "",
type: "POST",
data: {distance:distance},
success: function(responseText){
}
});
});
</script>