|
|
@@ -8,11 +8,13 @@ import (
|
|
|
)
|
|
|
|
|
|
func getPositionInfo(ctx context.Context, req *jsonrpc2.Request) *jsonrpc2.Response {
|
|
|
- lat, lon, _ := gnss.Get2DPosition()
|
|
|
+ lat, lon, inuse, inview, _ := gnss.Get2DPosition()
|
|
|
|
|
|
result := map[string]string{
|
|
|
- "lat": lat,
|
|
|
- "lon": lon,
|
|
|
+ "lat": lat,
|
|
|
+ "lon": lon,
|
|
|
+ "inuse": inuse,
|
|
|
+ "inview": inview,
|
|
|
}
|
|
|
|
|
|
return jsonrpc2.BuildResponse(req, result, nil)
|