<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Kommentare zu: Google Maps Geocoding with JSON and PHP	</title>
	<atom:link href="https://drzycimski.com/programmierung/google-maps-geocoding-api-with-json-and-php/feed/" rel="self" type="application/rss+xml" />
	<link>https://drzycimski.com/programmierung/google-maps-geocoding-api-with-json-and-php/</link>
	<description></description>
	<lastBuildDate>Sun, 01 Oct 2017 16:52:34 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>
		Von: nixtel		</title>
		<link>https://drzycimski.com/programmierung/google-maps-geocoding-api-with-json-and-php/#comment-132</link>

		<dc:creator><![CDATA[nixtel]]></dc:creator>
		<pubDate>Tue, 13 Mar 2012 12:31:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.drzycimski.com/?p=115#comment-132</guid>

					<description><![CDATA[Here code to make code working without Zend :

1 - Replace function _sendRequest :

	/**
	* Send Google geocoding request
	*
	* @param string $search 
	* @return object response (body only)
	*/
	private function _sendRequest($search)
	{
        $url =  $this-&#062;url . $search . &#039;&#038;language=&#039; . strtolower($this-&#062;language) . &#039;&#038;sensor=&#039; . strtolower($this-&#062;sensor);
        
        $resp_json = self::curl_file_get_contents($url);
        $this-&#062;response = json_decode($resp_json);
 
 		if ($this-&#062;response-&#062;status == &quot;OK&quot;) {
			// set some default values for reading
			$defaults = $this-&#062;_setDefaults();
			return $this-&#062;response;
		} else { 
			echo &quot;Geocoding failed, server responded: &quot; . $this-&#062;response-&#062;status; 
			return false;
		}
	} // end request

2 - Add curl function to make the request :

 	/**
	* Use CURL to make request
	*
	* @param URL
	* @return Contents
	*/
    private function curl_file_get_contents($URL){
        $c = curl_init();
        curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($c, CURLOPT_URL, $URL);
        $contents = curl_exec($c);
        curl_close($c);

        if ($contents) return $contents;
            else return FALSE;
    }

That&#039;s all ;)]]></description>
			<content:encoded><![CDATA[<p>Here code to make code working without Zend :</p>
<p>1 &#8211; Replace function _sendRequest :</p>
<p>	/**<br />
	* Send Google geocoding request<br />
	*<br />
	* @param string $search<br />
	* @return object response (body only)<br />
	*/<br />
	private function _sendRequest($search)<br />
	{<br />
        $url =  $this-&gt;url . $search . &#8218;&amp;language=&#8216; . strtolower($this-&gt;language) . &#8218;&amp;sensor=&#8216; . strtolower($this-&gt;sensor);</p>
<p>        $resp_json = self::curl_file_get_contents($url);<br />
        $this-&gt;response = json_decode($resp_json);</p>
<p> 		if ($this-&gt;response-&gt;status == &#8222;OK&#8220;) {<br />
			// set some default values for reading<br />
			$defaults = $this-&gt;_setDefaults();<br />
			return $this-&gt;response;<br />
		} else {<br />
			echo &#8222;Geocoding failed, server responded: &#8220; . $this-&gt;response-&gt;status;<br />
			return false;<br />
		}<br />
	} // end request</p>
<p>2 &#8211; Add curl function to make the request :</p>
<p> 	/**<br />
	* Use CURL to make request<br />
	*<br />
	* @param URL<br />
	* @return Contents<br />
	*/<br />
    private function curl_file_get_contents($URL){<br />
        $c = curl_init();<br />
        curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);<br />
        curl_setopt($c, CURLOPT_URL, $URL);<br />
        $contents = curl_exec($c);<br />
        curl_close($c);</p>
<p>        if ($contents) return $contents;<br />
            else return FALSE;<br />
    }</p>
<p>That&#8217;s all 😉</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Chung Xà		</title>
		<link>https://drzycimski.com/programmierung/google-maps-geocoding-api-with-json-and-php/#comment-129</link>

		<dc:creator><![CDATA[Chung Xà]]></dc:creator>
		<pubDate>Tue, 17 Jan 2012 07:39:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.drzycimski.com/?p=115#comment-129</guid>

					<description><![CDATA[This class need Zend to work]]></description>
			<content:encoded><![CDATA[<p>This class need Zend to work</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Dom		</title>
		<link>https://drzycimski.com/programmierung/google-maps-geocoding-api-with-json-and-php/#comment-92</link>

		<dc:creator><![CDATA[Dom]]></dc:creator>
		<pubDate>Sun, 11 Sep 2011 07:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.drzycimski.com/?p=115#comment-92</guid>

					<description><![CDATA[Thanks a million for this tutorial!]]></description>
			<content:encoded><![CDATA[<p>Thanks a million for this tutorial!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: widyana		</title>
		<link>https://drzycimski.com/programmierung/google-maps-geocoding-api-with-json-and-php/#comment-86</link>

		<dc:creator><![CDATA[widyana]]></dc:creator>
		<pubDate>Thu, 11 Aug 2011 03:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.drzycimski.com/?p=115#comment-86</guid>

					<description><![CDATA[hi, thanks for this tutorial. .]]></description>
			<content:encoded><![CDATA[<p>hi, thanks for this tutorial. .</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Thomas		</title>
		<link>https://drzycimski.com/programmierung/google-maps-geocoding-api-with-json-and-php/#comment-62</link>

		<dc:creator><![CDATA[Thomas]]></dc:creator>
		<pubDate>Wed, 18 May 2011 12:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.drzycimski.com/?p=115#comment-62</guid>

					<description><![CDATA[Thanks alot, just what i needed!]]></description>
			<content:encoded><![CDATA[<p>Thanks alot, just what i needed!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
