Custom JSP tags library for mobile developers. Lets you obtain geo coordinates for the given Cell ID.
Cell ID is the unique number of a GSM cell for a given operator. Any phone is always connected to some cell, and by knowing
this number, you know the Cell, and by knowing the position of the cell, you know where your phone is. There are some accuracy issues,
as the cell can cover from several hundreds of meters to several kilometers, but this could be a very good starting point to locate the phone.
Tag requests data from OpenCellID.
<%@ taglib uri="taglib.tld" prefix="c" %> <c:CellID mcc="250" mnc="99" lac="0" cellid="29513" /> <p>CellIDStatus=<%=pageContext.getAttribute("CellIDStatus")%> <br>CellIDLat=<%=pageContext.getAttribute("CellIDLat")%> <br>CellIDLng=<%=pageContext.getAttribute("CellIDLng")%> and you will get this:
CellIDStatus=ok CellIDLat=54.4910893937777 CellIDLng=27.9390742994699 Tag requests the database and creates 3 page scope variables (type is java.lang.String):
Alternatively to mcc (mobile country code) and mnc (mobile network code) pair you can provide an attribute mccmnc (MCC/MNC tuple). In this case the first 3 digits will be used as mcc code and rest of the value as mnc. You have to provide either mcc and mnc pair or MCC/MNC tuple. Tags are: CellID Body tag lets you calculate location data (latitude, longitude) by cell ID. Attributes are: 1) proxyHost Optional attribute. Describes proxy settings for your host
for downloading: Library: cellidtag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|