Class GeocodeResponse.Result

java.lang.Object
slash.navigation.googlemaps.geocode.GeocodeResponse.Result
Enclosing class:
GeocodeResponse

public static class GeocodeResponse.Result extends Object

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="type" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
         <element name="formatted_address" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="address_component" maxOccurs="unbounded">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="long_name" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="short_name" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="type" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
                 </sequence>
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="geometry">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="location">
                     <complexType>
                       <complexContent>
                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           <sequence>
                             <element name="lat" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
                             <element name="lng" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
                           </sequence>
                         </restriction>
                       </complexContent>
                     </complexType>
                   </element>
                   <element name="location_type" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="viewport">
                     <complexType>
                       <complexContent>
                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           <sequence>
                             <element name="southwest">
                               <complexType>
                                 <complexContent>
                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                                     <sequence>
                                       <element name="lat" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
                                       <element name="lng" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
                                     </sequence>
                                   </restriction>
                                 </complexContent>
                               </complexType>
                             </element>
                             <element name="northeast">
                               <complexType>
                                 <complexContent>
                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                                     <sequence>
                                       <element name="lat" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
                                       <element name="lng" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
                                     </sequence>
                                   </restriction>
                                 </complexContent>
                               </complexType>
                             </element>
                           </sequence>
                         </restriction>
                       </complexContent>
                     </complexType>
                   </element>
                   <element name="bounds" minOccurs="0">
                     <complexType>
                       <complexContent>
                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           <sequence>
                             <element name="southwest">
                               <complexType>
                                 <complexContent>
                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                                     <sequence>
                                       <element name="lat" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
                                       <element name="lng" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
                                     </sequence>
                                   </restriction>
                                 </complexContent>
                               </complexType>
                             </element>
                             <element name="northeast">
                               <complexType>
                                 <complexContent>
                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                                     <sequence>
                                       <element name="lat" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
                                       <element name="lng" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
                                     </sequence>
                                   </restriction>
                                 </complexContent>
                               </complexType>
                             </element>
                           </sequence>
                         </restriction>
                       </complexContent>
                     </complexType>
                   </element>
                 </sequence>
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Result

      public Result()
  • Method Details

    • getType

      public List<String> getType()
      Gets the value of the type property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the type property.

      For example, to add a new item, do as follows:

          getType().add(newItem);
       

      Objects of the following type(s) are allowed in the list String

    • getFormattedAddress

      public String getFormattedAddress()
      Gets the value of the formattedAddress property.
      Returns:
      possible object is String
    • setFormattedAddress

      public void setFormattedAddress(String value)
      Sets the value of the formattedAddress property.
      Parameters:
      value - allowed object is String
    • getAddressComponent

      public List<GeocodeResponse.Result.AddressComponent> getAddressComponent()
      Gets the value of the addressComponent property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the addressComponent property.

      For example, to add a new item, do as follows:

          getAddressComponent().add(newItem);
       

      Objects of the following type(s) are allowed in the list GeocodeResponse.Result.AddressComponent

    • getGeometry

      public GeocodeResponse.Result.Geometry getGeometry()
      Gets the value of the geometry property.
      Returns:
      possible object is GeocodeResponse.Result.Geometry
    • setGeometry

      public void setGeometry(GeocodeResponse.Result.Geometry value)
      Sets the value of the geometry property.
      Parameters:
      value - allowed object is GeocodeResponse.Result.Geometry