Calculating Distances...

9 views
Skip to first unread message

Chuck

unread,
Mar 5, 2010, 12:27:55 PM3/5/10
to GeoAPI
I am using the GeoApi.dll that I found in the nhibernate search
library. I am not sure if this group is the same as that library.

I am trying to calculate distances between two points:

IPoint workPoint = CreatePoint(XX.XXXXX, -YY.YYYYYY);
IPoint homePoint = CreatePoint(XX.XXXXX, -YY.YYYYYY);


System.Console.WriteLine(homePoint.Distance(workPoint));

The docs state that Distance returns a double, and says that depending
on the unit, it could be meters, miles...

My question is how to I specify what the return value should specify
(I would like it to be miles).

Am I looking in the wrong place?

C

Reply all
Reply to author
Forward
0 new messages