MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Programatically plot a route based on GPS position

This is a discussion on Programatically plot a route based on GPS position within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Using the mappoint OCX want to route based on current GPS position and a given address. In fact, if I ...


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 12-12-2005
Junior Member
White Belt
 
Join Date: Dec 2005
Posts: 9
Programatically plot a route based on GPS position

Using the mappoint OCX want to route based on current GPS position and a given address. In fact, if I could show the current position based on GPS coordinates on the map that would be swell too. I am using the OCX so this must be done programatically. Any suggestions?
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 12-13-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

You receive position then place a pushpin on the map like following example:

Code:
            Location loc = mp.ActiveMap.GetLocation(lat, lon, 1);
            Pushpin pp  = mp.ActiveMap.AddPushpin(loc, vehicleName);
            pp.Symbol = 1;
Eventually you add note:

Code:
            pp.Note = vehicleName + otherInfo;
Eventually you change ballonstate:

Code:
            PP.BalloonState = GeoBalloonState.geoDisplayName;
            pp.BalloonState = GeoBalloonState.geoDisplayBalloon;
            pp.Highlight = true;
Eventually you zoom to vehicle with one of following:

Code:
            PP.GoTo();
            mp.ActiveMap.GoToLatLong(lat, lon, alt);
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 12-13-2005
Junior Member
White Belt
 
Join Date: Dec 2005
Posts: 9
The question is, how do I receive position?
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 12-13-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

This is fast reply

I dont really understeand. You can programmaticly put positions on map. You receive postion can in various ways, but this is enterly depending on your application.

For example if you want to have a dispatch centre with whole fleet, then you must write a server getting all positions of the fleet. This can be done with GSM's or with boardcomputers, etc. There are GSM that can send a GPS position.

Some GSM providers (not all) also have a service to give the position of it. That's what mappoint location server make use off. But not all GSM providers have that service.

Please tell me some more of your application so that we able to help more.
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 12-13-2005
Junior Member
White Belt
 
Join Date: Dec 2005
Posts: 9
Okay sorry what I am wondernig is how am I going to get the current lattitude and longitude out of my GPS receiver. BTW, I am using the Pharos BT GPS Rx.

My application is very simple, I only want to be able to plot a route based on one's current GPS position to a given address.

Does that make sense?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 12-14-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

I cannot give code example because I do not have PC based application to get positions out of GPS receiver.

But it is very simple. Program your GPS receiver to give GGA or RMC strings, just parse it and give the coordinates to 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
based, gps, plot, position, programatically, route


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
MapPoint to Gif Programatically Anonymous MapPoint 2006/2009 Discussion 5 03-17-2004 08:32 AM
Programatically adding push pins on a route Fabian MapPoint 2006/2009 Discussion 2 07-17-2003 03:52 PM
With MP2K does anyone know how to programatically .... Anonymous MapPoint 2006/2009 Discussion 1 07-29-2002 06:19 AM
Is there a way to programatically switch the mouse.... Anonymous MapPoint 2006/2009 Discussion 2 07-19-2002 09:14 AM
How does one programatically in VB present anoutli.... Anonymous MapPoint 2006/2009 Discussion 1 08-07-2001 01:13 PM


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

Florida Holiday
Book your Florida holiday through UlookUbook and save cash!



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