I am writing an application that uses GPS coordinates to gather information on nearby places based on which direction the driver is headed. I would post a picture, but being a new poster prevents me from doing so. I will attempt to describe it as best I can.
Situation: The driver is driving NE. There are possible locations all around him. I want to get the locations that are in front of him in an 80 degree span (this span can change)
- Standard XY coordinates as I can use latitude and longitude to get their information.
- Driver can be driving in any direction (of course)
I am trying to figure out a formula that will confirm the locations are in the shaded area.
The degree at which it detects the location is not set right now as this will change due to testing and what will work best.