MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Get new Lat & Lon from speed

This is a discussion on Get new Lat & Lon from speed within the MapPoint 2006 Discussion forums, part of the Map Forums category; Hello, Any one wants to share knowledge regarding how to get new latitude and longitude from speed after defining default ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices


Click here to register

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 5 Days Ago
Junior Member
Yellow Belt
 
Join Date: Mar 2008
Posts: 27
Get new Lat & Lon from speed

Hello,
Any one wants to share knowledge regarding how to get new latitude and longitude from speed after defining default latitude and longitude. As in mine case I am not using GPS hardware just make pushpin as random and placing it in loop so that it will act as moving on map.
Hope to hear from you guys.
Regards.
Gul
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 5 Days Ago
Eric Frost's Avatar
Administrator
Black Belt
 
Join Date: Jul 1992
Posts: 2,172
Blog Entries: 1
Re: Get new Lat & Lon from speed

I'm not sure I understand.. you want to get a new position based on the speed (and direction ?) and starting position?

Eric
__________________
Order MapPoint 2006 | Read Programming MapPoint in .NET | Start Using the Pushpin Tool - Free Trial Download - click here.
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 5 Days Ago
Junior Member
Yellow Belt
 
Join Date: Mar 2008
Posts: 27
Re: Get new Lat & Lon from speed

Well I have lat & lon as inputs and I want to calculate how much lat & lon has to change when a object is moving with a defined speed. Only the direction will be random in this case so that it will act as mine pushpin keep on moving.
Regards..
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 5 Days Ago
Eric Frost's Avatar
Administrator
Black Belt
 
Join Date: Jul 1992
Posts: 2,172
Blog Entries: 1
Re: Get new Lat & Lon from speed

Does the pushpin need to stay on the road network? Or just move in a different random direction say every second?

Eric
__________________
Order MapPoint 2006 | Read Programming MapPoint in .NET | Start Using the Pushpin Tool - Free Trial Download - click here.
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 5 Days Ago
Junior Member
Yellow Belt
 
Join Date: Mar 2008
Posts: 27
Re: Get new Lat & Lon from speed

Yes it keeps on moving (specified interval,u can say 1 sec) after getting randomly speed which will keep on adding with input latitude & longitude.
thanks.
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 5 Days Ago
Eric Frost's Avatar
Administrator
Black Belt
 
Join Date: Jul 1992
Posts: 2,172
Blog Entries: 1
Re: Get new Lat & Lon from speed

The speed is random or the direction is random or both?
__________________
Order MapPoint 2006 | Read Programming MapPoint in .NET | Start Using the Pushpin Tool - Free Trial Download - click here.
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 5 Days Ago
Junior Member
Yellow Belt
 
Join Date: Mar 2008
Posts: 27
Re: Get new Lat & Lon from speed

As per ys
Code:
          The speed is random or the direction is random or both?
i want both.
Well in mine mind I will get ground speed from NMEA(GPRMC), and it will place in random then add it in both Lat & Lon so that it will keep on changing the speed randomly and because of this direction will change.... am I right.
Or you have some better idea.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 5 Days Ago
Eric Frost's Avatar
Administrator
Black Belt
 
Join Date: Jul 1992
Posts: 2,172
Blog Entries: 1
Re: Get new Lat & Lon from speed

I'm sorry.. I still don't get it. So you're getting actual speed from NMEA(GPRMC) or a device, but you don't want to plot an actual position.. just have it move randomly at that speed, changing direction every second?

I guess it might help to take a step back and explain the purpose of what you are trying to do..

Eric
__________________
Order MapPoint 2006 | Read Programming MapPoint in .NET | Start Using the Pushpin Tool - Free Trial Download - click here.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 5 Days Ago
Junior Member
Yellow Belt
 
Join Date: Mar 2008
Posts: 27
Re: Get new Lat & Lon from speed

Well let you describe from start. I want to develop an application which don't use hardware. In mine project i have inputs for Latitude & Longitude. I want to show it on map as random like moving object and calculate how much lat & lon has to change when a object is moving with a defined speed, Only the direction will be random(like moving onject). (its more like data comes from original GPS but in this i am not using GPS hardware, just act as dummy).
Code:
In mine mind i think if i will set some default speed in the beginning with lat & lon, it keeps on showing me next position if i will use 
random(input speed);
 so what do u think about it.
Nasir
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 5 Days Ago
Eric Frost's Avatar
Administrator
Black Belt
 
Join Date: Jul 1992
Posts: 2,172
Blog Entries: 1
Re: Get new Lat & Lon from speed

Is it supposed to be a vehicle on the road network? Or a creature like a bird that could just fly anywhere?

What country or what part of the world are you working it? In the U.S., one degree of longitude is roughly equal to 50 miles or 80 km, and a degree of latitude is equal to 65 miles or 105 km.

It would be rough, but with some simple math and the Pythagorean theorem you could calculate how much to modify lat/lon each second for a particular speed and direction.

How far did you get with your code, what do you need help with specifically?

Eric
__________________
Order MapPoint 2006 | Read Programming MapPoint in .NET | Start Using the Pushpin Tool - Free Trial Download - click here.
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/get-new-lat-lon-speed-7671.html

Posted By For Type Date
Formatting Coordinates with DmsFormat - MapPoint Articles - MP2K Magazine This thread Refback 2 Days Ago 09:29 AM

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
How do I speed up this code? RichardD MapPoint 2006 Discussion 5 11-18-2005 10:55 AM
Open Map Speed Yazzy MapPoint 2006 Discussion 1 06-27-2005 10:52 AM
Speed of the service sbedin MapPoint Web Service and Virtual Earth 0 12-21-2004 10:13 AM
Excel VBA or VB6 For Speed DavidP MapPoint 2006 Discussion 3 08-14-2004 05:50 PM
Speed Print out Anonymous MapPoint 2006 Discussion 0 12-26-2003 04:54 AM


All times are GMT -5. The time now is 12:33 AM.


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

Ski Holidays Bulgaria
Ski holidays in Bulgaria offer beautiful scenery, friendly locals and exceptionally low prices. Book at Holiday Hypermarket for great value ski holidays.

Business Travel Agent
Book your business travel with a specialist business travel agent. Travel Counsellors are an award winning travel agent.

Holiday Jamaica
What springs to mind when you hear the word Jamaica? Bob Marley and Rum? Think again. Book a low cost holiday in Jamaica to explore this island for yourself.

St Lucia Holidays
St Lucia holidays offer something for everyone. Enjoyed by families and young couples alike, St Lucia is a great destination. See online!

Spain
Spain is such a diverse country that it has something to offer most holidaymakers. Finding delicious cuisine is no challenge and the shopping ranges from designer boutiques to unknown flea markets. Spain has much to offer.

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

Cheap holidays in Cyprus
Stunning coastline! Beautiful beaches! Cheap holidays in Cyprus, available 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