View Single Post

  #5 (permalink)  
Old 01-20-2006
DL DL is offline
Junior Member
White Belt
 
Join Date: Jan 2006
Posts: 1
I've been throught something like that in the past. Not the same kind of project, but mapping is mapping

So first, (after getting MapPoint) I've bought a "National ZIP+4 Address Database" from www.zipinfo.com

Then I've found the Location of the lowest address of every street address range in the needed cities with: oMap.FindAddressResults([Street], [City], [OtherCity], [Region], [PostalCode], [Country])

Then, you can put on the map all your Locations (found previously) with the oMap.AddPushpin(AtLocation, [Name]) method and move the pushpins in a dataset. (I would put some kind of ID of the street address range in the [Name] property so you can refer it later)

You have to create an Shape object that will hold your DrivingTimeZone and then you can query your dataset with the oDataSet.QueryShape(oDrivingTimeZoneShape)

This will return a recordset that will hold all your street address range pushpin that you had created.

With this recordset you can then go through all the records and get all your street address range that is within your driving time zone.

I hope it was clear

If you need help with the Methods/Objects I have written, you can take a look at MSDN Library for the MapPoint Visual Basic Reference at: http://msdn.microsoft.com/library/de...MMMoveNext.asp

Have fun!
Reply With Quote