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

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

3. 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. 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&#91;&#93; loc = new MapPoint.Location&#91;4&#93;;

int x1 = app.ActiveMap.LocationToX&#40;location&#41;;
int y1 = app.ActiveMap.LocationToY&#40;location&#41;;

loc&#91;0&#93; = app.ActiveMap.XYToLocation&#40;x1+50, y1+50&#41;;
loc&#91;1&#93; = app.ActiveMap.XYToLocation&#40;x1-50, y1+50&#41;;
loc&#91;2&#93; = app.ActiveMap.XYToLocation&#40;x1-50, y1-50&#41;;
loc&#91;3&#93; = app.ActiveMap.XYToLocation&#40;x1+50, y1-50&#41;;```
<full code on the way>

##### Users Browsing this Thread

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

#### Posting Permissions

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