-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decimal lat and lon ? #54
Comments
Hi, This sentence seems to work fine for me. I don't see your last line of output there?
|
Ah - sorted - it was a case of "error in front of keyboard" I was using: print msg.latitude+" "+msg.longitude To get my output - without explicitly casting the lat / lon to strings All OK now - apologies, but thanks for trying to help so quickly! On Sat, Jun 11, 2016 at 8:13 PM, Tom Flanagan notifications@github.com
|
Hi,
I have installed this library via pip, but have a problem accessing decimal lat and lon....
The below:
msg = pynmea2.parse(rcv)
print msg.gps_qual
print rcv
print msg.lat+" "+msg.lon
print msg.latitude+" "+msg.longitude
Gives the following output:
1
$GPGGA,185953.00,5123.94863,N,00009.08705,W,1,08,1.18,47.3,M,45.6,M,,*7E
5131.94862 00008.08693
In other words the un-converted lat/lon is printed, but not the decimal version. Any idea why...?
The text was updated successfully, but these errors were encountered: