org.opengts.geocoder
Class ReverseGeocode

java.lang.Object
  extended by org.opengts.geocoder.ReverseGeocode

public class ReverseGeocode
extends java.lang.Object


Field Summary
static java.lang.String COUNTRY_US
           
static java.lang.String COUNTRY_US_
           
static java.lang.String REQ_RGLength
           
static java.lang.String REQ_RGSignature
           
static java.lang.String SUBDIVISION_SEPARATOR
           
static java.lang.String[] TAG_City
           
static java.lang.String[] TAG_CountryCode
           
static java.lang.String[] TAG_FullAddress
           
static java.lang.String[] TAG_Latitude
           
static java.lang.String[] TAG_Longitude
           
static java.lang.String[] TAG_PostalCode
           
static java.lang.String[] TAG_Provider
           
static java.lang.String[] TAG_SpeedLimit
           
static java.lang.String[] TAG_StateProvince
           
static java.lang.String[] TAG_StreetAddress
           
static java.lang.String[] TAG_Subdivision
           
static java.lang.String[] TAG_TollRoad
           
 
Constructor Summary
ReverseGeocode()
          Default constructor
ReverseGeocode(JSON._Object jsonObj)
          JSON constructor
ReverseGeocode(JSON json)
          JSON constructor
 
Method Summary
 java.lang.String getCity()
          Gets the city
 java.lang.String getCountryCode()
          Gets the country code
 java.lang.String getFullAddress()
          Gets the full address
 boolean getIsTollRoad()
          Gets the toll-road state
 java.lang.String getPostalCode()
          Gets the postal code
 double getSpeedLimitKPH()
          Gets the speed limit at the reverse-geocoded location
 java.lang.String getStateProvince()
          Gets the state/province
 java.lang.String getStreetAddress()
          Gets the street address
 java.lang.String getSubdivision()
          Gets the country/state subdivision
 boolean hasCity()
          Returns true if the city is defined
 boolean hasCountryCode()
          Returns true if the country is defined
 boolean hasFullAddress()
          Returns true if the full address is defined
 boolean hasIsTollRoad()
          Returns true if the toll-road state is defined
 boolean hasPostalCode()
          Returns true if the postal code is defined
 boolean hasSpeedLimitKPH()
          Returns true if the speed limit is defined
 boolean hasStateProvince()
          Returns true if the state/province is defined
 boolean hasStreetAddress()
          Returns true if the street address is defined
 boolean hasSubdivision()
          Returns true if the country/state subdivision is defined
static void main(java.lang.String[] argv)
           
 void setCity(java.lang.String city)
          Sets the city
 void setCountryCode(java.lang.String countryCode)
          Sets the country code
 void setFullAddress(java.lang.String address)
          Sets the full address
 void setIsTollRoad(boolean tollRoad)
          Sets the toll-road state
 void setIsTollRoad(int tollRoadState)
          Sets the toll-road state
 void setPostalCode(java.lang.String zip)
          Sets the postal code
 void setSpeedLimitKPH(double limitKPH)
          Sets the speed limit at the reverse-geocoded location
 void setStateProvince(java.lang.String state)
          Sets the state/province
 void setStreetAddress(java.lang.String address)
          Sets the street address
 void setSubdivision(java.lang.String subdiv)
          Sets the country/state subdivision
 JSON toJSON()
          Returns a JSON String containing this ReverseGeocode information
 JSON toJSON(boolean longFmt)
          Returns a JSON String containing this ReverseGeocode information
 java.lang.String toString()
          Returns a String representation of this instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COUNTRY_US

public static final java.lang.String COUNTRY_US
See Also:
Constant Field Values

SUBDIVISION_SEPARATOR

public static final java.lang.String SUBDIVISION_SEPARATOR
See Also:
Constant Field Values

COUNTRY_US_

public static final java.lang.String COUNTRY_US_
See Also:
Constant Field Values

TAG_Provider

public static final java.lang.String[] TAG_Provider

TAG_Latitude

public static final java.lang.String[] TAG_Latitude

TAG_Longitude

