Unable to get appropriate result on passing dynamic object with hardcoded array in IsPointInside #112
Labels
no-issue
It's not an issue with the library itself. Please use Stack Overflow instead
var latling = { "latitude": 73.06831, "longitude": 33.6663874 };
if (isPointInside(
latling,
[
{ latitude: 73.06015491485596, longitude: 33.669318391264554 },
{ latitude: 73.07549715042114, longitude: 33.67733633656512 },
{ latitude: 73.08568954467773, longitude: 33.66356786778117 }
]
)
Works
But when
var lat=Float value from Database;
var long=Float value from Database;
var latling = { "latitude": lat, "longitude": long};
object is passed,
The result is always false, as if 1st argument was incorrect. But no error is generated in log
Kindly guide me in the right direction
-Platform : Node Js
Npm
The text was updated successfully, but these errors were encountered: