Package ai.nextbillion.maps.model
Class Geometry
java.lang.Object
ai.nextbillion.maps.model.Geometry
- All Implemented Interfaces:
java.io.Serializable
public class Geometry
extends java.lang.Object
implements java.io.Serializable
The geometry of a Geocoding result.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description BoundsboundsThe bounding box which can fully contain the returned result (optionally returned).LatLnglocationThe geocoded latitude/longitude value.LocationTypelocationTypeThe level of certainty of this geocoding result.BoundsviewportThe recommended viewport for displaying the returned result. -
Constructor Summary
Constructors Constructor Description Geometry() -
Method Summary
Modifier and Type Method Description java.lang.StringtoString()
-
Field Details
-
bounds
The bounding box which can fully contain the returned result (optionally returned). Note that these bounds may not match the recommended viewport. (For example, San Francisco includes the Farallon islands, which are technically part of the city, but probably should not be returned in the viewport.) -
location
The geocoded latitude/longitude value. For normal address lookups, this field is typically the most important. -
locationType
The level of certainty of this geocoding result. -
viewport
The recommended viewport for displaying the returned result. Generally the viewport is used to frame a result when displaying it to a user.
-
-
Constructor Details
-
Geometry
public Geometry()
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-