I have a point where the objcet is and another point for mylocation.
I want to calculate the distance
>> object_location>> mylocation>> mylocation.distance(location)0.13980702957351368But the result is wrong is there some different way with geodjango to calculate the distance between two points
This way in ipdb is correct
ipdb> Item.objects.filter(id=self.object.id).distance(mylocation, field_name="address__location")[0].distanceDistance(m=15368.0088756)
أكثر...
I want to calculate the distance
>> object_location>> mylocation>> mylocation.distance(location)0.13980702957351368But the result is wrong is there some different way with geodjango to calculate the distance between two points
This way in ipdb is correct
ipdb> Item.objects.filter(id=self.object.id).distance(mylocation, field_name="address__location")[0].distanceDistance(m=15368.0088756)
أكثر...