|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netmera.mobile.NetmeraGeoLocation
public class NetmeraGeoLocation
NetmeraGeoLocation is used to create location with the given latitude and longitude values. It is used to set location into the content and then use it on the search queries.
The example below shows how it is used.
NetmeraGeoLocation location = new NetmeraGeoLocation(41,29);
NetmeraContent content = new NetmeraContent("SampleContent");
content.add("location",location);
content.create();
Constructor Summary | |
---|---|
NetmeraGeoLocation()
Default location where latitude and longitude are 0.0 |
|
NetmeraGeoLocation(double latitude,
double longitude)
Creates location with the given latitude and longitude. |
Method Summary | |
---|---|
double |
getLatitude()
Get latitude. |
double |
getLongitude()
Get longitude. |
void |
setLatitude(double latitude)
Set latitude into the location. |
void |
setLongitude(double longitude)
Set longitude into the location. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetmeraGeoLocation()
public NetmeraGeoLocation(double latitude, double longitude) throws NetmeraException
latitude
- must be between the range of (-90,90)longitude
- must be between the range of (-180,180)
NetmeraException
Method Detail |
---|
public double getLatitude()
public void setLatitude(double latitude) throws NetmeraException
latitude
- Location's latitude
NetmeraException
public double getLongitude()
public void setLongitude(double longitude) throws NetmeraException
longitude
- Location's longitude
NetmeraException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |