I am kind of new into the GIS world. I have a couple of GPS data in a CSV file as LonLat coordinates.
I used PostGIS to create points from those coordinates using
Then I tried to recreate the route of those points using the
ST_MakeLine() function. The output of the function is of geometry type
So, I used a repository to map match the recreated route to the real routes on a map. However, that repository requires you to use geometry of type
LinestringM. I come upon this post: Adding M coordinate with different measurings in PostGIS and it says to use the function
ST_AddMeasure() to create the M dimension.
My question is: What do you use as dimension M? Do you use the length of the linestring between each GPS point? Can you use timestamp as a form of measurement? Is it any arbitrary measurement you want to define?