Community of VE/MapPoint Users and Developers
This is a discussion on Web applications and mappoint within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I currently have an application which keeps track and schedules sales staff visits to customers. I need a way of ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Web applications and mappoint I need a way of calculating distances between 2 postcodes (uk) and to intergrate this into my application. Can this be done through mappoint? I don't want to use a subscription based product - can I just purchase the Mapoint 2004 European Edition to do this? Thanks in advance |
| |||
|
Hi, yes calculating distances, routedescription etc is programaticly easy to do with mappoint. There is however 1 restriction if you use web for it, that is if you want to display the maps itself over a HTTP server, then I think every user has to have a licence of mappoint. Please someone correct me if I'm wrong about the licence?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
If you want the straight line distance then you can create two Location objects, each representing one of your post codes, then you can do it like this (C#) Code: object iIndex = 1;
Location loc1 = (Location)map.FindPlaceResults("postcode 1").get_Item(ref iIndex);
Location loc2 = (Location)map.FindPlaceResults("postcode 2").get_Item(ref iIndex);
double dblDist = loc1.DistanceTo(loc2);
Code: object iIndex = 1;
map.ActiveRoute.Waypoints.Add(map.FindPlaceResults("postcode 1").get_Item(ref iIndex), "");
map.ActiveRoute.Waypoints.Add(map.FindPlaceResults("postcode 2").get_Item(ref iIndex), "");
map.ActiveRoute.Calculate();
double dblDist = map.ActiveRoute.Distance
|
![]() |
| Tags |
| applications, mappoint, web |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| GPS data different in Mappoint then in other applications? | Detonator | MapPoint 2006/2009 Discussion | 1 | 02-22-2006 12:19 PM |
| A single Mappoint-Control for Two Applications | Keter | MapPoint 2006/2009 Discussion | 1 | 07-09-2005 05:18 PM |
| MapPoint Control in Web applications | Anonymous | MapPoint 2006/2009 Discussion | 1 | 01-04-2005 04:09 AM |
| how can i use mappoint ocx with delphi desktop applications? | joesebi | MapPoint 2006/2009 Discussion | 5 | 07-09-2003 12:12 PM |
| Web Applications & MapPoint 2002 | Anonymous | MapPoint 2006/2009 Discussion | 1 | 03-01-2003 06:34 PM |