I'm using an L80 GPS module together with my Arduino UNO. GPS module responds with a massage in NMEA format, giving me information about the date, time, latitude, longitude, altitude (if possible), number of satellites etc.
Latitude and longitude information of NMEA are in the form of degrees and minutes (DD°MM.mmm’). I'm able to convert them into only degrees notation (DD.dddddd°).
I have the following problem: Given a particular location (e.g. 48.858125, 2.294398) and a safety radius of, let's say, 50 meters, how to determine weather (a, b) point is within a safety circle or not? Can you help me figuring out the math hiding behind? I know that, having latitudes and longitudes in degrees, my points are represented in an angular coordinate system, not Cartesian (linear) one.
I also know that Universal Transferse Mercator (UTM) representation of points on Earth is in Cartesian coordinate system. Do you, maybe, know how to transform degree notation (DD.dddddd°) into UTM notation? I know there are on-line tools that are able to do a conversion. However, I don't know the math. :cold_sweat:
Thank you very much for your time and effort to help me.