J2ME Location Based services
I am planning on developing a J2ME application whi开发者_运维知识库ch provide location based services but as i required i need both location determination Using GPS and Non GPS towers to determine location.
Is this possible in J2ME development to use network based location determination and how ?
Also im planning on using a web service which returns JSON
will i be able to maniupate this data in J2ME environment and how ?
It is possible to determine location through J2ME. It is performed by the JSR-179 API. You can find an explanation of this API in the Nokia's Java Developer's Library under the section "Developer's Guide" -> "Location Services"
How to retrieve network-based location (also called cellsite location) depends on the device manufacturer. Some criteria force the cellphone to return a network-based location provider. I have the information for a few:
- BlackBerry: Not required horizontal or vertical accuracy. Cost allowed and low power consumption.
- Nokia: For S40 series, the Location API is extended with the
com.nokia.mid.location.LocationUtil
class that allows GPS device selection. For S60 user selection under "Connectivity" menu is used, except "No cost" criteria is set. JSR-179 just required that when "No cost" is set, internal GPS technology must be used.
An option I once heard about but never used or tried to implement for cellsite location is Navizon API http://www.navizon.com/businesses.php
精彩评论