7 title: Service for geolocation
9 GPS service reports current WGS84 coordinates from GNSS devices
10 via the gpsd application.
13 maintainer: Scott Rifenbark
14 homepage: https://doc.automotivelinux.org/...
39 description: subscribe to gps/gnss events
40 request: $/schemas/subscription-desc
43 schema: $/schemas/none
48 description: unsubscribe to gps/gnss events
49 request: $/schemas/subscription-desc
52 schema: $/schemas/none
57 description: get current gps/gnss coordinates
58 request: $/schemas/none
60 success: $/schemas/location
61 _: An error can be returned when the service isn't ready
65 Entering *record* mode you must send **{"state": "on"}** with the **record**
66 verb which will have a JSON response of **{"filename": "gps_YYYYMMDD_hhmm.log"}**
67 pointing to log under *app-data/agl-service-gps*
69 Now to enter *replaying* mode you must symlink or copy a GPS dump to
70 *app-data/agl-service-gps/recording.log* and restart the service.
71 From then on out the previously recorded GPS data will loop infinitely
72 which is useful for testing or demonstration purposes.
73 request: $/schemas/record/request
76 schema: $/schemas/record/reply
79 _: An error can be returned when the service isn't ready
83 schema: $/schemas/location
95 # Follow JsonSchema specification (https://json-schema.org/)
98 title: Description of the event subscribed or unsubscribed
101 value: { enum: [ location ] }
109 title: the altitude in meters above the normal geoide
114 title: the latitude in degrees
119 title: the longitude in degrees
124 title: the speed in meter per seconds m/s
129 title: the heading in degrees
134 title: time stamp of the location as a ISO8601 date
135 type: string #ISO8601
136 pattern: \d{4,}-[01][0-9]-[0-3][0-9]T[012][0-9]:[0-5][0-9]:[0-5][0-9].*
142 state: { const: "on" }
149 title: the name of the file that records the data of format gps_YYYYMMDD_hhmm.log
151 pattern: gps_\d{4}\d{2}\d{2}_\d{2}\d{2}.log
152 required: [ filename ]
155 title: no value, just null