MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Web applications and mappoint

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-16-2005
Junior Member
White Belt
 
Join Date: Jan 2005
Posts: 1
Web applications and mappoint

I currently have an application which keeps track and schedules sales staff visits to customers.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2005
Junior Member
White Belt
 
Join Date: Jan 2005
Posts: 3
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);
You can also use MapPoint's ability to calculate driving distance. The following code snippet (C#) shows this.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
applications, mappoint, web


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 07:02 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55