Currently, ITAnyplace provides location support in the midp applications only. The midp implementation on the device must support JSR 179. The following options are supported for location based applications:
In this mode, the client figures out the location coordinates and makes them available to the local client app.
In this mode, the client app sends the location info to the server at regular intervals. The location info can be handled on the server by one or more adapters. ITAnyplace provides a default adapter, which logs the information. The adapters can be configured in locationconsumers.xml in itanyplacelocationmanager. Just add a consumer as shown below and enter the apps whose location info it should process. Enter * for processing location info from all applications.
<consumer>
<id>1</id>
<apps>*</apps>
<consumer-class>com.itanyplace.location.ITAnyplaceLocationConsumer</consumer-class>
</consumer>
In this mode, location info is sent when requested by the user. Generally a query form is shown to the user and appropriate information is transfered when the Submit button is clicked. The user can either send default coordinates or choose a zipcode and send it.