inmcm/micropyGPS

Decimal latitude and longitude

hickford opened this issue · 1 comments

Hi. Can the library give me the latitude and longitude in decimal? I'd find this easier to work with. For example the statue of liberty would be at 40.689167, -74.044444

inmcm commented

Feature added in af8a645

used the coord_format parameter to set your lat/long formatting

> f = MicropyGPS()
> f.coord_format = 'dd'
# ....process some sentences
> f.latitude
   [40.446, N]
> f.latitude_string()
   40.446° N