<?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>Comments on: iPad/iPhone forward geocoding API using Google gecoding service</title>
	<atom:link href="http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/</link>
	<description>Code, Code, Revolution!</description>
	<lastBuildDate>Fri, 03 Sep 2010 14:40:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ariel Krieger</title>
		<link>http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/comment-page-1/#comment-13204</link>
		<dc:creator>Ariel Krieger</dc:creator>
		<pubDate>Fri, 03 Sep 2010 14:40:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=833#comment-13204</guid>
		<description>Hey Bjorn,

First let me just say WOW. That is some great code you put up here...thanks!
I was wondering though, can your code be modified in some way to calculate distance between two searched locations? Perhaps using Google&#039;s Directions API?
I thought maybe using your observeValueForKeyPath function which spits out a coordinate.latitude value for each selected annotation...

Thanks again</description>
		<content:encoded><![CDATA[<p>Hey Bjorn,</p>
<p>First let me just say WOW. That is some great code you put up here&#8230;thanks!<br />
I was wondering though, can your code be modified in some way to calculate distance between two searched locations? Perhaps using Google&#8217;s Directions API?<br />
I thought maybe using your observeValueForKeyPath function which spits out a coordinate.latitude value for each selected annotation&#8230;</p>
<p>Thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Björn Sållarp</title>
		<link>http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/comment-page-1/#comment-13049</link>
		<dc:creator>Björn Sållarp</dc:creator>
		<pubDate>Thu, 26 Aug 2010 06:14:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=833#comment-13049</guid>
		<description>@Jorge, I am unable to correctly answer the legal questions, but my assumption is that it&#039;s probably not ok to use their API in a commercial app for free. There must be a reason other than laziness that it&#039;s not included in MAPKit. 

If you do use it however it won&#039;t matter if Apple replace the maps. Google return standard wgs84 coordinates that apply to any map. </description>
		<content:encoded><![CDATA[<p>@Jorge, I am unable to correctly answer the legal questions, but my assumption is that it&#8217;s probably not ok to use their API in a commercial app for free. There must be a reason other than laziness that it&#8217;s not included in MAPKit. </p>
<p>If you do use it however it won&#8217;t matter if Apple replace the maps. Google return standard wgs84 coordinates that apply to any map.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge</title>
		<link>http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/comment-page-1/#comment-13046</link>
		<dc:creator>Jorge</dc:creator>
		<pubDate>Wed, 25 Aug 2010 22:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=833#comment-13046</guid>
		<description>the example is great, thanks a lot for sharing.
all i wonder: is it allowed to use the google api for a iphone-app?
if one wants to retrieve the locations, but not immediately show it on a google map - maybe at some point later.
and what if apple switches the maps to some other provider one time?
i&#039;m not sure how to understand the google terms, when it comes down to a (commercial) iphone-app...</description>
		<content:encoded><![CDATA[<p>the example is great, thanks a lot for sharing.<br />
all i wonder: is it allowed to use the google api for a iphone-app?<br />
if one wants to retrieve the locations, but not immediately show it on a google map &#8211; maybe at some point later.<br />
and what if apple switches the maps to some other provider one time?<br />
i&#8217;m not sure how to understand the google terms, when it comes down to a (commercial) iphone-app&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davide Benini</title>
		<link>http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/comment-page-1/#comment-12982</link>
		<dc:creator>Davide Benini</dc:creator>
		<pubDate>Fri, 20 Aug 2010 07:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=833#comment-12982</guid>
		<description>I second Victor&#039;s suggestion. I am using your wonderful classes in a project of mine, and also had noticed the address was missing from the BSKMLResult; by applying Victor&#039;s patch everything is fixed.

At any rate, thanks a ton for this classes Björn. If you ever come to Verona, Italy, there&#039;s a pint for you here.</description>
		<content:encoded><![CDATA[<p>I second Victor&#8217;s suggestion. I am using your wonderful classes in a project of mine, and also had noticed the address was missing from the BSKMLResult; by applying Victor&#8217;s patch everything is fixed.</p>
<p>At any rate, thanks a ton for this classes Björn. If you ever come to Verona, Italy, there&#8217;s a pint for you here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor</title>
		<link>http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/comment-page-1/#comment-12947</link>
		<dc:creator>Victor</dc:creator>
		<pubDate>Tue, 17 Aug 2010 20:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=833#comment-12947</guid>
		<description>Think I figured out the issue.  Line 220 of BSGoogleV3KmlParser.m should be changed from: 	
else if ([elementName isEqualToString:@&quot;formattedAddress&quot;]) {
to:
	else if ([elementName isEqualToString:@&quot;formatted_address&quot;]) {

then I think the annotation title will set correctly.</description>
		<content:encoded><![CDATA[<p>Think I figured out the issue.  Line 220 of BSGoogleV3KmlParser.m should be changed from:<br />
else if ([elementName isEqualToString:@"formattedAddress"]) {<br />
to:<br />
	else if ([elementName isEqualToString:@"formatted_address"]) {</p>
<p>then I think the annotation title will set correctly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor</title>
		<link>http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/comment-page-1/#comment-12887</link>
		<dc:creator>Victor</dc:creator>
		<pubDate>Fri, 13 Aug 2010 21:15:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=833#comment-12887</guid>
		<description>This is great! I don&#039;t think the BSKmlResult contains all the results it claims to, though (esp for version 3 of the API)... I&#039;m too much of a newbie to figure it out myself, though. 
If I override the description in BSKmlresult.m to see what&#039;s coming out:

- (NSString *)description
{
	NSString *descriptionString = 
	[[NSString alloc] initWithFormat:@&quot;address %@ countryNameCode %@ countryName %@ subAdministrativeAreaName %@ localityName %@ viewportSouthWestLat %d viewportSouthWestLon %d viewportNorthEastLat %d viewportNorthEastLon %d boundsSouthWestLat %d boundsSouthWestLon %d boundsNorthEastLat %d boundsNElon %d latitude %d longitude %d height %d accuracy %d NSArray addressComponents %@&quot;, address, countryNameCode, countryName, subAdministrativeAreaName, localityName, viewportSouthWestLat, viewportSouthWestLon, viewportNorthEastLat, viewportNorthEastLon, boundsSouthWestLat, boundsSouthWestLon, boundsNorthEastLat, boundsNorthEastLon, latitude, longitude, height, accuracy, addressComponents];
	return [descriptionString autorelease];
}

then if I add a description after the results are obtained in viewController.m:
			BSKmlResult *place = [forwardGeocoder.results objectAtIndex:i];
			NSLog(@&quot;subclassed description (messy): %@&quot;,place);

Looking in the console: For version 2, I don&#039;t get lat/lon/height/accuracy (in addition to the ones you list above as not being returned in ver 2).  For version 3, I don&#039;t seem to get lat/lon/height/accuracy or the addressComponents array.  Also in ver 3, the annotation titles don&#039;t set correctly because &#039;address&#039; is null (in addition to the ones missing that we expect).</description>
		<content:encoded><![CDATA[<p>This is great! I don&#8217;t think the BSKmlResult contains all the results it claims to, though (esp for version 3 of the API)&#8230; I&#8217;m too much of a newbie to figure it out myself, though.<br />
If I override the description in BSKmlresult.m to see what&#8217;s coming out:</p>
<p>- (NSString *)description<br />
{<br />
	NSString *descriptionString =<br />
	[[NSString alloc] initWithFormat:@&#8221;address %@ countryNameCode %@ countryName %@ subAdministrativeAreaName %@ localityName %@ viewportSouthWestLat %d viewportSouthWestLon %d viewportNorthEastLat %d viewportNorthEastLon %d boundsSouthWestLat %d boundsSouthWestLon %d boundsNorthEastLat %d boundsNElon %d latitude %d longitude %d height %d accuracy %d NSArray addressComponents %@&#8221;, address, countryNameCode, countryName, subAdministrativeAreaName, localityName, viewportSouthWestLat, viewportSouthWestLon, viewportNorthEastLat, viewportNorthEastLon, boundsSouthWestLat, boundsSouthWestLon, boundsNorthEastLat, boundsNorthEastLon, latitude, longitude, height, accuracy, addressComponents];<br />
	return [descriptionString autorelease];<br />
}</p>
<p>then if I add a description after the results are obtained in viewController.m:<br />
			BSKmlResult *place = [forwardGeocoder.results objectAtIndex:i];<br />
			NSLog(@&#8221;subclassed description (messy): %@&#8221;,place);</p>
<p>Looking in the console: For version 2, I don&#8217;t get lat/lon/height/accuracy (in addition to the ones you list above as not being returned in ver 2).  For version 3, I don&#8217;t seem to get lat/lon/height/accuracy or the addressComponents array.  Also in ver 3, the annotation titles don&#8217;t set correctly because &#8216;address&#8217; is null (in addition to the ones missing that we expect).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gonso</title>
		<link>http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/comment-page-1/#comment-12534</link>
		<dc:creator>Gonso</dc:creator>
		<pubDate>Wed, 28 Jul 2010 23:26:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=833#comment-12534</guid>
		<description>Great Implementation!

I&#039;ve added this to a project and its working like a charm!

Hi quality work.

Gonso</description>
		<content:encoded><![CDATA[<p>Great Implementation!</p>
<p>I&#8217;ve added this to a project and its working like a charm!</p>
<p>Hi quality work.</p>
<p>Gonso</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerald</title>
		<link>http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/comment-page-1/#comment-12384</link>
		<dc:creator>Gerald</dc:creator>
		<pubDate>Thu, 22 Jul 2010 17:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=833#comment-12384</guid>
		<description>Thank you very much. This awesome.

Gerald</description>
		<content:encoded><![CDATA[<p>Thank you very much. This awesome.</p>
<p>Gerald</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Björn Sållarp</title>
		<link>http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/comment-page-1/#comment-12273</link>
		<dc:creator>Björn Sållarp</dc:creator>
		<pubDate>Sat, 17 Jul 2010 08:23:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=833#comment-12273</guid>
		<description>@Fauad,

The example in this post is only for forward geocoding, meaning, you know the name of a location and want the coordinates of that location. Google maps API v3 doesn&#039;t require an API key but other services do, you probably want to use the new Places API (still in preview). Check out Googles services here:
http://code.google.com/intl/sv-SE/apis/maps/documentation/webservices/index.html

User location in the simulator only shows a somewhat correct location if you&#039;re on a WLAN that has been scanned by Skyhook, otherwise your location is set to California USA. This will work on the iPhone.

You can find more information on traffic information here:
http://code.google.com/intl/en-US/apis/maps/documentation/javascript/overlays.html#TrafficLayer
I&#039;m not sure if you can use it for the iphone.

Good luck with your project!</description>
		<content:encoded><![CDATA[<p>@Fauad,</p>
<p>The example in this post is only for forward geocoding, meaning, you know the name of a location and want the coordinates of that location. Google maps API v3 doesn&#8217;t require an API key but other services do, you probably want to use the new Places API (still in preview). Check out Googles services here:<br />
<a href="http://code.google.com/intl/sv-SE/apis/maps/documentation/webservices/index.html">http://code.google.com/intl/sv-SE/apis/maps/documentation/webservices/index.html</a></p>
<p>User location in the simulator only shows a somewhat correct location if you&#8217;re on a WLAN that has been scanned by Skyhook, otherwise your location is set to California USA. This will work on the iPhone.</p>
<p>You can find more information on traffic information here:<br />
<a href="http://code.google.com/intl/en-US/apis/maps/documentation/javascript/overlays.html#TrafficLayer">http://code.google.com/intl/en-US/apis/maps/documentation/javascript/overlays.html#TrafficLayer</a><br />
I&#8217;m not sure if you can use it for the iphone.</p>
<p>Good luck with your project!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fauad Anwar</title>
		<link>http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/comment-page-1/#comment-12162</link>
		<dc:creator>Fauad Anwar</dc:creator>
		<pubDate>Tue, 13 Jul 2010 06:00:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=833#comment-12162</guid>
		<description>Hi,
I am confused on topic about key.
I am developing an application which show current location and info near about my location.
Is it require for me to obtain key for it?
When i run application in simulator it point my location to some infinite loop place not my location. (I am using Interface builder to show my current location). Is this due to simulation and it will work properly on iPhone??

Also how can i get traffic info from Google and show it in my map?

If possible give reply or give some sample code.

(last time i have created a API key, it works for my app. that time. But same code not working today for me.) Giving me error invalid parameter where i called url with my key.

Thanks in Advance.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am confused on topic about key.<br />
I am developing an application which show current location and info near about my location.<br />
Is it require for me to obtain key for it?<br />
When i run application in simulator it point my location to some infinite loop place not my location. (I am using Interface builder to show my current location). Is this due to simulation and it will work properly on iPhone??</p>
<p>Also how can i get traffic info from Google and show it in my map?</p>
<p>If possible give reply or give some sample code.</p>
<p>(last time i have created a API key, it works for my app. that time. But same code not working today for me.) Giving me error invalid parameter where i called url with my key.</p>
<p>Thanks in Advance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: blog.sallarp.com @ 2010-09-09 07:01:52 -->