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

getting names of streets around a location

This is a discussion on getting names of streets around a location within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have seen vague references to this question elsewhere but have yet to find an answer... Is there a way ...

  1. #1
    khakiDave is offline Junior Member White Belt
    Join Date
    Mar 2005
    Posts
    3

    getting names of streets around a location

    I have seen vague references to this question elsewhere but have yet to find an answer...

    Is there a way to determine the street names near a particular location? I know that you can find nearby places, but the closest I have see to this is a model where an area is defined and each lat/long in the location is queried to see if it is a street.

    Any other ideas or references?

    Thanks - Dave

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    I wonder if you Route to various points around a location to a particular distance.. then you could read the Directions properties. What do you think?

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

  3. #3
    khakiDave is offline Junior Member White Belt
    Join Date
    Mar 2005
    Posts
    3

    almost there

    Great idea, when I'm done I will post the code. Last piece to finish this test is to figure out the latitude longitude from the location object (set via address) - can you point me to an article that might provide this? (alternatively if I can move the location object a certain amount - such as a mile up or over, that would work as well - any ideas?)

    Thanks for the help in advance!

    C# preferred, but beggers can't be choosers - I'll convert sample code if necessary

  4. #4
    khakiDave is offline Junior Member White Belt
    Join Date
    Mar 2005
    Posts
    3

    code on its way

    after some testing i'll post the code - no need for determining the lat and long - all that was needed was to generate some box corner locations from the image x and y pixel coordinates and go from there....


    Code:
    MapPoint.Location[] loc = new MapPoint.Location[4]; 
    
    					int x1 = app.ActiveMap.LocationToX(location);
    					int y1 = app.ActiveMap.LocationToY(location);
    
    					loc[0] = app.ActiveMap.XYToLocation(x1+50, y1+50); 
    					loc[1] = app.ActiveMap.XYToLocation(x1-50, y1+50); 
    					loc[2] = app.ActiveMap.XYToLocation(x1-50, y1-50); 
    					loc[3] = app.ActiveMap.XYToLocation(x1+50, y1-50);
    <full code on the way>

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Extract all streets names of a country...
    By iko82 in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 07-19-2006, 08:17 AM
  2. MapPoint, Pocket Streets, Streets and Trips
    By chpw in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 01-04-2006, 10:54 AM
  3. thick streets vs. spindly streets - how?
    By Anonymous in forum Bing Maps and MapPoint Web Service
    Replies: 1
    Last Post: 03-08-2005, 07:32 AM
  4. MapPoint web-service: THICK streets vs. spindly streets
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-07-2005, 12:32 PM
  5. Also, can I delete the state names and city names ....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-29-2000, 01:57 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 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 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96