Avatar

how to obtain the distance between two points in logRecord?

1

Hi,

i need know the distance between two points selected from logRecord.

Raul Olaje

Please sign in to leave a comment.

5 comments

0
Avatar

Hi Raul,

If you are using from .Net referencing the Geotab.Checkmate.ObjectModel.dll you can use an object we include named Coordinate which has the method DistanceBetween for doing such a calculation. Otherwise, a quick Google search of something like "distance between 2 lat lon points" should provide many examples of how to do this in whichever language you are using.

Thanks,

Steve

Steve Hansen 0 votes
0
Avatar

Hi Raul,

It's not a static method. You need to instantiate a new coordinate object to use the method. The method compares this coordinate to the one provided.

Steve

Steve Hansen 0 votes