LBSzone - Bringing you the buzz on Location-Based Services

About | Contact | Advertise | FAQ | Site Map
Get The LBSzone Alert Newsletter
LBSzone Mobile
HomeArticlesNewsGlossaryLinksGISBlogEventsNewsletterRSSJobsPhotosDIRECTORYTwitterIMAGING
Symbian S60 | iPhone | Android | Blackberry | *Competitions*  


advertisement



Top LBS News

Top LBS news!
Symbian Completes Biggest Open Source Migration Ever


Submit Your "LBS" News to us

LBSzone linkedin grouplbszone on facebooklbszone twitter

Twitter Button from twitbuttons.com


Reader survey
Which Social Service Do You Use?


Featured LBS Events

where2.0
15% Discount: whr10lbs


LBS App of The Week
Visit our iPhone Zone

LBSzone app of the week


LBSzone Sponsor


LBS Tech Webinar

Planning an event? Feature your webinar here
webinar
Register for a Webinar now!


Recent LBSzone updates

LBS Topics

LBSzone Blogroll
GetJava Download Button

Connect and Share
Home     


Welcome to the LBSzone... (est. 2003) Delivering information on Location and Location-Aware Social Networking - THE resource for technology professionals interested in Location-Based services (LBS) and location technologies including geo-positioning, GPS, RFID, map mashups, PNDs, social networking, local search, WiFi, Open source, and related technologies and services. LBS updates are distributed each week in the LBSZone Alert Newsletter

iphone
iPhone LBS Zone

blackberry
Blackberry LBS Zone

nokia n95 S60 smartphone
S60 LBS Zone

google android g1
Android LBS Zone

TripTracker from Pageonce Takes off on iPhone a handy app for the frequent traveller

Glide OS Launches Rights Based Business and Social Networking Application 

Ovi Maps available for Nokia N97 users  Finally the N97 gets maps!

Seesmic Twitter Client for Android Mobile OS- a great new app for Twitter connect via Android

Is Location enabled Social Location and Check in Getting Boring? - I've seen many of my contacts falling off in use and I’m also questioning myself as to why I'm taking the effort to share my information and even crowd-source data for companies so they can build their data holdings, eventually selling off their assets to another company willing to pay huge $$ for this information.

Social Location Feature - Twitter & GeoAPI's Great Land Rush Of 2010


Recent LBS News


J2ME and Location-Based Services PDF Print E-mail
Written by Qusay H. Mahmoud   
Tuesday, 05 July 2005

This article introduces you to the field of LBS and to the Location API for J2ME (JSR 179), a set of generic APIs that can be used for developing location-based services. In addition, the article offers guidelines for designing location-based services. 

This article reprinted with permission by java.sun.com

Location-based services (LBS) provide users of mobile devices personalized services tailored to their current location. They open a new market for developers, cellular network operators, and service providers to develop and deploy value-added services: advising users of current traffic conditions, supplying routing information, helping them find nearby restaurants, and many more.

 

What Location-Based Services Do

Location-based services answer three questions: Where am I? What's around me? How do I get there? They determine the location of the user by using one of several technologies for determining position, then use the location and other information to provide personalized applications and services. As an example, consider a wireless 911 emergency service that determines the caller's location automatically. Such a service would be extremely useful, especially to users who are far from home and don't know local landmarks. Traffic advisories, navigation help including maps and directions, and roadside assistance are natural location-based services. Other services can combine present location with information about personal preferences to help users find food, lodging, and entertainment to fit their tastes and pocketbooks.

There are two basic approaches to implementing location-based services:

  1. Process location data in a server and deliver results to the device.
  2. Obtain location data for a device-based application that uses it directly.

This article focuses on device-based location services.

Determining the Device's Location

To discover the location of the device, LBS must use real-time positioning methods. Accuracy depends on the method used.

