MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




find mileage using two zipcodes onlh

This is a discussion on find mileage using two zipcodes onlh within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Is it possible to find the mileage by using only a zipcode for starting point and then use a zipcode ...


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 07-05-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
find mileage using two zipcodes onlh

Is it possible to find the mileage by using only a zipcode for starting point and then use a zipcode for destination.
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 07-08-2003
Junior Member
White Belt
 
Join Date: Jun 2003
Posts: 11
Finding mileage with zip codes only..

If you are using a city, postal code or place doesn't matter. You will always get a location object back that you can use to get your distance.

An example (Use a form with a MapPoint OCX, a textbox, a listbox and two commandbuttons where Command1 calculates the route and Command2 clear the route):
-------------------------------------------------
Dim MyRoute As MapPointCtl.Route

Private Sub Command1_Click()
If Not MyRoute Is Nothing Then
If MyRoute.Waypoints.Count > 1 Then
MyRoute.Calculate
Else
MsgBox "Need more Waypoints!", vbExclamation
End If
End If
End Sub

Private Sub Command2_Click()
Me.List1.Clear
MyRoute.Clear
Me.MappointControl1.ItineraryVisible = False
End Sub

Private Sub Form_Load()
Me.MappointControl1.NewMap MapPointCtl.geoMapEurope
Set MyRoute = Me.MappointControl1.ActiveMap.ActiveRoute
End Sub

Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
Dim MyMap As MapPointCtl.Map
Dim MyResult As Object

Set MyMap = Me.MappointControl1.ActiveMap
If KeyCode = KeyCodeConstants.vbKeyReturn Then
Set MyResult = MyMap.ShowFindDialog(Me.Text1.Text)
If Not MyResult Is Nothing Then
If MyResult.Name > " " Then
Me.List1.AddItem MyResult.Name
MyRoute.Waypoints.Add MyResult, MyResult.Name
Me.Text1.Text = ""
End If
End If
End If
End Sub
-----------------------------------

/Joakim Tornhill
SpedSoft AB
http://www.spedsoft.se
__________________
SpedSoft AB has been working with MapPoint since version 2000 and have the longest experience in Sweden on MapPoint.
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
find, mileage, onlh, zipcodes


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
zipcodes Anonymous MapPoint 2006/2009 Discussion 1 02-16-2005 08:31 AM
Creating Mileage Charts ekrupa MapPoint 2006/2009 Discussion 2 11-30-2004 08:37 AM
Mileage Chart mpnewb MapPoint 2006/2009 Discussion 3 09-07-2004 07:32 AM
mileage report for employees Anonymous MapPoint 2006/2009 Discussion 0 02-11-2004 06:34 AM
Retrieving mileage & time EJBATL MapPoint 2006/2009 Discussion 0 06-30-2003 02:20 PM


All times are GMT -5. The time now is 07:59 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

Niederau Skiing
For a picturesque and family friendly atmosphere, experience Niederau skiing holidays. Book online at Holiday Hypermarket to find fantastic low prices.

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

Jamaica Holidays
Jamaica Holidays can include world class business hotels, upscale shopping and top entertainment and dining. Alternatively, hit the beach or hike in the hills. Book online with us.

Egypt Holidays
Visit one of the most spectacular sightseeing destinations in the world with The Holiday Place. Egypt holidays provide a fantastic break!

Egypt
In Egypt you find an ancient city buzzing with life. There is an abundance of historical sites to see, not just the pyramids. The Opera House is certainly worth a visit and you can enjoy some open-air theatre too.

Price Comparison
Price comparison is the name of the game at Travel.co.uk. Visit our website and see for yourself.

Cheap Holidays in Florida
Legendary weather! Visit On The Beach for info on cheap holidays in Florida.


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