com.google.code.geocoder.model
Class LatLngBounds
java.lang.Object
com.google.code.geocoder.model.LatLngBounds
- All Implemented Interfaces:
- Serializable
public class LatLngBounds
- extends Object
- implements Serializable
- Author:
- Michael Panchenko
- See Also:
- Serialized Form
LatLngBounds
public LatLngBounds()
LatLngBounds
public LatLngBounds(LatLng southwest,
LatLng northeast)
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.