Firmware: How to convert GPS values to google maps format

photon
Tags: #<Tag:0x00007fe223091278>

#1

hi,

I get values from gps module as follows:

Lat 4057.9106
Long 07413.1862

how do I convert to google maps format:
19°09’58.6"N 72°51’01.4"E

thanks


#2

gps module
https://www.electronicwings.com/particle/gps-module-interfacing-with-particle-photon


#3

https://lmgtfy.com/?q=convert+gps+decimal+to+dms


#4

Those decimal Lat/Long coordinates look wrong tho’
The latitude should fall into the range of -90.0 .. +90.0 and longitude into -180.0 .. +180.0