|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocationService
Interface for the LocationService
The location service handles mappings from positions (coordinates) to locations. E.g. It-building, Manhattan, Europe etc..
Method Summary | |
---|---|
boolean |
addLocation(java.lang.String locationName,
double[] longitudes,
double[] latitudes,
int altitude)
Adds a new location to the service's list of locations. |
java.lang.String |
getLocation(double longitude,
double latitude)
Returns the name of the location containing the position specified by the parameters, without considering altitude. |
java.lang.String |
getLocation(double longitude,
double latitude,
int altitude,
int altitudeErrorMargin)
Returns the name of the location containing the position specified by the parameters. |
boolean |
removeLocatoin(java.lang.String locationName)
Removes a location from the service's list of locations. |
Method Detail |
---|
boolean addLocation(java.lang.String locationName, double[] longitudes, double[] latitudes, int altitude)
locationName
- Name of the new locationlongitudes
- List of longitudes (x-axis) expressed in decimal degrees. Max precision is 6 decimals. Use negative values for westlatitudes
- List of latitudes (y-axis) expressed in decimal degrees. Max precision is 6 decimals. Use negative values on the southern hemisphere
Polygon
boolean removeLocatoin(java.lang.String locationName)
locationName
- Name of the location to remove
java.lang.String getLocation(double longitude, double latitude, int altitude, int altitudeErrorMargin)
longitude
- Longitude of the position expressed in decimal degrees. Use negative values for westlatitude
- Latitude of the position expressed in decimal degrees. Use negative values for southaltitude
- Altitude of the positionaltitudeErrorMargin
- Allowed altitude error. java.lang.String getLocation(double longitude, double latitude)
longitude
- Longitude of the position expressed in decimal degrees. Use negative values for westlatitude
- Latitude of the position expressed in decimal degrees. Use negative values for south
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |