Here I have shop and user latitude and longitude i want to show my shop list between user and shop latitude and longitude . how i can do it in sequlize orm
const latitude = req.query.latitude; // user latitude
const longitude = req.query.longitude; // user longitutde
const shopLists = await Shop.findAll({
limit,offset,
attributes:["latitude","longitude"],
where:{
category_id:category_id,
status:1,
},
include :{
model:Category,attributes:['id','name']
}
});