Locations can be expressed in spatial terms or as text descriptions. A spatial location can be expressed in the widely used latitude-longitude-altitude coordinate system. Latitude is expressed as 0-90 degrees north or south of the equator, and longitude as 0-180 degrees east or west of the prime meridian, which passes through Greenwich, England. Altitude is expressed in meters above sea level. A text description is usually expressed as a street address, including city, postal code, and so on.

Applications can call on any of several types of positioning methods.

  • Using the mobile phone network: The current cell ID can be used to identify the Base Transceiver Station (BTS) that the device is communicating with and the location of that BTS. Clearly, the accuracy of this method depends on the size of the cell, and can be quite inaccurate. A GSM cell may be anywhere from 2 to 20 kilometers in diameter. Other techniques used along with cell ID can achieve accuracy within 150 meters.
  • Using satellites: The Global Positioning System (GPS), controlled by the US Department of Defense, uses a constellation of 24 satellites orbiting the earth. GPS determines the device's position by calculating differences in the times signals from different satellites take to reach the receiver. GPS signals are encoded, so the mobile device must be equipped with a GPS receiver. GPS is potentially the most accurate method (between 4 and 40 meters if the GPS receiver has a clear view of the sky), but it has some drawbacks: The extra hardware can be costly, consumes battery while in use, and requires some warm-up after a cold start to get an initial fix on visible satellites. It also suffers from "canyon effects" in cities, where satellite visibility is intermittent.
  • Using short-range positioning beacons: In relatively small areas, such as a single building, a local area network can provide locations along with other services. For example, appropriately equipped devices can use Bluetooth for short-range positioning.

In addition, location methods can connect to a mobile position center that provides an interface to query for the position of the mobile subscriber. The API to the mobile position center is XML-based. While applications can be fully self-contained on the device, it's clear that a wider array of services is possible when a server-side application is part of the overall service.

Some applications don't need high accuracy, but others will be useless if the location isn't accurate enough. It's okay for the location of a tourist walking around town to be off by 30 meters, but other applications and services may demand higher accuracy.

The Location API for J2ME

The Location API for J2ME specification defines an optional package, javax.microedition.location, that enables developers to write wireless location-based applications and services for resource-limited devices like mobile phones, and can be implemented with any common location method. The compact and generic J2ME location APIs provide mobile applications with information about the device's present physical location and orientation (compass direction), and support the creation and use of databases of known landmarks, stored in the device.

JSR 179 requires the Connected Device Configuration (CDC) or version 1.1 of the Connected Limited Device Configuration (CLDC). CLDC 1.0 isn't adequate because it doesn't support floating-point numbers, which the API uses to represent coordinates and other measurements. The Location API doesn't depend on any particular profile -- it can be used with MIDP or the Personal Profile.

The hardware platform determines which location methods are supported. If it doesn't support at least one location provider, LBS won't be possible. Applications can request providers with particular characteristics, such as a minimum degree of accuracy. Some location methods may be free; others may entail service fees. The application should warn the user before any charges are incurred.

It is up to the application to determine the criteria for selecting the location method. Criteria fields include: accuracy, response time, need for altitude, and speed. Once the application obtains a LocationProvider instance that meets the criteria, it can use that object to obtain the location, in either of two ways:

  • Invoke a method synchronously to get a single location.
  • Register a listener and get periodic updates at application-defined intervals.

The Location class abstracts the location results. Its object contains coordinates, speed if available, textual address if available, and a time stamp that indicates when the location measurements were made.

Coordinates are represented by either of two classes:

  • A Coordinates object represents a point's latitude and longitude in degrees, and altitude in meters.
  • A QualifiedCoordinates object contains latitude, longitude, and altitude, and also an indication of their accuracy, represented as the radius of an area.

The following segment of code demonstrates how to obtain the present location of the device synchronously:

...

// Set criteria for selecting a location provider:
// accurate to 500 meters
horizontally
Criteria cr= new Criteria();
cr.setHorizontalAccuracy(500);

// Get
an instance of the provider
LocationProvider lp= LocationProvider.getInstance(cr);

