Distance and Mid Point between different locations

Last post 6/19/2009 3:35:23 AM by Chris Pietschmann. 1 replies. << Back to Web.Maps.VE v2.0 General
5/18/2009 3:56:05 PM
simba2009

Distance and Mid Point between different locations

Hi  there I have downloaded Web.Maps.VE 2.0, how do I calculate distance between two points and also a mid point between multiple locations.

Thanks

Yassin

6/19/2009 3:35:23 AM
Chris Pietschmann

Re:Distance and Mid Point between different locations

Here's a link to some C# code I write awhile back that calculates the distance between two latlong coordinate points: http://pietschsoft.com/post/2008/02/01/Calculate-Distance-Between-Geocodes-in-C-and-JavaScript.aspx

Here's another link to the VEToolkit project; it contains a couple helper methods that contain the math necessary to calculate the distance between two latlong points and to calculate the midpoint.

http://vetoolkit.codeplex.com

The VEToolkit is in JavaScript, but it can be easily converted over to C# or VB.NET for use with the Web.Maps.VE control.

Let me know if you have any further questions.