MapPoint Forums

MapForums

Community of VE/MapPoint 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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #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,055
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,055
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,055
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


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 06:30 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

Gatwick Flights
Find out key information about Gatwick airport on Holiday Hypermarket. We can help book great value flights to and from Gatwick as well.

Travel Agent UK
Travel Counsellors was named UK's Best Travel Agent at the Guardian Unlimited travel awards. Whatever your travel needs we can help.

Cheap Flights to Cape Town
Here at dealchecker.co.uk we’ll shop around for cheap flights to Cape Town so you don’t have to. Find and Compare prices from over twenty UK travel agents with just one search.

Holidays to Barbados
Holidays to Barbados have so much to offer. Enjoy the beauty of this Caribbean island for less by booking your holiday through us.

Cheap Turkey Holidays
The best time of year to sneak in cheap Turkey holidays is during the off-peak season. Check out the great deals available during April, May or October. For other tips on how to bag a great value holiday simply check online at ulookubook.com

Cheap holiday comparison
Travel.co.uk is a comparison service which makes it easy to search and find your cheap holiday options.

Cheap Fuerteventura Holidays
Enjoy the deep sands of the Canary Islands. Find cheap Fuerteventura holidays 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