//
Request the location, setting a one-minute timeout
Location l = lp.getLocation(60);
Coordinates
c = l.getQualifiedCoordinates();

if(c != null ) {
// Use coordinate information

double lat = c.getLatitude();
double lon = c.getLongitude();
}
...
 

Landmarks

A landmark is a location associated with a name and a description. Landmarks can be stored in a device-based database, where they can be shared among all J2ME applications. Landmarks can store frequently used locations: home, office, favorite restaurants, and so on. Each is represented by a Landmark instance, and the database by a LandmarkStore. You can create multiple named LandmarkStores to group locations into categories such as cinemas, museums, or customer sites.

If the device includes a compass, the application may be able to determine not only its location but its orientation, which is useful in navigational applications. The Orientation class represents the device's azimuth as an angle from due north, which the application can easily convert to a compass direction.

Security and Privacy

Many users consider location information to be highly sensitive, and are concerned about a number of privacy issues, including:

  • Target marketing: Mobile users' locations can be used to classify customers for focused marketing efforts.
  • Embarrassment: One customer's knowledge of another's location may lead to embarrassing situations.
  • Harassment: Location information can be used to harass or attack a user.
  • Service denial: A health insurance firm might deny a claim if it learned that a user visited a high-risk area.
  • Legal restrictions: Some countries regulate the use of personal data.

For these and other reasons, users must know when their location is given to an application.

Guidelines

Keep the following guidelines in mind when designing location-based services:

  • Handle unavailability of services gracefully. The user's location may not always be available, for any of several reasons.
    • The device is cut off from any of the location methods it supports, in a tunnel or on an airplane for example.
    • The user withholds permission to release the information.
    • No location provider that the device supports is available.
  • Depending on the method used, determining the location may take a long time. The delay may be so long that the end result isn't useful in, for example, a navigation application. Keep the user informed.
  • Location service fees, typical of network-assisted location methods, can add up quickly, so don't overuse fee-based services.
  • Be sensitive to privacy concerns.
    • Tell customers about the information being collected on them and how it will be used.
    • Offer customers the choice of what location information to disclose, and when appropriate an option not to participate.
    • Allow customers to review their permission profiles so that they know what they are permitting.
    • Protect location information so that it cannot be accessed by unauthorized persons.

You should also take full advantage of the MIDP 2.0 security framework, which restricts the application's access to location data to cases in which the user explicitly confirms permission.

Summary

Through the Location API for J2ME, you can use information about the user's position to build new kinds of applications and services for mobile devices such as cell phones and PDAs, and to enhance existing services. JSR 179 specifies a generic API for obtaining locations, and thus makes porting LBS applications to a wide range of devices much easier. The critical issue that LBS developers must address is the privacy of the customer. To ensure privacy, follow sound programming guidelines and use the security framework in MIDP 2.0.

For More Information

Acknowledgments

Special thanks to Gary Adams of Sun Microsystems, whose feedback helped me improve this article.

Last Updated ( Tuesday, 16 October 2007 )
< Prev   Next >




Follow @LBSzone on Twitter or follow the Editor


More LBSzone Feature Articles & Special Submissions

2009 The Year of Social Location - 10 Geo Social Location-Aware Apps Making Waves... With Twitter's opening of their location API to developers there's going to be a ton of third party apps that will enable Twitter users to share location-aware information via their Twitter accounts. And so, In typical Top 10 fashion, here's my Top 10 list of ways to Geo enable your tweets... enjoy!

Nokia Booklet 3G, unboxing video and image gallery... Those of you in the USA who pop in to BestBuy occasionally, you may have seen a stand showing off the Nokia Booklet 3G. A sleek, 3G enabled, SIM slot (AT&T) sporting netbook.  The device retails for as little as $199 (with 2 yr AT&T contract) and will definitely turn heads

