I am trying to save latitude and longitude to mongoose model but I am unable to store them
wrong object you are using , loc type is Array , not an Object
var Driver = new trackCab({ carNumber: req.body.carNumber, DriverName: req.body.DriverName, loc: [parseFloat(req.body.longitude),parseFloat(req.body.latitude)] })