Exporting addresses

PaLou
09-29-2007, 11:25 AM
I notice that when you are at a low altitude level you can click on a street and it displays a tooltip of the actual street address. Is it possible to extract/export/query multiple address data from within a defined rectangle?

Thanks,
Lou

Wilfried
10-01-2007, 02:05 AM
Hi,

Yes you can. Start scanning every point in a given rectangle with distances of 15 meter or so in between with ObjectsFromPoint method. You have to check validity of course, filter out doubles and filter out anything that is not a street, but it is not a big deal.

PaLou
10-25-2007, 12:21 PM
Hi Wilfried,

Not sure if the other post went through, but (1) how do I know the upper left and lower right coordinates of the rectangle? and (2) it looks like ObjectsFromPoint method needs screen XY coordinates - can I use actual ones?

Here's what I want to do: start at the lower right corner of the rectangle, get address, move .0001 degree longitude, get address, until I get to the left side (upper left longitude). Then go up .0001 degree latitude and back to the right side (lower right longitude) and so forth until I get to the top left.

I can handle the dups and non-addresses ok.

Thanks
Lou

Wilfried
10-29-2007, 03:37 PM
Hi,

Use LocationToX and LocationToY methods to find the XY coordinates. You can use a shape (a rectangle) to select the points.

.0001 degree is around 11 meter and is a very good resolution. But you can make it higher as mappoint will recognize points near streets

 
Web mp2kmag.com
mapforums.com