com.google.code.geocoder.model
Class LatLngBounds

java.lang.Object
  extended by com.google.code.geocoder.model.LatLngBounds
All Implemented Interfaces:
Serializable

public class LatLngBounds
extends Object
implements Serializable

Author:
Michael Panchenko
See Also:
Serialized Form

Constructor Summary
LatLngBounds()
           
LatLngBounds(LatLng southwest, LatLng northeast)
           
 
Method Summary
 boolean equals(Object o)
           
 LatLng getNortheast()
           
 LatLng getSouthwest()
           
 int hashCode()
           
 void setNortheast(LatLng northeast)
           
 void setSouthwest(LatLng southwest)
           
 String toString()
           
 String toUrlValue()
           
 String toUrlValue(int precision)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LatLngBounds

public LatLngBounds()

LatLngBounds

public LatLngBounds(LatLng southwest,
                    LatLng northeast)
Method Detail

getSouthwest

public LatLng getSouthwest()

setSouthwest

public void setSouthwest(LatLng southwest)

getNortheast

public LatLng getNortheast()

setNortheast

public void setNortheast(LatLng northeast)

toUrlValue

public String toUrlValue()
Returns:
Returns a string of the form "lat_lo,lng_lo,lat_hi,lng_hi" for this bounds, where "lo" corresponds to the southwest corner of the bounding box, while "hi" corresponds to the northeast corner of that box.

toUrlValue

public String toUrlValue(int precision)
Parameters:
precision -
Returns:
Returns a string of the form "lat_lo,lng_lo,lat_hi,lng_hi" for this bounds, where "lo" corresponds to the southwest corner of the bounding box, while "hi" corresponds to the northeast corner of that box.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.