Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 3 of 3

Web applications and mappoint

This is a discussion on Web applications and mappoint within the MapPoint Desktop 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 ...

  1. #1
    dantheman is offline 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

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    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?

  3. #3
    harpanet is offline 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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. GPS data different in Mappoint then in other applications?
    By Detonator in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-22-2006, 12:19 PM
  2. A single Mappoint-Control for Two Applications
    By Keter in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-09-2005, 05:18 PM
  3. MapPoint Control in Web applications
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-04-2005, 04:09 AM
  4. how can i use mappoint ocx with delphi desktop applications?
    By joesebi in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 07-09-2003, 12:12 PM
  5. Web Applications & MapPoint 2002
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-01-2003, 06:34 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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