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 4 of 4

Retrieve US State from Directions

This is a discussion on Retrieve US State from Directions within the Development forums, part of the MapPoint Desktop Discussion category; Hi We trying to find a way of retrieving the distance covered in each US state from a Route. Is ...

  1. #1
    cwhitehe is offline Junior Member White Belt
    Join Date
    Aug 2008
    Location
    UK
    Posts
    7

    Retrieve US State from Directions

    Hi

    We trying to find a way of retrieving the distance covered in each US state from a Route.

    Is there an easy way to do this?

    I was hoping to be able to use the StreetAddress of the Location returned in Directions, but all I get is an error. The only other solution I have been able to come up with so far is to look at the Instruction field for "Entering <State>", but this doesnt give me a solution for returning the initial state and relies on you crossing a state line.

    Thanks in advance for any help you might be able to give me.

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    4,563
    Blog Entries
    4

    Re: Retrieve US State from Directions

    You could get the initial state by looking at the Points of Interest or Places in MapPoint.

    You could turn on all Places and then do a Find Nearby Places, and see which state it is in...

    To do this programmatically I'd point to a couple resources

    Extracting the Mappoint 2002 Points of Interest - MapPoint Articles - MP2K Magazine

    Export "Places" from MapPoint 2010 to Access

    The latter is in the MapForums Downloads section so costs $19.95 to gain access, but it includes working source code.

    Then using the Entering State in the directions you would have everything you need, right?

    Eric
    ~ Order MapPoint MapPoint 2011 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    cwhitehe is offline Junior Member White Belt
    Join Date
    Aug 2008
    Location
    UK
    Posts
    7

    Re: Retrieve US State from Directions

    Thanks Eric, I'll give that a try and see how we get on.

  4. #4
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    4,563
    Blog Entries
    4

    Re: Retrieve US State from Directions

    Good luck, let us know how it goes.

    Eric
    ~ Order MapPoint MapPoint 2011 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Is it possible to retrieve altitude?
    By frizzello in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 12-14-2006, 12:50 PM
  2. Retrieve Lat/Lon of a ShaddedCircle
    By rorgmanche in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 09-09-2005, 07:38 AM
  3. Nobody knows the answer? How to retrieve the name of country
    By Abilio Serafim in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-29-2005, 10:09 AM
  4. Retrieve postcodes list
    By Dazzer in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 02-02-2004, 03:42 AM
  5. Is it possible to retrieve county names from the z....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 12-18-2001, 11:59 AM

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 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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79