MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




street address from lat/lon... VB style

This is a discussion on street address from lat/lon... VB style within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Like an earlier post, I need to derive the street address from the Lat/Lon coordinates on a map. However, I ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-28-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
street address from lat/lon... VB style

Like an earlier post, I need to derive the street address from the Lat/Lon coordinates on a map. However, I am strictly a VB kinda guy, and C# is just Greek to me.

MapPoint has this neat feature where you can click on a street and the street address will just pop right up. Is there no means for just programmatically utilizing this function with the MapPoint VB control? I've worn out my eyes and fingers looking for a way to do this. Since the functionality is there within MapPoint, it seems like it ought to be available.

Any help will be greatly appreciated.
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 04-28-2005
Junior Member
White Belt
 
Join Date: Apr 2005
Posts: 2
I know this answer is out there, because I found it once and use it quite a bit. I wrote code that automatically displays the current address in a label as you move the mouse over the map.

Don't have time to get to it today, but if you don't get an answer, email me at chet@chetcromer.com and I'll help you out.

Chet
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 04-28-2005
Junior Member
Yellow Belt
 
Join Date: Jun 2004
Posts: 15
here is some code i use in vb5/6. as the mouse is moved around the map the Lat (lblLat), Lon (lblLon) and address (lblWhere) are displayed

Private Sub ctlMap_MouseMove(ByVal button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long)
Dim objMouseLoc As mappoint.Location
Dim objMouseResults As mappoint.FindResults
Dim latlon As LatLonType
Dim index As Integer

Set objMouseLoc = objCallMap.XYToLocation(X, Y)
If Not objMouseLoc Is Nothing Then
latlon = calcpos(objCallMap, objMouseLoc)
lblLat.caption = Format(latlon.Lat)
lblLon.caption = Format(latlon.Lon)

Set objMouseLoc = Nothing
Set objMouseResults = objCallMap.ObjectsFromPoint(X, Y)
lblWhere = ""
If objMouseResults.count > 0 Then

If Not (objMouseResults.item(1).Location.StreetAddress) Is Nothing Then
lblWhere = "Mouse is at: " & objMouseResults.item(1).Location.StreetAddress.Str eet
Else
lblWhere = ""
End If

Else
lblWhere(1) = ""
End If
Set objMouseResults = Nothing
End If
Exit Sub

My 'Calcpos' routine is based on the Calcpos routine found in the articles section of this site. It returns LatLon from a mappoint location. I modified it to use a typed variable LatLon

Public Type LatLonType
Lat As Double
Lon As Double
H As Double
End Type
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 06-09-2005
Junior Member
White Belt
 
Join Date: Feb 2004
Posts: 8
your CalcPos code

can you provide a link to your CalcPos variation or can you post it?

Thanks,

John
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


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
Mapping Southern Ireland Street Address Yazzy MapPoint 2006/2009 Discussion 5 01-15-2006 03:02 PM
Has anyone got street address with MapPoint Euro 2004? Anonymous MapPoint 2006/2009 Discussion 8 02-09-2005 08:13 AM
Getting 'second' street address Anonymous MapPoint 2006/2009 Discussion 1 05-06-2004 09:31 AM
GeoRoadType from Street Address Anonymous MapPoint 2006/2009 Discussion 0 01-25-2004 05:22 AM
street address limit bob MapPoint 2006/2009 Discussion 5 11-04-2003 07:51 AM


All times are GMT -5. The time now is 12:29 AM.


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

Flight Deals
Book a holiday bargain online. Check out the latest fantastic flight deals. Holiday Hypermarket works with the leading Tour Operators to find the best flight deals available.

Cruise Travel Agent
Book your cruise with Travel Counsellors. We are an award winning travel agent and can help plan your perfect cruise.

Holiday to Thailand
Want to go somewhere new? Book a low cost holiday to Thailand at dealchecker.co.uk. See the stunning national parks and uninhabited islands.

Holidays to Jamaica
Holidays to Jamaica are about taking things easy. Forget your watch and chill out beneath the clear Jamaican sky.

Cheap Cyprus Holidays
Finding cheap Cyprus holidays can be difficult unless you know where to look and where to book. With ulookubook.com you can conduct a simple search to find the latest holiday deals to your particular destination.

Price comparison sites
Travel.co.uk is the one you are looking for when checking out price comparison sites.

Holidays in Fuerteventura
Need a break? Go to the Canary Islands! Find information on holidays in Fuerteventura 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