MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Finding addresses within drivetime zone

This is a discussion on Finding addresses within drivetime zone within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am an amateur programmer in VB and am pretty proficient in database design and programming in SQL. I also ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-09-2006
Junior Member
White Belt
 
Join Date: Jan 2006
Posts: 2
Finding addresses within drivetime zone

I am an amateur programmer in VB and am pretty proficient in database design and programming in SQL. I also do some website design. I am currently working on a project for a restaurant delivery business and recently purchased mappoint.

I generated a drive time zone and am currently working on refining the delivery area. What I need to do now is to create a program that can be used to verify if an address is within the delivery area. I see two solutions to this:

1) Simply have the program generate a pushpin at the delivery location and then generate coordinates to see if they are within the delivery zone.

2) Generate a database/spreadsheet of all street address ranges within the delivery zone.

I found one post discussing this, but it didn't go into enough detail. Here are the pro's and con's I see with each solution:

1) Pros: It would be easy to update. It would be rather accurate. Cons: I don't know anything about programming in mappoint. I would have to have mappoint running on each computer running the program. I would either have to integrate mappoint into the ordering software (meaning it couldn't be used without it, unless I wrote code to go around it) or I would have to write an entirely seperate program to do the calculation and then intergrate that into my ordering software.

2) Pros: I know how to work with DBs rather well. I can simply keep the DB on the systems running my order software and not need mappoint. I could also keep a printed list of all street numbers in a delivery area. Cons: It would require me to regenerate the DB if the delivery area is changed.

I would really like to go with option 2 since it would be easier on myself. So, is there a way to export a list of all address ranges in a selected area? If not, what information (book or articles on here) do I need to read to be able to use mappoint in my VB projects.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-09-2006
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 847
Blog Entries: 7
I think you're going to be out of luck. MapPoint could export all pushpins within a polygon, but not all addresses. Assuming this was possible, I doubt it would be allowed in the EULA. The EULA or api tend to restrict large data extraction due to data licensing issues.

Also, there's quite a bit of evidence that MapPoint does not store the location of every single address - instead it only stores basic street number info. Eg. "houses on this side of the road run from A to B between these two locations". So the houses would appear to be evenly spaced and not take into account gaps, fields, etc.


Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 01-09-2006
Junior Member
White Belt
 
Join Date: Jan 2006
Posts: 2
I didn't think that it was going to be possible to export all the data. However I think most street number data that is stored by blocks (within metro areas anyway) so I think it would be fairly accurate.

So.... That leaves option number one. Where do I need to get started reading to learn how to have my apps interact with MapPoint? Any tutorials online or should I buy a book?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 01-09-2006
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 847
Blog Entries: 7
The Help that comes with MapPoint 2004 is actually a pretty good start - you say you know VB already, so it should be easy enough. The main gotchas involve things like recordsets and variants - all things you will already be familiar with (the documentation assumes you know about certain things in VB).

This site has quite a few articles about performing different actions.
Then there are two books. The latest is Chandu Thota's "MapPoint in .NET" book in the O'Reilly series. Eric Frost (owner of this site) has some for sale. This has just been published. Don't be discouraged by the title, it also covers the desktop version of MapPoint.

The other book in existence is the "MapPoint for Dummies" book. It is based on the 2002 version and only gives an introduction to the api. On the positive side, the api has barely changed between 2002 and 2004. 2006 should also be backwards compatible when it is released.


Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
addresses, drivetime, finding, zone


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
drivetime zone export problems Anonymous MapPoint 2006/2009 Discussion 4 06-18-2003 03:00 AM
export drivetime zone Anonymous MapPoint 2006/2009 Discussion 1 05-19-2003 09:25 AM
Exporting Drivetime Zone coordinates karlski MapPoint 2006/2009 Discussion 2 01-07-2003 05:23 PM
Find all zip codes in a drivetime zone SolverDS MapPoint 2006/2009 Discussion 0 09-28-2002 12:40 PM
Find all zip codes within drivetime zone SolverDS MapPoint 2006/2009 Discussion 0 09-28-2002 12:39 PM


All times are GMT -5. The time now is 07:32 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

MyTravel Flights
Book MyTravel Holidays At Holiday Hypermarket. MyTravel arranges flights and accommodation for great value to great destinations.

Travel Counsellors
Travel Counsellors are an award winning Travel Agent. Have a personal Travel Counsellor help with your travel plans.

Holidays Jamaica
Holidays to Jamaica are a great way to immerse yourself in a different culture. Soak up some sun, indulge in some shopping, and relax at a beach resort. Use dealchecker.co.uk.

Holidays in Cyprus
Holidays in Cyprus are enriched by the abundance of churches, ruins and natural wonders. Book a holiday with us today!

Spain
Spain is such a diverse country that it has something to offer most holidaymakers. Finding delicious cuisine is no challenge and the shopping ranges from designer boutiques to unknown flea markets. Spain has much to offer.

Air Travel
Interested in air travel? Search and compare millions of holidays, flights and hotels with our help at Travel.co.uk

Cheap Sharm el Sheikh Holidays
Visit the Red Sea Riviera! Info on cheap Sharm el Sheikh holidays, found at On The Beach.


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