Class GeocodeResponse

java.lang.Object
slash.navigation.googlemaps.geocode.GeocodeResponse

public class GeocodeResponse 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="status" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="result" maxOccurs="unbounded">
           <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>
         </element>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • GeocodeResponse

      public GeocodeResponse()
  • Method Details

    • getStatus

      public String getStatus()
      Gets the value of the status property.
      Returns:
      possible object is String
    • setStatus

      public void setStatus(String value)
      Sets the value of the status property.
      Parameters:
      value - allowed object is String
    • getResult

      public List<GeocodeResponse.Result> getResult()
      Gets the value of the result 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 result property.

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

          getResult().add(newItem);
       

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