```
var lat1 = parseFloat(req.params.lat1);
var long1 = parseFloat(req.params.long1);
var lat2 = parseFloat(req.params.lat2);
var long2 = parseFloat(req.params.long2);
```