"Untitled"
Bootstrap 4.1.1 Snippet by Arjunverma

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <h2>Save the location Lat long in nodejs mongoose </h2> </div> </div>
let pcoordinates = [] let pickupaddress = {} if (req.body.latitude && req.body.longitude) { pcoordinates.push(Number(req.body.latitude)) pcoordinates.push(Number(req.body.longitude)) pickupaddress.type = "Point"; pickupaddress.pcoordinates = pcoordinates req.body.pickupaddress = pickupaddress; }

Related: See More


Questions / Comments: