I want to display the GPS Tracking data as in a Grafana Geomap Panel with the route layer but I can’t get it to work.
I have the data in InfluxDB.
I have set up 2 queries in my Geomap Panel, one for latitude and one for longitude values.
I chose Layer Type “Route (Beta)”, Location Mode “Coords” and for Latitude Field the latitude query and for Longitude field the longitude query. But I get the Message “Select latitude/longitude fields”… Can someone help me?
Can you try rewriting your query to bring back both longitude and latitude together, or use the concatenate transformation to join yourbresults in to one?
I saw you had two queries, latitude and longitude. I said you should concatenate to get one set of results back, but still using separate latitude and longitude values. My data looks like this:
maybe you can tell me how to get this data?
I use node-red to send the longitude and latitude values into influx db… but probably I do something wrong…
when I use one query in grafana with 2 fields it shows no data…
I think your function node in Node-RED is not correctly formatting the data for Influx. I would send the data into InfluxDB like this (with the timestamp being assigned at the moment you ingest the data into Influx):
In the above, for every sensor value you send, there is an associated lat & lon value (which are tag values). Normally, depending on the precision used for lat/lon, you could easily end up with very high cardinality, which is not good. However, InfluxDB 3.0 has removed that barrier and now offers unlimited cardinality.
thanks @grant2 , I tried it with your function node but it’s not working for me…
each coordinate is now a tag with the timestamp as field value…
in grafana the geomap is not working for me with this data…
Your query should produce results which have latitude and longitude as separate fields (columns) in the above table. I know you wrote above:
when I use one query in grafana with 2 fields it shows no data…
but what exactly is shown in the red exclamation mark message? Your query is probably wrong and that is why you cannot see lat & lon as two separate fields.
I don’t know why but now it seems to work to choose just one query but 2 fields.
My table looks like this now, when I select 2 fields, so I can select from the 2 fields but they are not in the same table: