X4 Produktdokumentation

Operation: ReverseGeocode

Diese Operation konvertiert geografische Koordinaten (Längengrad und Breitengrad) in eine lesbare Adresse.

Input

Der Adapter erwartet eine vordefinierte XML-Input-Struktur.

Für die Operation ReverseGeocode erwartet der Adapter eine XML-Input-Struktur nach folgendem Muster:

XML
<ReverseGeocode>
	<LatLng>
		<Data></Data>
	</LatLng>
</ReverseGeocode> 

Hinweis:

  • Die Werte für Breitengrad und Längengrad müssen durch ein Komma getrennt im Element <Data> eingegeben werden.

  • Es werden nur die ersten zwei Werte berücksichtigt.

Output

Wenn die Operation erfolgreich ausgeführt wurde, gibt der Adapter ein XML- oder JSON-Dokument aus.

Beispiele

Hier finden Sie ein Beispiel für die Operation ReverseGeocode.

Beispiel mit Angabe von Breitengrad und Längengrad

Input

XML
<ReverseGeocode>
	<LatLng>
		<Data>40.714224,-73.961452</Data>
	</LatLng>
</ReverseGeocode> 
Output in XML
XML
<?xml version="1.0" encoding="UTF-8"?>
<GeocodeResponse>
   <result>
      <formatted_address>279 Bedford Ave, Brooklyn, NY 11211, USA</formatted_address>
      <types>premise</types>
      <types>street_address</types>
      <partial_match>false</partial_match>
      <geometry>
         <viewport>
            <southwest>
               <lng>-73.96265608029151</lng>
               <lat>40.7128561197085</lat>
            </southwest>
            <northeast>
               <lng>-73.9599581197085</lng>
               <lat>40.7155540802915</lat>
            </northeast>
         </viewport>
         <bounds>
            <southwest>
               <lng>-73.9613943</lng>
               <lat>40.7141515</lat>
            </southwest>
            <northeast>
               <lng>-73.9612199</lng>
               <lat>40.71425869999999</lat>
            </northeast>
         </bounds>
         <location>
            <lng>-73.9613071</lng>
            <lat>40.714205</lat>
         </location>
         <location_type>rooftop</location_type>
      </geometry>
      <address_components>
         <types>street_number</types>
         <short_name>279</short_name>
         <long_name>279</long_name>
      </address_components>
      <address_components>
         <types>route</types>
         <short_name>Bedford Ave</short_name>
         <long_name>Bedford Avenue</long_name>
      </address_components>
      <address_components>
         <types>neighborhood</types>
         <types>political</types>
         <short_name>Williamsburg</short_name>
         <long_name>Williamsburg</long_name>
      </address_components>
      <address_components>
         <types>political</types>
         <types>sublocality</types>
         <types>sublocality_level_1</types>
         <short_name>Brooklyn</short_name>
         <long_name>Brooklyn</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_2</types>
         <types>political</types>
         <short_name>Kings County</short_name>
         <long_name>Kings County</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_1</types>
         <types>political</types>
         <short_name>NY</short_name>
         <long_name>New York</long_name>
      </address_components>
      <address_components>
         <types>country</types>
         <types>political</types>
         <short_name>US</short_name>
         <long_name>United States</long_name>
      </address_components>
      <address_components>
         <types>postal_code</types>
         <short_name>11211</short_name>
         <long_name>11211</long_name>
      </address_components>
      <address_components>
         <types>postal_code_suffix</types>
         <short_name>4203</short_name>
         <long_name>4203</long_name>
      </address_components>
      <place_id>ChIJSVN6Q2BZwokR6N8ueQCX_wM</place_id>
   </result>
   <result>
      <formatted_address>294 Bedford Ave, Brooklyn, NY 11249, USA</formatted_address>
      <types>street_address</types>
      <types>subpremise</types>
      <partial_match>false</partial_match>
      <geometry>
         <viewport>
            <southwest>
               <lng>-73.96291528029151</lng>
               <lat>40.7129612197085</lat>
            </southwest>
            <northeast>
               <lng>-73.9602173197085</lng>
               <lat>40.7156591802915</lat>
            </northeast>
         </viewport>
         <location>
            <lng>-73.9615663</lng>
            <lat>40.7143102</lat>
         </location>
         <location_type>rooftop</location_type>
      </geometry>
      <address_components>
         <types>street_number</types>
         <short_name>294</short_name>
         <long_name>294</long_name>
      </address_components>
      <address_components>
         <types>route</types>
         <short_name>Bedford Ave</short_name>
         <long_name>Bedford Avenue</long_name>
      </address_components>
      <address_components>
         <types>neighborhood</types>
         <types>political</types>
         <short_name>Williamsburg</short_name>
         <long_name>Williamsburg</long_name>
      </address_components>
      <address_components>
         <types>political</types>
         <types>sublocality</types>
         <types>sublocality_level_1</types>
         <short_name>Brooklyn</short_name>
         <long_name>Brooklyn</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_2</types>
         <types>political</types>
         <short_name>Kings County</short_name>
         <long_name>Kings County</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_1</types>
         <types>political</types>
         <short_name>NY</short_name>
         <long_name>New York</long_name>
      </address_components>
      <address_components>
         <types>country</types>
         <types>political</types>
         <short_name>US</short_name>
         <long_name>United States</long_name>
      </address_components>
      <address_components>
         <types>postal_code</types>
         <short_name>11249</short_name>
         <long_name>11249</long_name>
      </address_components>
      <place_id>ChIJCWPRWmBZwokR2vqFmfc2-UA</place_id>
   </result>
   <result>
      <formatted_address>296 Bedford Ave, Brooklyn, NY 11249, USA</formatted_address>
      <types>establishment</types>
      <types>food</types>
      <types>point_of_interest</types>
      <types>restaurant</types>
      <partial_match>false</partial_match>
      <geometry>
         <viewport>
            <southwest>
               <lng>-73.9629397802915</lng>
               <lat>40.7129612197085</lat>
            </southwest>
            <northeast>
               <lng>-73.9602418197085</lng>
               <lat>40.7156591802915</lat>
            </northeast>
         </viewport>
         <location>
            <lng>-73.9615908</lng>
            <lat>40.7143102</lat>
         </location>
         <location_type>rooftop</location_type>
      </geometry>
      <address_components>
         <types>street_number</types>
         <short_name>296</short_name>
         <long_name>296</long_name>
      </address_components>
      <address_components>
         <types>route</types>
         <short_name>Bedford Ave</short_name>
         <long_name>Bedford Avenue</long_name>
      </address_components>
      <address_components>
         <types>neighborhood</types>
         <types>political</types>
         <short_name>Williamsburg</short_name>
         <long_name>Williamsburg</long_name>
      </address_components>
      <address_components>
         <types>political</types>
         <types>sublocality</types>
         <types>sublocality_level_1</types>
         <short_name>Brooklyn</short_name>
         <long_name>Brooklyn</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_2</types>
         <types>political</types>
         <short_name>Kings County</short_name>
         <long_name>Kings County</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_1</types>
         <types>political</types>
         <short_name>NY</short_name>
         <long_name>New York</long_name>
      </address_components>
      <address_components>
         <types>country</types>
         <types>political</types>
         <short_name>US</short_name>
         <long_name>United States</long_name>
      </address_components>
      <address_components>
         <types>postal_code</types>
         <short_name>11249</short_name>
         <long_name>11249</long_name>
      </address_components>
      <plus_code>
         <compound_code>P27Q+P9 Brooklyn, NY, USA</compound_code>
         <global_code>87G8P27Q+P9</global_code>
      </plus_code>
      <place_id>ChIJ_96tiV9ZwokR9WzRljQslqY</place_id>
   </result>
   <result>
      <formatted_address>298 Bedford Ave, Brooklyn, NY 11249, USA</formatted_address>
      <types>street_address</types>
      <partial_match>false</partial_match>
      <geometry>
         <viewport>
            <southwest>
               <lng>-73.96284928029151</lng>
               <lat>40.7128478197085</lat>
            </southwest>
            <northeast>
               <lng>-73.9601513197085</lng>
               <lat>40.71554578029149</lat>
            </northeast>
         </viewport>
         <location>
            <lng>-73.9615003</lng>
            <lat>40.7141968</lat>
         </location>
         <location_type>range_interpolated</location_type>
      </geometry>
      <address_components>
         <types>street_number</types>
         <short_name>298</short_name>
         <long_name>298</long_name>
      </address_components>
      <address_components>
         <types>route</types>
         <short_name>Bedford Ave</short_name>
         <long_name>Bedford Avenue</long_name>
      </address_components>
      <address_components>
         <types>neighborhood</types>
         <types>political</types>
         <short_name>Williamsburg</short_name>
         <long_name>Williamsburg</long_name>
      </address_components>
      <address_components>
         <types>political</types>
         <types>sublocality</types>
         <types>sublocality_level_1</types>
         <short_name>Brooklyn</short_name>
         <long_name>Brooklyn</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_2</types>
         <types>political</types>
         <short_name>Kings County</short_name>
         <long_name>Kings County</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_1</types>
         <types>political</types>
         <short_name>NY</short_name>
         <long_name>New York</long_name>
      </address_components>
      <address_components>
         <types>country</types>
         <types>political</types>
         <short_name>US</short_name>
         <long_name>United States</long_name>
      </address_components>
      <address_components>
         <types>postal_code</types>
         <short_name>11249</short_name>
         <long_name>11249</long_name>
      </address_components>
      <place_id>EigyOTggQmVkZm9yZCBBdmUsIEJyb29rbHluLCBOWSAxMTI0OSwgVVNBIhsSGQoUChIJ8ThWRGBZwokR3U1zUisk3LUQqgI</place_id>
   </result>
   <result>
      <formatted_address>291-275 Bedford Ave, Brooklyn, NY 11211, USA</formatted_address>
      <types>route</types>
      <partial_match>false</partial_match>
      <geometry>
         <viewport>
            <southwest>
               <lng>-73.9628351802915</lng>
               <lat>40.7128543697085</lat>
            </southwest>
            <northeast>
               <lng>-73.9601372197085</lng>
               <lat>40.71555233029149</lat>
            </northeast>
         </viewport>
         <bounds>
            <southwest>
               <lng>-73.96168589999999</lng>
               <lat>40.7139056</lat>
            </southwest>
            <northeast>
               <lng>-73.9612865</lng>
               <lat>40.7145011</lat>
            </northeast>
         </bounds>
         <location>
            <lng>-73.9614941</lng>
            <lat>40.7142065</lat>
         </location>
         <location_type>geometric_center</location_type>
      </geometry>
      <address_components>
         <types>street_number</types>
         <short_name>291-275</short_name>
         <long_name>291-275</long_name>
      </address_components>
      <address_components>
         <types>route</types>
         <short_name>Bedford Ave</short_name>
         <long_name>Bedford Avenue</long_name>
      </address_components>
      <address_components>
         <types>neighborhood</types>
         <types>political</types>
         <short_name>Williamsburg</short_name>
         <long_name>Williamsburg</long_name>
      </address_components>
      <address_components>
         <types>political</types>
         <types>sublocality</types>
         <types>sublocality_level_1</types>
         <short_name>Brooklyn</short_name>
         <long_name>Brooklyn</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_2</types>
         <types>political</types>
         <short_name>Kings County</short_name>
         <long_name>Kings County</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_1</types>
         <types>political</types>
         <short_name>NY</short_name>
         <long_name>New York</long_name>
      </address_components>
      <address_components>
         <types>country</types>
         <types>political</types>
         <short_name>US</short_name>
         <long_name>United States</long_name>
      </address_components>
      <address_components>
         <types>postal_code</types>
         <short_name>11211</short_name>
         <long_name>11211</long_name>
      </address_components>
      <place_id>ChIJ8ThWRGBZwokR3E1zUisk3LU</place_id>
   </result>
   <result>
      <formatted_address>P27Q+MC New York, NY, USA</formatted_address>
      <types>plus_code</types>
      <partial_match>false</partial_match>
      <geometry>
         <viewport>
            <southwest>
               <lng>-73.96278648029151</lng>
               <lat>40.71283851970849</lat>
            </southwest>
            <northeast>
               <lng>-73.96008851970849</lng>
               <lat>40.71553648029149</lat>
            </northeast>
         </viewport>
         <bounds>
            <southwest>
               <lng>-73.9615</lng>
               <lat>40.714125</lat>
            </southwest>
            <northeast>
               <lng>-73.96137499999999</lng>
               <lat>40.71425</lat>
            </northeast>
         </bounds>
         <location>
            <lng>-73.961452</lng>
            <lat>40.714224</lat>
         </location>
         <location_type>geometric_center</location_type>
      </geometry>
      <address_components>
         <types>plus_code</types>
         <short_name>P27Q+MC</short_name>
         <long_name>P27Q+MC</long_name>
      </address_components>
      <address_components>
         <types>locality</types>
         <types>political</types>
         <short_name>New York</short_name>
         <long_name>New York</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_1</types>
         <types>political</types>
         <short_name>NY</short_name>
         <long_name>New York</long_name>
      </address_components>
      <address_components>
         <types>country</types>
         <types>political</types>
         <short_name>US</short_name>
         <long_name>United States</long_name>
      </address_components>
      <plus_code>
         <compound_code>P27Q+MC New York, NY, USA</compound_code>
         <global_code>87G8P27Q+MC</global_code>
      </plus_code>
      <place_id>GhIJWAIpsWtbREARHyv4bYh9UsA</place_id>
   </result>
   <result>
      <formatted_address>South Williamsburg, Brooklyn, NY, USA</formatted_address>
      <types>neighborhood</types>
      <types>political</types>
      <partial_match>false</partial_match>
      <geometry>
         <viewport>
            <southwest>
               <lng>-73.9699432</lng>
               <lat>40.6984866</lat>
            </southwest>
            <northeast>
               <lng>-73.9420904</lng>
               <lat>40.7167119</lat>
            </northeast>
         </viewport>
         <bounds>
            <southwest>
               <lng>-73.9699432</lng>
               <lat>40.6984866</lat>
            </southwest>
            <northeast>
               <lng>-73.9420904</lng>
               <lat>40.7167119</lat>
            </northeast>
         </bounds>
         <location>
            <lng>-73.9565551</lng>
            <lat>40.7043921</lat>
         </location>
         <location_type>approximate</location_type>
      </geometry>
      <address_components>
         <types>neighborhood</types>
         <types>political</types>
         <short_name>South Williamsburg</short_name>
         <long_name>South Williamsburg</long_name>
      </address_components>
      <address_components>
         <types>political</types>
         <types>sublocality</types>
         <types>sublocality_level_1</types>
         <short_name>Brooklyn</short_name>
         <long_name>Brooklyn</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_2</types>
         <types>political</types>
         <short_name>Kings County</short_name>
         <long_name>Kings County</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_1</types>
         <types>political</types>
         <short_name>NY</short_name>
         <long_name>New York</long_name>
      </address_components>
      <address_components>
         <types>country</types>
         <types>political</types>
         <short_name>US</short_name>
         <long_name>United States</long_name>
      </address_components>
      <place_id>ChIJR3_ODdlbwokRYtN19kNtcuk</place_id>
   </result>
   <result>
      <formatted_address>Brooklyn, NY 11211, USA</formatted_address>
      <types>postal_code</types>
      <partial_match>false</partial_match>
      <geometry>
         <viewport>
            <southwest>
               <lng>-73.9644697</lng>
               <lat>40.7008331</lat>
            </southwest>
            <northeast>
               <lng>-73.9207299</lng>
               <lat>40.7280089</lat>
            </northeast>
         </viewport>
         <bounds>
            <southwest>
               <lng>-73.9644697</lng>
               <lat>40.7008331</lat>
            </southwest>
            <northeast>
               <lng>-73.9207299</lng>
               <lat>40.7280089</lat>
            </northeast>
         </bounds>
         <location>
            <lng>-73.9565551</lng>
            <lat>40.7093358</lat>
         </location>
         <location_type>approximate</location_type>
      </geometry>
      <address_components>
         <types>postal_code</types>
         <short_name>11211</short_name>
         <long_name>11211</long_name>
      </address_components>
      <address_components>
         <types>political</types>
         <types>sublocality</types>
         <types>sublocality_level_1</types>
         <short_name>Brooklyn</short_name>
         <long_name>Brooklyn</long_name>
      </address_components>
      <address_components>
         <types>locality</types>
         <types>political</types>
         <short_name>New York</short_name>
         <long_name>New York</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_1</types>
         <types>political</types>
         <short_name>NY</short_name>
         <long_name>New York</long_name>
      </address_components>
      <address_components>
         <types>country</types>
         <types>political</types>
         <short_name>US</short_name>
         <long_name>United States</long_name>
      </address_components>
      <place_id>ChIJvbEjlVdZwokR4KapM3WCFRw</place_id>
   </result>
   <result>
      <formatted_address>Williamsburg, Brooklyn, NY, USA</formatted_address>
      <types>neighborhood</types>
      <types>political</types>
      <partial_match>false</partial_match>
      <geometry>
         <viewport>
            <southwest>
               <lng>-73.96984499999999</lng>
               <lat>40.6979329</lat>
            </southwest>
            <northeast>
               <lng>-73.9369427</lng>
               <lat>40.7251773</lat>
            </northeast>
         </viewport>
         <bounds>
            <southwest>
               <lng>-73.96984499999999</lng>
               <lat>40.6979329</lat>
            </southwest>
            <northeast>
               <lng>-73.9369427</lng>
               <lat>40.7251773</lat>
            </northeast>
         </bounds>
         <location>
            <lng>-73.9570696</lng>
            <lat>40.7081156</lat>
         </location>
         <location_type>approximate</location_type>
      </geometry>
      <address_components>
         <types>neighborhood</types>
         <types>political</types>
         <short_name>Williamsburg</short_name>
         <long_name>Williamsburg</long_name>
      </address_components>
      <address_components>
         <types>political</types>
         <types>sublocality</types>
         <types>sublocality_level_1</types>
         <short_name>Brooklyn</short_name>
         <long_name>Brooklyn</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_2</types>
         <types>political</types>
         <short_name>Kings County</short_name>
         <long_name>Kings County</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_1</types>
         <types>political</types>
         <short_name>NY</short_name>
         <long_name>New York</long_name>
      </address_components>
      <address_components>
         <types>country</types>
         <types>political</types>
         <short_name>US</short_name>
         <long_name>United States</long_name>
      </address_components>
      <place_id>ChIJQSrBBv1bwokRbNfFHCnyeYI</place_id>
   </result>
   <result>
      <formatted_address>Kings County, Brooklyn, NY, USA</formatted_address>
      <types>administrative_area_level_2</types>
      <types>political</types>
      <partial_match>false</partial_match>
      <geometry>
         <viewport>
            <southwest>
               <lng>-74.05663</lng>
               <lat>40.551042</lat>
            </southwest>
            <northeast>
               <lng>-73.8330411</lng>
               <lat>40.7394209</lat>
            </northeast>
         </viewport>
         <bounds>
            <southwest>
               <lng>-74.05663</lng>
               <lat>40.551042</lat>
            </southwest>
            <northeast>
               <lng>-73.8330411</lng>
               <lat>40.7394209</lat>
            </northeast>
         </bounds>
         <location>
            <lng>-73.95949399999999</lng>
            <lat>40.6528762</lat>
         </location>
         <location_type>approximate</location_type>
      </geometry>
      <address_components>
         <types>administrative_area_level_2</types>
         <types>political</types>
         <short_name>Kings County</short_name>
         <long_name>Kings County</long_name>
      </address_components>
      <address_components>
         <types>political</types>
         <types>sublocality</types>
         <types>sublocality_level_1</types>
         <short_name>Brooklyn</short_name>
         <long_name>Brooklyn</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_1</types>
         <types>political</types>
         <short_name>NY</short_name>
         <long_name>New York</long_name>
      </address_components>
      <address_components>
         <types>country</types>
         <types>political</types>
         <short_name>US</short_name>
         <long_name>United States</long_name>
      </address_components>
      <place_id>ChIJOwE7_GTtwokRs75rhW4_I6M</place_id>
   </result>
   <result>
      <formatted_address>Brooklyn, NY, USA</formatted_address>
      <types>political</types>
      <types>sublocality</types>
      <types>sublocality_level_1</types>
      <partial_match>false</partial_match>
      <geometry>
         <viewport>
            <southwest>
               <lng>-74.05663</lng>
               <lat>40.551042</lat>
            </southwest>
            <northeast>
               <lng>-73.8330411</lng>
               <lat>40.7394209</lat>
            </northeast>
         </viewport>
         <bounds>
            <southwest>
               <lng>-74.05663</lng>
               <lat>40.551042</lat>
            </southwest>
            <northeast>
               <lng>-73.8330411</lng>
               <lat>40.7394209</lat>
            </northeast>
         </bounds>
         <location>
            <lng>-73.9441579</lng>
            <lat>40.6781784</lat>
         </location>
         <location_type>approximate</location_type>
      </geometry>
      <address_components>
         <types>political</types>
         <types>sublocality</types>
         <types>sublocality_level_1</types>
         <short_name>Brooklyn</short_name>
         <long_name>Brooklyn</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_2</types>
         <types>political</types>
         <short_name>Kings County</short_name>
         <long_name>Kings County</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_1</types>
         <types>political</types>
         <short_name>NY</short_name>
         <long_name>New York</long_name>
      </address_components>
      <address_components>
         <types>country</types>
         <types>political</types>
         <short_name>US</short_name>
         <long_name>United States</long_name>
      </address_components>
      <place_id>ChIJCSF8lBZEwokRhngABHRcdoI</place_id>
   </result>
   <result>
      <formatted_address>New York, NY, USA</formatted_address>
      <types>locality</types>
      <types>political</types>
      <partial_match>false</partial_match>
      <geometry>
         <viewport>
            <southwest>
               <lng>-74.258843</lng>
               <lat>40.476578</lat>
            </southwest>
            <northeast>
               <lng>-73.700169</lng>
               <lat>40.917705</lat>
            </northeast>
         </viewport>
         <bounds>
            <southwest>
               <lng>-74.258843</lng>
               <lat>40.476578</lat>
            </southwest>
            <northeast>
               <lng>-73.700169</lng>
               <lat>40.917705</lat>
            </northeast>
         </bounds>
         <location>
            <lng>-74.0059728</lng>
            <lat>40.7127753</lat>
         </location>
         <location_type>approximate</location_type>
      </geometry>
      <address_components>
         <types>locality</types>
         <types>political</types>
         <short_name>New York</short_name>
         <long_name>New York</long_name>
      </address_components>
      <address_components>
         <types>administrative_area_level_1</types>
         <types>political</types>
         <short_name>NY</short_name>
         <long_name>New York</long_name>
      </address_components>
      <address_components>
         <types>country</types>
         <types>political</types>
         <short_name>US</short_name>
         <long_name>United States</long_name>
      </address_components>
      <place_id>ChIJOwg_06VPwokRYv534QaPC8g</place_id>
   </result>
   <result>
      <formatted_address>New York, USA</formatted_address>
      <types>administrative_area_level_1</types>
      <types>political</types>
      <partial_match>false</partial_match>
      <geometry>
         <viewport>
            <southwest>
               <lng>-79.7625901</lng>
               <lat>40.476578</lat>
            </southwest>
            <northeast>
               <lng>-71.777491</lng>
               <lat>45.015861</lat>
            </northeast>
         </viewport>
         <bounds>
            <southwest>
               <lng>-79.7625901</lng>
               <lat>40.476578</lat>
            </southwest>
            <northeast>
               <lng>-71.777491</lng>
               <lat>45.015861</lat>
            </northeast>
         </bounds>
         <location>
            <lng>-74.21793260000001</lng>
            <lat>43.2994285</lat>
         </location>
         <location_type>approximate</location_type>
      </geometry>
      <address_components>
         <types>administrative_area_level_1</types>
         <types>political</types>
         <short_name>NY</short_name>
         <long_name>New York</long_name>
      </address_components>
      <address_components>
         <types>country</types>
         <types>political</types>
         <short_name>US</short_name>
         <long_name>United States</long_name>
      </address_components>
      <place_id>ChIJqaUj8fBLzEwRZ5UY3sHGz90</place_id>
   </result>
   <result>
      <formatted_address>United States</formatted_address>
      <types>country</types>
      <types>political</types>
      <partial_match>false</partial_match>
      <geometry>
         <viewport>
            <southwest>
               <lng>166.9999999</lng>
               <lat>18.7763</lat>
            </southwest>
            <northeast>
               <lng>-66.885417</lng>
               <lat>74.071038</lat>
            </northeast>
         </viewport>
         <bounds>
            <southwest>
               <lng>166.9999999</lng>
               <lat>18.7763</lat>
            </southwest>
            <northeast>
               <lng>-66.885417</lng>
               <lat>74.071038</lat>
            </northeast>
         </bounds>
         <location>
            <lng>-106.5348379</lng>
            <lat>38.7945952</lat>
         </location>
         <location_type>approximate</location_type>
      </geometry>
      <address_components>
         <types>country</types>
         <types>political</types>
         <short_name>US</short_name>
         <long_name>United States</long_name>
      </address_components>
      <place_id>ChIJCzYy5IS16lQRQrfeQ5K5Oxw</place_id>
   </result>
   <status>OK</status>
</GeocodeResponse>


Output in JSON
JSON
{
  "results": [
    {
      "address_components": [
        {
          "long_name": "279",
          "short_name": "279",
          "types": [
            "street_number"
          ]
        },
        {
          "long_name": "Bedford Avenue",
          "short_name": "Bedford Ave",
          "types": [
            "route"
          ]
        },
        {
          "long_name": "Williamsburg",
          "short_name": "Williamsburg",
          "types": [
            "neighborhood",
            "political"
          ]
        },
        {
          "long_name": "Brooklyn",
          "short_name": "Brooklyn",
          "types": [
            "political",
            "sublocality",
            "sublocality_level_1"
          ]
        },
        {
          "long_name": "Kings County",
          "short_name": "Kings County",
          "types": [
            "administrative_area_level_2",
            "political"
          ]
        },
        {
          "long_name": "New York",
          "short_name": "NY",
          "types": [
            "administrative_area_level_1",
            "political"
          ]
        },
        {
          "long_name": "United States",
          "short_name": "US",
          "types": [
            "country",
            "political"
          ]
        },
        {
          "long_name": "11211",
          "short_name": "11211",
          "types": [
            "postal_code"
          ]
        },
        {
          "long_name": "4203",
          "short_name": "4203",
          "types": [
            "postal_code_suffix"
          ]
        }
      ],
      "formatted_address": "279 Bedford Ave, Brooklyn, NY 11211, USA",
      "geometry": {
        "bounds": {
          "northeast": {
            "lat": 40.71425869999999,
            "lng": -73.9612199
          },
          "southwest": {
            "lat": 40.7141515,
            "lng": -73.9613943
          }
        },
        "location": {
          "lat": 40.714205,
          "lng": -73.9613071
        },
        "location_type": "rooftop",
        "viewport": {
          "northeast": {
            "lat": 40.7155540802915,
            "lng": -73.9599581197085
          },
          "southwest": {
            "lat": 40.7128561197085,
            "lng": -73.96265608029151
          }
        }
      },
      "types": [
        "premise",
        "street_address"
      ],
      "partial_match": false,
      "place_id": "ChIJSVN6Q2BZwokR6N8ueQCX_wM"
    },
    {
      "address_components": [
        {
          "long_name": "294",
          "short_name": "294",
          "types": [
            "street_number"
          ]
        },
        {
          "long_name": "Bedford Avenue",
          "short_name": "Bedford Ave",
          "types": [
            "route"
          ]
        },
        {
          "long_name": "Williamsburg",
          "short_name": "Williamsburg",
          "types": [
            "neighborhood",
            "political"
          ]
        },
        {
          "long_name": "Brooklyn",
          "short_name": "Brooklyn",
          "types": [
            "political",
            "sublocality",
            "sublocality_level_1"
          ]
        },
        {
          "long_name": "Kings County",
          "short_name": "Kings County",
          "types": [
            "administrative_area_level_2",
            "political"
          ]
        },
        {
          "long_name": "New York",
          "short_name": "NY",
          "types": [
            "administrative_area_level_1",
            "political"
          ]
        },
        {
          "long_name": "United States",
          "short_name": "US",
          "types": [
            "country",
            "political"
          ]
        },
        {
          "long_name": "11249",
          "short_name": "11249",
          "types": [
            "postal_code"
          ]
        }
      ],
      "formatted_address": "294 Bedford Ave, Brooklyn, NY 11249, USA",
      "geometry": {
        "location": {
          "lat": 40.7143102,
          "lng": -73.9615663
        },
        "location_type": "rooftop",
        "viewport": {
          "northeast": {
            "lat": 40.7156591802915,
            "lng": -73.9602173197085
          },
          "southwest": {
            "lat": 40.7129612197085,
            "lng": -73.96291528029151
          }
        }
      },
      "types": [
        "street_address",
        "subpremise"
      ],
      "partial_match": false,
      "place_id": "ChIJCWPRWmBZwokR2vqFmfc2-UA"
    },
    {
      "address_components": [
        {
          "long_name": "296",
          "short_name": "296",
          "types": [
            "street_number"
          ]
        },
        {
          "long_name": "Bedford Avenue",
          "short_name": "Bedford Ave",
          "types": [
            "route"
          ]
        },
        {
          "long_name": "Williamsburg",
          "short_name": "Williamsburg",
          "types": [
            "neighborhood",
            "political"
          ]
        },
        {
          "long_name": "Brooklyn",
          "short_name": "Brooklyn",
          "types": [
            "political",
            "sublocality",
            "sublocality_level_1"
          ]
        },
        {
          "long_name": "Kings County",
          "short_name": "Kings County",
          "types": [
            "administrative_area_level_2",
            "political"
          ]
        },
        {
          "long_name": "New York",
          "short_name": "NY",
          "types": [
            "administrative_area_level_1",
            "political"
          ]
        },
        {
          "long_name": "United States",
          "short_name": "US",
          "types": [
            "country",
            "political"
          ]
        },
        {
          "long_name": "11249",
          "short_name": "11249",
          "types": [
            "postal_code"
          ]
        }
      ],
      "formatted_address": "296 Bedford Ave, Brooklyn, NY 11249, USA",
      "geometry": {
        "location": {
          "lat": 40.7143102,
          "lng": -73.9615908
        },
        "location_type": "rooftop",
        "viewport": {
          "northeast": {
            "lat": 40.7156591802915,
            "lng": -73.9602418197085
          },
          "southwest": {
            "lat": 40.7129612197085,
            "lng": -73.9629397802915
          }
        }
      },
      "types": [
        "establishment",
        "food",
        "point_of_interest",
        "restaurant"
      ],
      "partial_match": false,
      "place_id": "ChIJ_96tiV9ZwokR9WzRljQslqY",
      "plus_code": {
        "global_code": "87G8P27Q+P9",
        "compound_code": "P27Q+P9 Brooklyn, NY, USA"
      }
    },
    {
      "address_components": [
        {
          "long_name": "298",
          "short_name": "298",
          "types": [
            "street_number"
          ]
        },
        {
          "long_name": "Bedford Avenue",
          "short_name": "Bedford Ave",
          "types": [
            "route"
          ]
        },
        {
          "long_name": "Williamsburg",
          "short_name": "Williamsburg",
          "types": [
            "neighborhood",
            "political"
          ]
        },
        {
          "long_name": "Brooklyn",
          "short_name": "Brooklyn",
          "types": [
            "political",
            "sublocality",
            "sublocality_level_1"
          ]
        },
        {
          "long_name": "Kings County",
          "short_name": "Kings County",
          "types": [
            "administrative_area_level_2",
            "political"
          ]
        },
        {
          "long_name": "New York",
          "short_name": "NY",
          "types": [
            "administrative_area_level_1",
            "political"
          ]
        },
        {
          "long_name": "United States",
          "short_name": "US",
          "types": [
            "country",
            "political"
          ]
        },
        {
          "long_name": "11249",
          "short_name": "11249",
          "types": [
            "postal_code"
          ]
        }
      ],
      "formatted_address": "298 Bedford Ave, Brooklyn, NY 11249, USA",
      "geometry": {
        "location": {
          "lat": 40.7141968,
          "lng": -73.9615003
        },
        "location_type": "range_interpolated",
        "viewport": {
          "northeast": {
            "lat": 40.71554578029149,
            "lng": -73.9601513197085
          },
          "southwest": {
            "lat": 40.7128478197085,
            "lng": -73.96284928029151
          }
        }
      },
      "types": [
        "street_address"
      ],
      "partial_match": false,
      "place_id": "EigyOTggQmVkZm9yZCBBdmUsIEJyb29rbHluLCBOWSAxMTI0OSwgVVNBIhsSGQoUChIJ8ThWRGBZwokR3U1zUisk3LUQqgI"
    },
    {
      "address_components": [
        {
          "long_name": "291-275",
          "short_name": "291-275",
          "types": [
            "street_number"
          ]
        },
        {
          "long_name": "Bedford Avenue",
          "short_name": "Bedford Ave",
          "types": [
            "route"
          ]
        },
        {
          "long_name": "Williamsburg",
          "short_name": "Williamsburg",
          "types": [
            "neighborhood",
            "political"
          ]
        },
        {
          "long_name": "Brooklyn",
          "short_name": "Brooklyn",
          "types": [
            "political",
            "sublocality",
            "sublocality_level_1"
          ]
        },
        {
          "long_name": "Kings County",
          "short_name": "Kings County",
          "types": [
            "administrative_area_level_2",
            "political"
          ]
        },
        {
          "long_name": "New York",
          "short_name": "NY",
          "types": [
            "administrative_area_level_1",
            "political"
          ]
        },
        {
          "long_name": "United States",
          "short_name": "US",
          "types": [
            "country",
            "political"
          ]
        },
        {
          "long_name": "11211",
          "short_name": "11211",
          "types": [
            "postal_code"
          ]
        }
      ],
      "formatted_address": "291-275 Bedford Ave, Brooklyn, NY 11211, USA",
      "geometry": {
        "bounds": {
          "northeast": {
            "lat": 40.7145011,
            "lng": -73.9612865
          },
          "southwest": {
            "lat": 40.7139056,
            "lng": -73.96168589999999
          }
        },
        "location": {
          "lat": 40.7142065,
          "lng": -73.9614941
        },
        "location_type": "geometric_center",
        "viewport": {
          "northeast": {
            "lat": 40.71555233029149,
            "lng": -73.9601372197085
          },
          "southwest": {
            "lat": 40.7128543697085,
            "lng": -73.9628351802915
          }
        }
      },
      "types": [
        "route"
      ],
      "partial_match": false,
      "place_id": "ChIJ8ThWRGBZwokR3E1zUisk3LU"
    },
    {
      "address_components": [
        {
          "long_name": "P27Q+MC",
          "short_name": "P27Q+MC",
          "types": [
            "plus_code"
          ]
        },
        {
          "long_name": "New York",
          "short_name": "New York",
          "types": [
            "locality",
            "political"
          ]
        },
        {
          "long_name": "New York",
          "short_name": "NY",
          "types": [
            "administrative_area_level_1",
            "political"
          ]
        },
        {
          "long_name": "United States",
          "short_name": "US",
          "types": [
            "country",
            "political"
          ]
        }
      ],
      "formatted_address": "P27Q+MC New York, NY, USA",
      "geometry": {
        "bounds": {
          "northeast": {
            "lat": 40.71425,
            "lng": -73.96137499999999
          },
          "southwest": {
            "lat": 40.714125,
            "lng": -73.9615
          }
        },
        "location": {
          "lat": 40.714224,
          "lng": -73.961452
        },
        "location_type": "geometric_center",
        "viewport": {
          "northeast": {
            "lat": 40.71553648029149,
            "lng": -73.96008851970849
          },
          "southwest": {
            "lat": 40.71283851970849,
            "lng": -73.96278648029151
          }
        }
      },
      "types": [
        "plus_code"
      ],
      "partial_match": false,
      "place_id": "GhIJWAIpsWtbREARHyv4bYh9UsA",
      "plus_code": {
        "global_code": "87G8P27Q+MC",
        "compound_code": "P27Q+MC New York, NY, USA"
      }
    },
    {
      "address_components": [
        {
          "long_name": "South Williamsburg",
          "short_name": "South Williamsburg",
          "types": [
            "neighborhood",
            "political"
          ]
        },
        {
          "long_name": "Brooklyn",
          "short_name": "Brooklyn",
          "types": [
            "political",
            "sublocality",
            "sublocality_level_1"
          ]
        },
        {
          "long_name": "Kings County",
          "short_name": "Kings County",
          "types": [
            "administrative_area_level_2",
            "political"
          ]
        },
        {
          "long_name": "New York",
          "short_name": "NY",
          "types": [
            "administrative_area_level_1",
            "political"
          ]
        },
        {
          "long_name": "United States",
          "short_name": "US",
          "types": [
            "country",
            "political"
          ]
        }
      ],
      "formatted_address": "South Williamsburg, Brooklyn, NY, USA",
      "geometry": {
        "bounds": {
          "northeast": {
            "lat": 40.7167119,
            "lng": -73.9420904
          },
          "southwest": {
            "lat": 40.6984866,
            "lng": -73.9699432
          }
        },
        "location": {
          "lat": 40.7043921,
          "lng": -73.9565551
        },
        "location_type": "approximate",
        "viewport": {
          "northeast": {
            "lat": 40.7167119,
            "lng": -73.9420904
          },
          "southwest": {
            "lat": 40.6984866,
            "lng": -73.9699432
          }
        }
      },
      "types": [
        "neighborhood",
        "political"
      ],
      "partial_match": false,
      "place_id": "ChIJR3_ODdlbwokRYtN19kNtcuk"
    },
    {
      "address_components": [
        {
          "long_name": "11211",
          "short_name": "11211",
          "types": [
            "postal_code"
          ]
        },
        {
          "long_name": "Brooklyn",
          "short_name": "Brooklyn",
          "types": [
            "political",
            "sublocality",
            "sublocality_level_1"
          ]
        },
        {
          "long_name": "New York",
          "short_name": "New York",
          "types": [
            "locality",
            "political"
          ]
        },
        {
          "long_name": "New York",
          "short_name": "NY",
          "types": [
            "administrative_area_level_1",
            "political"
          ]
        },
        {
          "long_name": "United States",
          "short_name": "US",
          "types": [
            "country",
            "political"
          ]
        }
      ],
      "formatted_address": "Brooklyn, NY 11211, USA",
      "geometry": {
        "bounds": {
          "northeast": {
            "lat": 40.7280089,
            "lng": -73.9207299
          },
          "southwest": {
            "lat": 40.7008331,
            "lng": -73.9644697
          }
        },
        "location": {
          "lat": 40.7093358,
          "lng": -73.9565551
        },
        "location_type": "approximate",
        "viewport": {
          "northeast": {
            "lat": 40.7280089,
            "lng": -73.9207299
          },
          "southwest": {
            "lat": 40.7008331,
            "lng": -73.9644697
          }
        }
      },
      "types": [
        "postal_code"
      ],
      "partial_match": false,
      "place_id": "ChIJvbEjlVdZwokR4KapM3WCFRw"
    },
    {
      "address_components": [
        {
          "long_name": "Williamsburg",
          "short_name": "Williamsburg",
          "types": [
            "neighborhood",
            "political"
          ]
        },
        {
          "long_name": "Brooklyn",
          "short_name": "Brooklyn",
          "types": [
            "political",
            "sublocality",
            "sublocality_level_1"
          ]
        },
        {
          "long_name": "Kings County",
          "short_name": "Kings County",
          "types": [
            "administrative_area_level_2",
            "political"
          ]
        },
        {
          "long_name": "New York",
          "short_name": "NY",
          "types": [
            "administrative_area_level_1",
            "political"
          ]
        },
        {
          "long_name": "United States",
          "short_name": "US",
          "types": [
            "country",
            "political"
          ]
        }
      ],
      "formatted_address": "Williamsburg, Brooklyn, NY, USA",
      "geometry": {
        "bounds": {
          "northeast": {
            "lat": 40.7251773,
            "lng": -73.9369427
          },
          "southwest": {
            "lat": 40.6979329,
            "lng": -73.96984499999999
          }
        },
        "location": {
          "lat": 40.7081156,
          "lng": -73.9570696
        },
        "location_type": "approximate",
        "viewport": {
          "northeast": {
            "lat": 40.7251773,
            "lng": -73.9369427
          },
          "southwest": {
            "lat": 40.6979329,
            "lng": -73.96984499999999
          }
        }
      },
      "types": [
        "neighborhood",
        "political"
      ],
      "partial_match": false,
      "place_id": "ChIJQSrBBv1bwokRbNfFHCnyeYI"
    },
    {
      "address_components": [
        {
          "long_name": "Kings County",
          "short_name": "Kings County",
          "types": [
            "administrative_area_level_2",
            "political"
          ]
        },
        {
          "long_name": "Brooklyn",
          "short_name": "Brooklyn",
          "types": [
            "political",
            "sublocality",
            "sublocality_level_1"
          ]
        },
        {
          "long_name": "New York",
          "short_name": "NY",
          "types": [
            "administrative_area_level_1",
            "political"
          ]
        },
        {
          "long_name": "United States",
          "short_name": "US",
          "types": [
            "country",
            "political"
          ]
        }
      ],
      "formatted_address": "Kings County, Brooklyn, NY, USA",
      "geometry": {
        "bounds": {
          "northeast": {
            "lat": 40.7394209,
            "lng": -73.8330411
          },
          "southwest": {
            "lat": 40.551042,
            "lng": -74.05663
          }
        },
        "location": {
          "lat": 40.6528762,
          "lng": -73.95949399999999
        },
        "location_type": "approximate",
        "viewport": {
          "northeast": {
            "lat": 40.7394209,
            "lng": -73.8330411
          },
          "southwest": {
            "lat": 40.551042,
            "lng": -74.05663
          }
        }
      },
      "types": [
        "administrative_area_level_2",
        "political"
      ],
      "partial_match": false,
      "place_id": "ChIJOwE7_GTtwokRs75rhW4_I6M"
    },
    {
      "address_components": [
        {
          "long_name": "Brooklyn",
          "short_name": "Brooklyn",
          "types": [
            "political",
            "sublocality",
            "sublocality_level_1"
          ]
        },
        {
          "long_name": "Kings County",
          "short_name": "Kings County",
          "types": [
            "administrative_area_level_2",
            "political"
          ]
        },
        {
          "long_name": "New York",
          "short_name": "NY",
          "types": [
            "administrative_area_level_1",
            "political"
          ]
        },
        {
          "long_name": "United States",
          "short_name": "US",
          "types": [
            "country",
            "political"
          ]
        }
      ],
      "formatted_address": "Brooklyn, NY, USA",
      "geometry": {
        "bounds": {
          "northeast": {
            "lat": 40.7394209,
            "lng": -73.8330411
          },
          "southwest": {
            "lat": 40.551042,
            "lng": -74.05663
          }
        },
        "location": {
          "lat": 40.6781784,
          "lng": -73.9441579
        },
        "location_type": "approximate",
        "viewport": {
          "northeast": {
            "lat": 40.7394209,
            "lng": -73.8330411
          },
          "southwest": {
            "lat": 40.551042,
            "lng": -74.05663
          }
        }
      },
      "types": [
        "political",
        "sublocality",
        "sublocality_level_1"
      ],
      "partial_match": false,
      "place_id": "ChIJCSF8lBZEwokRhngABHRcdoI"
    },
    {
      "address_components": [
        {
          "long_name": "New York",
          "short_name": "New York",
          "types": [
            "locality",
            "political"
          ]
        },
        {
          "long_name": "New York",
          "short_name": "NY",
          "types": [
            "administrative_area_level_1",
            "political"
          ]
        },
        {
          "long_name": "United States",
          "short_name": "US",
          "types": [
            "country",
            "political"
          ]
        }
      ],
      "formatted_address": "New York, NY, USA",
      "geometry": {
        "bounds": {
          "northeast": {
            "lat": 40.917705,
            "lng": -73.700169
          },
          "southwest": {
            "lat": 40.476578,
            "lng": -74.258843
          }
        },
        "location": {
          "lat": 40.7127753,
          "lng": -74.0059728
        },
        "location_type": "approximate",
        "viewport": {
          "northeast": {
            "lat": 40.917705,
            "lng": -73.700169
          },
          "southwest": {
            "lat": 40.476578,
            "lng": -74.258843
          }
        }
      },
      "types": [
        "locality",
        "political"
      ],
      "partial_match": false,
      "place_id": "ChIJOwg_06VPwokRYv534QaPC8g"
    },
    {
      "address_components": [
        {
          "long_name": "New York",
          "short_name": "NY",
          "types": [
            "administrative_area_level_1",
            "political"
          ]
        },
        {
          "long_name": "United States",
          "short_name": "US",
          "types": [
            "country",
            "political"
          ]
        }
      ],
      "formatted_address": "New York, USA",
      "geometry": {
        "bounds": {
          "northeast": {
            "lat": 45.015861,
            "lng": -71.777491
          },
          "southwest": {
            "lat": 40.476578,
            "lng": -79.7625901
          }
        },
        "location": {
          "lat": 43.2994285,
          "lng": -74.21793260000001
        },
        "location_type": "approximate",
        "viewport": {
          "northeast": {
            "lat": 45.015861,
            "lng": -71.777491
          },
          "southwest": {
            "lat": 40.476578,
            "lng": -79.7625901
          }
        }
      },
      "types": [
        "administrative_area_level_1",
        "political"
      ],
      "partial_match": false,
      "place_id": "ChIJqaUj8fBLzEwRZ5UY3sHGz90"
    },
    {
      "address_components": [
        {
          "long_name": "United States",
          "short_name": "US",
          "types": [
            "country",
            "political"
          ]
        }
      ],
      "formatted_address": "United States",
      "geometry": {
        "bounds": {
          "northeast": {
            "lat": 74.071038,
            "lng": -66.885417
          },
          "southwest": {
            "lat": 18.7763,
            "lng": 166.9999999
          }
        },
        "location": {
          "lat": 38.7945952,
          "lng": -106.5348379
        },
        "location_type": "approximate",
        "viewport": {
          "northeast": {
            "lat": 74.071038,
            "lng": -66.885417
          },
          "southwest": {
            "lat": 18.7763,
            "lng": 166.9999999
          }
        }
      },
      "types": [
        "country",
        "political"
      ],
      "partial_match": false,
      "place_id": "ChIJCzYy5IS16lQRQrfeQ5K5Oxw"
    }
  ],
  "status": "OK"
}