MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Is there way to check if you're on a road

This is a discussion on Is there way to check if you're on a road within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi. Thanks wilfred for your reply. It leads me to another problem, how would you check with map point 2004 ...


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

Today's Posts Twitter Feed 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-04-2005
Junior Member
White Belt
 
Join Date: Nov 2004
Posts: 5
Is there way to check if you're on a road

Hi.

Thanks wilfred for your reply.

It leads me to another problem, how would you check with map point 2004 if your pushpin is on a road? what kind of object is it?....i've been scouring the mappoint visual basic refernece on MSDN and can't find a single thing about it.

Omair
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-05-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi Omair,

This should do it:

Code:
        public bool IsOnStreet(Map M, double Lat, double Lon)
        {
            Location Loc;
            FindResults StreetResults;

            Loc = M.GetLocation(Lat, Lon, 1);

            StreetResults = M.ObjectsFromPoint(M.LocationToX(Loc), M.LocationToY(Loc));

            foreach (object o in StreetResults) {
                Location StreetLoc = o as Location;
                if (StreetLoc != null && StreetLoc.StreetAddress != null)
                    return true;
            }
            return false;
        }
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
check, road


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
Check out if GPS pos is on a Route kristijan MapPoint 2006/2009 Discussion 11 04-19-2006 10:46 AM
Sanity Check Please......Pushpin help EdB MapPoint 2006/2009 Discussion 2 02-22-2005 07:44 AM
need to check accuracy of MP2004 jaharris67 MapPoint 2006/2009 Discussion 0 09-15-2004 11:28 PM
How do I check to see if there is mappoint installed on a sy dew1969 MapPoint 2006/2009 Discussion 3 02-18-2004 10:05 AM
GPS position check Anonymous MapPoint 2006/2009 Discussion 14 01-19-2004 01:00 AM


All times are GMT -5. The time now is 03:22 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Antalya Holiday
Check out the Antalya holiday options through UlookUbook and find amazing offers that suit your pocket...



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 53 54 55 56 57 58 59