public static final java.lang.String[] TAG_Longitude

TAG_FullAddress

public static final java.lang.String[] TAG_FullAddress

TAG_StreetAddress

public static final java.lang.String[] TAG_StreetAddress

TAG_City

public static final java.lang.String[] TAG_City

TAG_StateProvince

public static final java.lang.String[] TAG_StateProvince

TAG_PostalCode

public static final java.lang.String[] TAG_PostalCode

TAG_CountryCode

public static final java.lang.String[] TAG_CountryCode

TAG_Subdivision

public static final java.lang.String[] TAG_Subdivision

TAG_SpeedLimit

public static final java.lang.String[] TAG_SpeedLimit

TAG_TollRoad

public static final java.lang.String[] TAG_TollRoad

REQ_RGLength

public static final java.lang.String REQ_RGLength
See Also:
Constant Field Values

REQ_RGSignature

public static final java.lang.String REQ_RGSignature
See Also:
Constant Field Values
Constructor Detail

ReverseGeocode

public ReverseGeocode()
Default constructor


ReverseGeocode

public ReverseGeocode(JSON._Object jsonObj)
JSON constructor


ReverseGeocode

public ReverseGeocode(JSON json)
JSON constructor

Method Detail

setFullAddress

public void setFullAddress(java.lang.String address)
Sets the full address


getFullAddress

public java.lang.String getFullAddress()
Gets the full address


hasFullAddress

public boolean hasFullAddress()
Returns true if the full address is defined


setStreetAddress

public void setStreetAddress(java.lang.String address)
Sets the street address


getStreetAddress

public java.lang.String getStreetAddress()
Gets the street address


hasStreetAddress

public boolean hasStreetAddress()
Returns true if the street address is defined


setCity

public void setCity(java.lang.String city)
Sets the city


getCity

public java.lang.String getCity()
Gets the city


hasCity

public boolean hasCity()
Returns true if the city is defined


setStateProvince

public void setStateProvince(java.lang.String state)
Sets the state/province


getStateProvince

public java.lang.String getStateProvince()
Gets the state/province


hasStateProvince

public boolean hasStateProvince()
Returns true if the state/province is defined


setPostalCode

public void setPostalCode(java.lang.String zip)
Sets the postal code


getPostalCode

public java.lang.String getPostalCode()
Gets the postal code


hasPostalCode

public boolean hasPostalCode()
Returns true if the postal code is defined


setCountryCode

public void setCountryCode(java.lang.String countryCode)
Sets the country code


getCountryCode

public java.lang.String getCountryCode()
Gets the country code


hasCountryCode

public boolean hasCountryCode()
Returns true if the country is defined


setSubdivision

public void setSubdivision(java.lang.String subdiv)
Sets the country/state subdivision


getSubdivision

public java.lang.String getSubdivision()
Gets the country/state subdivision


hasSubdivision

public boolean hasSubdivision()
Returns true if the country/state subdivision is defined


setSpeedLimitKPH

public void setSpeedLimitKPH(double limitKPH)
Sets the speed limit at the reverse-geocoded location


getSpeedLimitKPH

public double getSpeedLimitKPH()
Gets the speed limit at the reverse-geocoded location


hasSpeedLimitKPH

public boolean hasSpeedLimitKPH()
Returns true if the speed limit is defined


setIsTollRoad

public void setIsTollRoad(int tollRoadState)
Sets the toll-road state


setIsTollRoad

public void setIsTollRoad(boolean tollRoad)
Sets the toll-road state


getIsTollRoad

public boolean getIsTollRoad()
Gets the toll-road state


hasIsTollRoad

public boolean hasIsTollRoad()
Returns true if the toll-road state is defined


toString

public java.lang.String toString()
Returns a String representation of this instance

Overrides:
toString in class java.lang.Object

toJSON

public JSON toJSON()
Returns a JSON String containing this ReverseGeocode information


toJSON

public JSON toJSON(boolean longFmt)
Returns a JSON String containing this ReverseGeocode information


main

public static void main(java.lang.String[] argv)