• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Location API - JSR 179

 
Kamal Trivedi
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to create an application which provides "Current Location" information.

There are 2 way's to move ahead.

1) By using Location API in mobile.

Drawback:- After doing R&D , i conclude that :- Very less phones support Location API & difficult to test on Emulator.

2) By using Server-Client Architecture

Which API to use which gives me current mobile location to Server .The server checks the client co-ordinates & provide detail information to mobile.

My Question:-

-> Which is the best way to proceed. ?
-> How to proceed ?

I am totally confused.Please throw some light.
Also provide some good link,if possible


Thanks
Greenhorns
 
Tim Holloway
Saloon Keeper
Posts: 18359
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like your second solution is to use trilateration to get the mobile device location from the phone service provider.

Unfortunately, there is no universal solution. There's no standard location service API for trilateration. It's a feature totally up to the service provider. The API provided will vary, license fees apply, and in at least one case, location accuracy is only guaranteed to about 1 km. And, if you're in a "dark" area for that service provider (no cell towers in range), you'll get no location information at all.

JSR-179 is generally better, but, as you've noted, not all mobile devices support it. Then again, not all mobile devices support Java. If you could limit yourself to a single vendor, last I heard, Nokia was pretty well committed to providing true GPS location services on all its new models.

At the other extreme, I know of at least 2 vendors who actually disable the phone's GPS hardware on certain models.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic