i have a feature collection in the form of a geojson. i used vscode's geojson visualizer and it shows me exactly what i'm expecting as seen below.
i test the following cases to see if my code is working correctly. all features are polygons and multi polygons.
MontanaCoordinates = ValidateLocationParams{
Latitude: 46.8797,
Longitude: -110.3626,
} // should not work
SanDiegoCoordinates = ValidateLocationParams{
Latitude: 32.7157,
Longitude: 117.1611,
} // should work
NewYorkCoordinates = ValidateLocationParams{
Latitude: 40.7128,
Longitude: 74.0060,
} // should work
TorontoCoordinates = ValidateLocationParams{
Latitude: 43.65107,
Longitude: 79.347015,
} // should not work
LondonCoordinates = ValidateLocationParams{
Latitude: 51.5074,
Longitude: 0.1278,
} // should work
IrelandCoordinates = ValidateLocationParams{
Latitude: 53.1424,
Longitude: 7.6921,
} // should not work
AfricaCoordinates = ValidateLocationParams{
Latitude: 8.7832,
Longitude: 34.5085,
} // should not work
HawaiiCoordinates = ValidateLocationParams{
Latitude: 19.8968,
Longitude: 155.5828,
} // should work
the code below is what i use to see if a single coordinate is inside any of the polygons. it gets all the coordinates it should not work for correctly, but it fails to verify correctly the coordinates that should be working. my geojson looks something like this:
i have a feature collection in the form of a geojson. i used vscode's geojson visualizer and it shows me exactly what i'm expecting as seen below.
i test the following cases to see if my code is working correctly. all features are polygons and multi polygons.
the code below is what i use to see if a single coordinate is inside any of the polygons. it gets all the coordinates it should not work for correctly, but it fails to verify correctly the coordinates that should be working. my geojson looks something like this: