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
    Bounds bounds
    The bounding box which can fully contain the returned result (optionally returned).
    LatLng location
    The geocoded latitude/longitude value.
    LocationType locationType
    The level of certainty of this geocoding result.
    Bounds viewport
    The recommended viewport for displaying the returned result.
  • Constructor Summary

    Constructors 
    Constructor Description
    Geometry()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • bounds

      public Bounds 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

      public LatLng location
      The geocoded latitude/longitude value. For normal address lookups, this field is typically the most important.
    • locationType

      public LocationType locationType
      The level of certainty of this geocoding result.
    • viewport

      public Bounds 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

  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object