Community of MapPoint and Bing Maps Users and Developers
This is a discussion on Programatically plot a route based on GPS position within the MapPoint Desktop 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 ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Programatically plot a route based on GPS position |
| |||
|
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;
Code: pp.Note = vehicleName + otherInfo; Code: PP.BalloonState = GeoBalloonState.geoDisplayName;
pp.BalloonState = GeoBalloonState.geoDisplayBalloon;
pp.Highlight = true;
Code: PP.GoTo();
mp.ActiveMap.GoToLatLong(lat, lon, alt);
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz www.comfortsoftware.be MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
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.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz www.comfortsoftware.be MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
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? |
| |||
|
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.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz www.comfortsoftware.be MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| based, gps, plot, position, programatically, route |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MapPoint to Gif Programatically | Anonymous | MapPoint Desktop Discussion | 5 | 03-17-2004 08:32 AM |
| Programatically adding push pins on a route | Fabian | MapPoint Desktop Discussion | 2 | 07-17-2003 03:52 PM |
| With MP2K does anyone know how to programatically .... | Anonymous | MapPoint Desktop Discussion | 1 | 07-29-2002 06:19 AM |
| Is there a way to programatically switch the mouse.... | Anonymous | MapPoint Desktop Discussion | 2 | 07-19-2002 09:14 AM |
| How does one programatically in VB present anoutli.... | Anonymous | MapPoint Desktop Discussion | 1 | 08-07-2001 01:13 PM |