Hi,
Is it possible to calculate Driving distance when Latitude longitude of two points are provided?
Hi,
Is it possible to calculate Driving distance when Latitude longitude of two points are provided?
govind,
Thank you for your post, you can use:
double distance = firstPoint.GetDistanceTo(secondPoint, GeographyUnit.DecimalDegree, DistanceUnit.Kilometer);
for more details, you can see How Do I Samples–>Featrues–>FindTheDistanceBetweenTwoFeatures
Regards,
Gary
Thanks Gary!
govind,
Any more questions please feel free to let me know.
Regards,
Gary
Hi Gary,
the code which you provided seems to be giving the straight line distance.
And what i am looking for a driving distance via the shortest path to the destination point defined by latitude longitude.
Regards,
Govind M. Kotkundwar
govind,
Sorry, so you are using our routing product?
Regards,
Gary
Gary,
Yes i have downloaded both Web,Server as well as routing product. But i am not sure which product i have to use to get the driving distance.
It will be very useful if you let me know which product i need to use to get the driving distance.
govind,
Thank you for your post, please check this post:
gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/30/aft/9517/afv/topic/Default.aspx#27985
Regards,
Gary