|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.veriplace.client.Position
public class Position
Base class for objects that describe a geographic location.
Longitude, latitude, and uncertainty radius are always required. All other properties, such as street address, are optional and will be null (rather than empty strings) if not available.
| Constructor Summary | |
|---|---|
Position(double longitude,
double latitude,
double uncertainty,
java.lang.String street,
java.lang.String street2,
java.lang.String neighborhood,
java.lang.String city,
java.lang.String state,
java.lang.String postal,
java.lang.String countryCode)
|
|
Position(Position copyFrom)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAddressLine()
A single line combining the address properties in the format "street, city, state postal". |
java.lang.String |
getCity()
City name, if available. |
java.lang.String |
getCountryCode()
Country code, if available. |
double |
getLatitude()
Latitude, in degrees. |
double |
getLongitude()
Longitude, in degrees. |
java.lang.String |
getNeighborhood()
Neighborhood name, if available. |
java.lang.String |
getPostal()
Postal code, if available. |
java.lang.String |
getState()
State name, if available. |
java.lang.String |
getStreet()
Street address, if available. |
java.lang.String |
getStreet2()
Second street address line, if available. |
double |
getUncertainty()
Approximate uncertainty radius, in meters. |
java.lang.String |
toString()
Default string conversion using the format "(longitude, latitude, uncertainty)". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Position(Position copyFrom)
public Position(double longitude,
double latitude,
double uncertainty,
java.lang.String street,
java.lang.String street2,
java.lang.String neighborhood,
java.lang.String city,
java.lang.String state,
java.lang.String postal,
java.lang.String countryCode)
| Method Detail |
|---|
public double getLongitude()
public double getLatitude()
public double getUncertainty()
public java.lang.String getStreet()
This may represent a house number, street, or intersection.
public java.lang.String getStreet2()
If this position represents a street intersection, this is the cross street.
public java.lang.String getNeighborhood()
Note that neighbhorhood data is only available for certain metro regions.
public java.lang.String getCity()
public java.lang.String getState()
public java.lang.String getPostal()
public java.lang.String getCountryCode()
public java.lang.String getAddressLine()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||