Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Trouble calculating distances within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi I am having trouble working out distance between two cities. It doesn't happen on all cities but it goes ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Trouble calculating distances I am having trouble working out distance between two cities. It doesn't happen on all cities but it goes wrong on London and adelaide. London being 51.3 / 0.1 Adelaide -34.55/-138.35 I get an answer of 3,785,583.93216433 it should be more like 16,000,000 my code is Dim gs As GeoStruct, iretval As Integer gs.Latitude1 = 51.3 gs.Longitude1 = 0.1 gs.Latitude2 = -34.55 gs.Longitude2 = -138.35 gs.geoid = 16 '' this specifies the elipsoid measurements 16 is international iretval = VInverse(gs) If iretval = WICNOERROR Then lblAnswer.Caption = CStr(gs.Distance) Else lblAnswer.Caption = "There was an error working out the distance, ret val : " & iretval End If Am I doing something wrong ?? Cheers Amjid |
![]() |
| Tags |
| calculating, distances, trouble |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Optimization trouble | Maverick | MapPoint 2006/2009 Discussion | 5 | 03-29-2006 11:43 AM |
| mappoint coordinate trouble WGS-stuff ? | Anonymous | MapPoint 2006/2009 Discussion | 3 | 08-28-2003 06:40 AM |
| Calculating distances from a route | Anonymous | MapPoint 2006/2009 Discussion | 0 | 07-18-2003 11:23 AM |
| Calculating Distances For Dummies | Anonymous | MapPoint 2006/2009 Discussion | 0 | 12-20-2002 05:26 PM |
| I am having trouble... I am trying to calculate r.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-10-2002 10:30 AM |
Luxor Holiday
Book your Luxor holiday through UlookUbook and visit this destination stooped in history.