MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Showing GPS position?

This is a discussion on Showing GPS position? within the Development forums, part of the MapPoint 2006/2009 Discussion category; Hey all me again So I want (in my castom app) to show my curent GPS position and keep updating ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 04-04-2008
Junior Member
White Belt
 
Join Date: Jun 2007
Posts: 10
Question Showing GPS position?

Hey all
me again
So I want (in my castom app) to show my curent GPS position and keep updating it as I move along... is there any ready code for it or should i just get LAT LOng and refreshe pin position every half second? seams crapy isea to me ... will use too much resources... there should be some better way

any ideas ?
tnx
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-05-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,017
Re: Showing GPS position?

Hi,

This is the way to go. Not much recourses, you can move the pushpin every time.
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-05-2008
Junior Member
White Belt
 
Join Date: Jun 2007
Posts: 10
Re: Showing GPS position?

damn, MS could of do the better job....
Do you know if there are any potrntial memory leaks if I will apdate location of the pushpin with the rate that GPS sends its data? its like 10 times a sec...

Also kind of similar question if I have pushpin with the sahpe of the triangle how can I rotate it to show the direction of the movement and how can I highlight the road where I have drove? Does MP supports vector overlies like google maps?
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 04-06-2008
Junior Member
White Belt
 
Join Date: Jun 2007
Posts: 10
Re: Showing GPS position?

well there is definetly some memory leaks in the code that i made, but its only creationg and focusing on the pin

When i start my gps app my app takes 0-1% of cpu and about 8mb of ram, while mappoint object takes 35% CPU and 35mb of ram, but over 5 hours of ime that changed too 100% of cpu and 400mb of ram while my app (the core) doesnt take anything
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 04-07-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,017
Re: Showing GPS position?

Hi,

Quote:
Do you know if there are any potrntial memory leaks if I will apdate location of the pushpin with the rate that GPS sends its data? its like 10 times a sec...
I think it is better to update once a second.

Quote:
Also kind of similar question if I have pushpin with the sahpe of the triangle how can I rotate it to show the direction of the movement
You can add some bitmaps that indicates the direction and use them depending on current direction.

Quote:
how can I highlight the road where I have drove?
You cannot, but you can connect each position with a line, highlight line or an arrow line in color of your choice.

Quote:
Does MP supports vector overlies like google maps?
no.
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 04-07-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,017
Re: Showing GPS position?

Hi,

Quote:
Originally Posted by alexus View Post
well there is definetly some memory leaks in the code that i made, but its only creationg and focusing on the pin

When i start my gps app my app takes 0-1% of cpu and about 8mb of ram, while mappoint object takes 35% CPU and 35mb of ram, but over 5 hours of ime that changed too 100% of cpu and 400mb of ram while my app (the core) doesnt take anything
Do you see the same behavour if you update once a second? Do you use 1 pushpin or do you use a pushpin per position? The latter will eat more memory of course. For the former you can move pushpin, not create a new one each time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 04-07-2008
Junior Member
White Belt
 
Join Date: Jun 2007
Posts: 10
Re: Showing GPS position?

I didnt try to set 1 sec pdates yet (I just didnt figure out the methods how to deley the data, well more likelly skop some data)

As to pushpin I just changing its location, I have initiated the pin separatly
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


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/showing-gps-position-7419.html

Posted By For Type Date
Programming MapPoint via .NET - MapPoint Articles - MP2K Magazine This thread Refback 04-08-2008 06:30 PM
Spatial Data Importer Contest Submission - MP2K Magazine This thread Refback 04-06-2008 08:31 PM

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
Is there any way to get pushpin's position after zoom or pan manav MapPoint 2006/2009 Discussion 4 05-01-2006 11:11 PM
Is there any way to get pushpin's position after zoom or pan manav MapPoint Web Service and Virtual Earth 0 05-01-2006 11:07 PM
get streetname from a position Anonymous MapPoint 2006/2009 Discussion 0 11-15-2004 01:27 PM
GPS position check Anonymous MapPoint 2006/2009 Discussion 14 01-19-2004 01:00 AM
How to get the Zip code of any position on the map.... Anonymous MapPoint 2006/2009 Discussion 1 02-28-2002 06:52 PM


All times are GMT -5. The time now is 05:13 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
MP2K Magazine
Visitor Map

Cheap Flights to Brussels
Book cheap flights to Brussels online today. Brussels is a city with diverse culture with over 100 museums to visit and an array of different architectural designs to view.

Spain Weather
Check Spain Weather before you travel. We provide information on Spain including weather, flights and accommodation.

Cheap Holiday Turkey
Booking a cheap holiday to Turkey doesn't have to be at the expense of enjoyment. Dealchecker.co.uk searches holidays from the leading UK Tour Operators.

Egypt Holidays
Visit one of the most spectacular sightseeing destinations in the world with The Holiday Place. Egypt holidays provide a fantastic break!

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 Travel
Travel.co.uk has some excellent offers on cheap travel. Click here.

Cheap Holidays to Goa
Dine on delightful seafood in west India. Find information on cheap holidays in Goa 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