gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] Where should I start from?


From: Gary E. Miller
Subject: Re: [gpsd-users] Where should I start from?
Date: Wed, 19 Jun 2019 09:39:21 -0700

Yo raaj!

On Wed, 19 Jun 2019 15:28:44 +0800
raaj lokanathan <address@hidden> wrote:

> I have already run the gpspipe client to output the data in json
> format.

Also gpspipe does NMEA and raw output.

> What if I want to see the output such as the latitude and
> longitude?

Right there in the JSON.  Right where you were looking.  RTFM:
    "man gpsd_json"

In the class:TPV, lat:XX and lon:YY.  You'll also want to check the
mode to be sure th fix is valid.

Or, use libgps (man libgps) to do the JSON decode for you.  Look in
sample client cgps (man cgps) for how that works in C.

If you are coding in Python then "import gps".

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin

Attachment: pgp3CGyre9_AW.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]