Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Contributor
MB24
Posts: 20
Registered: 07-06-2011
My Carrier: BB Developer
Accepted Solution

Getting incorrect GPS location in blackberry

Hi,

 

I developed a GPS based blackberry application. When i use this application on road in clear sky, some times it gives me location ahead of my location. In result of this i get wrong track on google map.

 

 

Please Help.

Thanks in Advance.

Please use plain text.
Contributor
MB24
Posts: 20
Registered: 07-06-2011
My Carrier: BB Developer

Re: Getting incorrect GPS location in blackberry

Please help as i am not getting any solution of it. Its urgent.

Please use plain text.
Developer
RexDoug
Posts: 4,649
Registered: 07-21-2008

Re: Getting incorrect GPS location in blackberry

Yes - it happens.

 

My best advice is that you need to do some filtering of  the locations, discarding the occasional "flyer".

 

Please use plain text.
Contributor
MB24
Posts: 20
Registered: 07-06-2011
My Carrier: BB Developer

Re: Getting incorrect GPS location in blackberry

Hi Rex Doug,

 

Thanks for your reply.

How can i implement filtering of locations and discard occasional "flyer"?

Please use plain text.
Developer
RexDoug
Posts: 4,649
Registered: 07-21-2008

Re: Getting incorrect GPS location in blackberry

I guess that's probably pretty specific to your application.

 

However, if you are taking (for example) a reading every 10 seconds, and you get a reading that is 10 miles from your last known location, then obviously this location should be discarded.

 

 

Please use plain text.
Contributor
MB24
Posts: 20
Registered: 07-06-2011
My Carrier: BB Developer

Re: Getting incorrect GPS location in blackberry

I got your point and will try it.

Is it possible that After a long run, GPS starts returning coordinates of old location while current location has been changed in blackberry 5.0.

Please use plain text.
Developer
peter_strange
Posts: 14,614
Registered: 07-14-2008

Re: Getting incorrect GPS location in blackberry

I can't say that I have had that specific occurrence, but it definitely is possible to get weird results after a period.  You do to check what is going on and make sure that your location providers status still remains OK.  Restarting form time to time doesn't hurt either, if actual location is more important than battery life. 

Please use plain text.