Real-time GPS Mapping and GIS Solution Aids Efficient Disaster Management  - Saturday, February 7, 2009 will forever be known as Black Saturday in the State of Victoria, Australia. In the midst of a 10-year drought, a record breaking heat wave descended upon the state, with temperatures exceeding 45 degrees C (110-120 deg F), breaking all-time record highs in some cities - Victoria Police Use Trimble Juno SC Handhelds to Speed Assessment of Damage Caused by Bush Fires

5 cool, free, fun Social Media Location-Aware iPhone Apps with Twitter Connect  - We love Friday and we also really dig sharing, so we're glad to share with you a few very cool, handy, and best of all, free FollowFriday apps for you iPhone users (some of these apps may be available for others mobile platforms so search if interested).

Sharing Good Things with the Nokia N97 and Ovi Maps - Behind the Scenes at OviGoodThings - What happens when 10 mobile technology geeks get together in London for a surprise visit?Speaking of Nokia... 

10 Things A Company Should Consider when starting their Twitter social media presence - Many of us on Twitter take it for granted that getting up and running is a breeze, however, many potential corporate users are still craving more information on how/where they should start. Here's a basic introduction for corporate Twitter users with 10 very useful tips on getting started along with some useful links to third party apps and tools.

Spotlight... QuickTake - What's New With ArcPad and 10 Cool Things About ArcPad 8 - Recall, ArcPad is ESRI's solution that enables GIS data collection in the field, integration with additional devices (like a GPS, laser finder, or digital camera) and provides for efficient data sharing

Talking To Go – New VoIP Phones With Wi-Fi Capabilities -- To keep pace with life in the fast lane, new VoIP phones are rolling out of production lines with built in Wi-Fi, which means that you can take your VoIP phone, and phone number to any free Wi-Fi hotspots and make calls. This conrtibution takes a closer look at several options you might consider and walks you through the set-up process.

Wi-Fi Roaming and Cell Phone Roaming Options - an introduction for the new user -- The Canadian company, Seaboard Group crystal ball is glowing with Wi-Fi predictions. In a recent commentary on this issue, Canadians Cut Their Wires on the Wi-Fi phenomenon, Seaboard Group predicted that by 2007, Wi-Fi hardware equipment and integration services will exceed 800 million with shipments of 1.7 million base stations and 3.2 million access cards.

More LBS Features & Articles >>



Google
 

Recent LBS Jobs & Career Opportunities

green gis cube  NOKIA MAPS: Product Manager Routing (Berlin)
green gis cube iPhone Location Technologies SW Eng
green gis cube AGPS Research Engineer
green gis cube iPhone Location Technologies QA Eng
green gis cube Manager, Content and Operations

Browse All Listings / Post Your Job Ad
or, send your job announcements to



Suggested Reading

Featured Events
  • The 3rd annual Navigation Day @ CeBIT conference will pull together the top execs from the huge CeBIT exhibition in one room at one time. March 5, 2010
  • 2010 ESRI Federal User Conference February 17-19, 2010, Washington D.C. Walter E. Washington Convention Center - The FedUC is the largest geospatial conference for federal agencies. Connect with other leaders, decision makers, and GIS professionals.


LBS Newsletter

lbszone newsletter

subscribe LBSzone


Recent Edition
Archives
See All of our newsletters


LBSzone Sponsor




Top Articles



LBSzone Videos

More Videos HERE
Want your Video placed here? Contact us!

White Paper

Phone System Providers Chart 2009
Free Phone System Providers Chart 2009


Popular

Free White Papers

Syndicate

 

Subscribe in NewsGator Online
Subscribe in Bloglines
Powered by FeedBurner
Add to Plusmo
Add to Google


Partner Sites

machinecontrolonline 

symbianone

GISuser.com
Anything Geospatial Blog - AnyGeo

symbianone


Spatial Media

Spatial Media LLC
A Spatial Media LLC property





Cheap oem software today
Spatial Media, LLC ©2003 - 2010 All rights reserved / Privacy Statement