<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jappit.com &#187; google maps</title>
	<atom:link href="http://www.jappit.com/blog/tag/google-maps/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jappit.com/blog</link>
	<description>Mobile blog by Alessandro La Rosa</description>
	<lastBuildDate>Wed, 23 Nov 2011 10:38:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>MidMaps: new Google Maps API for J2ME</title>
		<link>http://www.jappit.com/blog/2010/02/25/midmaps-new-google-maps-library-for-j2me/</link>
		<comments>http://www.jappit.com/blog/2010/02/25/midmaps-new-google-maps-library-for-j2me/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 09:13:40 +0000</pubDate>
		<dc:creator>pit</dc:creator>
				<category><![CDATA[cool stuff]]></category>
		<category><![CDATA[j2me]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[sample code]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[geocoding]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[library]]></category>

		<guid isPermaLink="false">http://www.jappit.com/blog/?p=1313</guid>
		<description><![CDATA[I finally found some time to finish and publish the first release of a tiny library that allow to easily integrate Google Maps in every J2ME application: MidMaps. You can read all the details, download the library together with sample code, and read the full JavaDocs here: MidMaps &#8211; J2ME Google Maps library.]]></description>
			<content:encoded><![CDATA[<p>I finally found some time to finish and publish the first release of a tiny <strong>library that allow to easily integrate Google Maps in every J2ME application</strong>: <a title="MidMaps - J2ME Google Maps API" href="http://www.jappit.com/blog/midmaps-google-maps-java-me-library/">MidMaps</a>.</p>
<p><a title="MidMaps - J2ME Google Maps library" href="http://www.jappit.com/blog/midmaps-google-maps-java-me-library/"><img class="alignnone size-full wp-image-1316" title="MidMaps - J2ME Google Maps library" src="http://www.jappit.com/blog/wp-content/midmaps_shots.png" alt="" width="640" height="289" /></a></p>
<p>You can read all the details, <strong>download the library together with sample code,</strong> and read the <strong>full JavaDocs</strong> here: <a title="MidMaps - J2ME Google Maps API" href="http://www.jappit.com/blog/midmaps-google-maps-java-me-library/">MidMaps &#8211; J2ME Google Maps library</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jappit.com/blog/2010/02/25/midmaps-new-google-maps-library-for-j2me/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Using Google Static Maps in your widget with JavaScript</title>
		<link>http://www.jappit.com/blog/2010/02/01/using-google-static-maps-in-your-widget-with-javascript/</link>
		<comments>http://www.jappit.com/blog/2010/02/01/using-google-static-maps-in-your-widget-with-javascript/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 07:31:55 +0000</pubDate>
		<dc:creator>pit</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[sample code]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web runtime]]></category>
		<category><![CDATA[widgets]]></category>
		<category><![CDATA[forum nokia wiki]]></category>
		<category><![CDATA[forumnokia]]></category>
		<category><![CDATA[google maps]]></category>

		<guid isPermaLink="false">http://www.jappit.com/blog/?p=831</guid>
		<description><![CDATA[A new featured article from Ar.tur on Forum Nokia Wiki shows you how to use the static version of Google Maps in your mobile widget by using few lines of JavaScript code. The same article also shows how to use the Location API from Web Runtime Platform Services to retrieve your current location, and then [...]]]></description>
			<content:encoded><![CDATA[<p>A <strong>new featured article</strong> from <a title="Ar.tur profile" href="http://wiki.forum.nokia.com/index.php/User:Ar.tur">Ar.tur</a> on <a title="Forum Nokia Wiki" href="http://wiki.forum.nokia.com">Forum Nokia Wiki</a> shows you how to use the <a title="Google Static Maps documentation" href="http://code.google.com/apis/maps/documentation/staticmaps/">static version</a> of <a title="Google Maps" href="http://maps.google.com">Google Maps</a> in your mobile widget by using <strong>few lines of JavaScript code</strong>.</p>
<p><a href="http://www.jappit.com/blog/wp-content/google_static_maps_sample.png"><img class="alignnone size-medium wp-image-832" title="Google Static Maps sample" src="http://www.jappit.com/blog/wp-content/google_static_maps_sample-300x150.png" alt="" width="300" height="150" /></a></p>
<p>The same article also shows how to use the <a title="Platform Services' Location API" href="http://library.forum.nokia.com/index.jsp?topic=/Web_Developers_Library/GUID-53CE4DE6-F065-4339-8C18-5C30A9540053.html">Location API</a> from <strong>Web Runtime</strong> <a title="WRT Platform Services" href="http://library.forum.nokia.com/index.jsp?topic=/Web_Developers_Library/GUID-65AAF569-D347-462B-B59A-9D7CA184AB9C.html">Platform Services</a> to <strong>retrieve your current location</strong>, and then using this data to get the appropriate map from <strong>Google Maps</strong>.</p>
<p>You can <strong>read the full article</strong> here: <a title="Static Google Maps API in JavaScript" href="http://wiki.forum.nokia.com/index.php/Static_GoogleMaps_API_in_JavaScript">Static GoogleMaps API in JavaScript</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jappit.com/blog/2010/02/01/using-google-static-maps-in-your-widget-with-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Go Local widget now available on the Ovi Store!</title>
		<link>http://www.jappit.com/blog/2009/09/22/go-local-widget-now-available-on-the-ovi-store/</link>
		<comments>http://www.jappit.com/blog/2009/09/22/go-local-widget-now-available-on-the-ovi-store/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 12:29:10 +0000</pubDate>
		<dc:creator>pit</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[cool stuff]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[symbian]]></category>
		<category><![CDATA[web runtime]]></category>
		<category><![CDATA[widgets]]></category>
		<category><![CDATA[city guides]]></category>
		<category><![CDATA[forumnokia]]></category>
		<category><![CDATA[go local]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[routing]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.jappit.com/blog/?p=591</guid>
		<description><![CDATA[Go Local is a new Web Runtime widget (already available for the Betavine platform) that helps you to find and manage points of interests (e.g.: museums, pubs, restaurants) that are nearby. Once you&#8217;ve found what you&#8217;re looking for, Go Local features allow you to: place a call to the location save it to your phonebook [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Download Go Local from the Ovi Store" href="http://store.ovi.com/content/7426C07460E0C570E040050A87320BDC">Go Local</a> is a new <a title="Web Runtime website" href="http://www.forum.nokia.com/Technology_Topics/Web_Technologies/Web_Runtime/">Web Runtime widget</a> (<a title="Betavine Go Local widget" href="http://www.jappit.com/blog/2009/08/26/new-betavine-widget-find-your-way-with-go-local/">already available</a> for the <a title="Betavine website" href="http://www.betavine.net">Betavine platform</a>) that helps you to <strong>find and manage points of interests</strong> (e.g.: museums, pubs, restaurants) that are nearby.</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 1px solid black;" title="Web Runtime Go Local" src="http://www.jappit.com/images/blog/uploads/wrt_golocal2.png" alt="" width="192" height="192" /></p>
<p>Once you&#8217;ve found what you&#8217;re looking for, <strong>Go Local features allow you to</strong>:</p>
<ul>
<li><strong>place a call</strong> to the location</li>
<li>save it to your <strong>phonebook</strong></li>
<li>view it on <strong>Google Maps</strong></li>
<li>get to it easily (<strong>routing</strong>)</li>
<li><strong>send it to a friend, by email or SMS</strong></li>
<li>share it on <strong>Twitter</strong></li>
<li>save it for <strong>offline usage</strong></li>
</ul>
<p>Go Local is currently available for devices with <strong>240&#215;320 and 320&#215;240 display resolutions</strong>.</p>
<p>You can <strong>download Go Local for your <a title="Web Runtime enabled devices" href="http://www.forum.nokia.com/devices/matrix_webruntime_1.html">WRT-enabled device</a></strong> here: <a title="Download Go Local from the Ovi Store" href="http://store.ovi.com/content/7426C07460E0C570E040050A87320BDC">Ovi Store Go Local page</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jappit.com/blog/2009/09/22/go-local-widget-now-available-on-the-ovi-store/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Betavine widget: find your way with Go Local!</title>
		<link>http://www.jappit.com/blog/2009/08/26/new-betavine-widget-find-your-way-with-go-local/</link>
		<comments>http://www.jappit.com/blog/2009/08/26/new-betavine-widget-find-your-way-with-go-local/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 09:50:41 +0000</pubDate>
		<dc:creator>pit</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[cool stuff]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[widgets]]></category>
		<category><![CDATA[betavine]]></category>
		<category><![CDATA[go local]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[routing]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[vodafone]]></category>

		<guid isPermaLink="false">http://www.jappit.com/blog/?p=544</guid>
		<description><![CDATA[A new widget for the Betavine platform is now available: It&#8217;s called Go Local, and allows you to search for anything that’s nearby (restaurants, museums, pubs, and everything else). Once you&#8217;ve found what you&#8217;re looking for, you can: place a call to the location save it to your phonebook view it on Google Maps get [...]]]></description>
			<content:encoded><![CDATA[<p>A new widget for the <a href="http://www.betavine.net/">Betavine platform</a> is now available: It&#8217;s called <a title="Betavine Go Local widget" href="http://widget.vodafone.com/dev/widgets/my_places_2340"><strong>Go Local</strong></a>, and allows you to <strong>search for anything that’s nearby</strong> (restaurants, museums, pubs, and everything else).</p>
<p style="text-align: center;"><img class="aligncenter" title="Betavine Go Local screenshots" src="http://www.jappit.com/m/golocal/golocal_screenshots.png" alt="" width="430" height="378" /></p>
<p>Once you&#8217;ve found what you&#8217;re looking for, you can:</p>
<ul>
<li><strong>place a call</strong> to the location</li>
<li>save it to your <strong>phonebook</strong></li>
<li>view it on <strong>Google Maps</strong></li>
<li>get to it easily (<strong>routing</strong>)</li>
<li><strong>send it to a friend, by email or SMS</strong></li>
<li>share it on <strong>Twitter</strong></li>
<li>save it for <strong>offline usage</strong></li>
</ul>
<p>You can <strong>download Go Local</strong> here: <a title="Betavine Go Local widget" href="http://widget.vodafone.com/dev/widgets/my_places_2340">Betavine Go Local download</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jappit.com/blog/2009/08/26/new-betavine-widget-find-your-way-with-go-local/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Displaying GPS position in FlashLite using Google Static Maps and KuneriLite</title>
		<link>http://www.jappit.com/blog/2008/06/12/displaying-gps-position-in-flashlite-using-google-static-maps-and-kunerilite/</link>
		<comments>http://www.jappit.com/blog/2008/06/12/displaying-gps-position-in-flashlite-using-google-static-maps-and-kunerilite/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 12:46:14 +0000</pubDate>
		<dc:creator>pit</dc:creator>
				<category><![CDATA[flash lite]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[forumnokia]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[google static maps]]></category>
		<category><![CDATA[gps]]></category>
		<category><![CDATA[kunerilite]]></category>
		<category><![CDATA[localization]]></category>

		<guid isPermaLink="false">http://www.jappit.com/blog/?p=49</guid>
		<description><![CDATA[Today&#8217;s tutorial is about using Google Maps static images, and GPS data, to display maps in a FlashLite application using KuneriLite. Prerequisites Get your own Google Maps API key To use Google Maps services, you should have a Google Maps API key. If you do not have one, you can go here: http://code.google.com/apis/maps/signup.html and signup [...]]]></description>
			<content:encoded><![CDATA[<p>Today&#8217;s tutorial is about using <a title="Google Static Maps documentation" href="http://code.google.com/apis/maps/documentation/staticmaps/" target="_blank">Google Maps static images</a>, and GPS data, to display maps in a <a title="FlashLite website" href="http://www.adobe.com/products/flashlite/" target="_blank">FlashLite</a> application using <a title="KuneriLite website" href="http://www.kunerilite.net" target="_blank">KuneriLite</a>.</p>
<p><img src="http://www.jappit.com/images/blog/uploads/kuneri_maps_screenshot.jpg" alt="FlashLite KuneriLite Google Maps application screenshot" width="333" height="291" /></p>
<h3>Prerequisites</h3>
<h4>Get your own Google Maps API key</h4>
<p>To use Google Maps services, you should have a <strong>Google Maps API key</strong>. If you do not have one, you can go here:</p>
<p><a title="Google Maps API key signup page" href="http://code.google.com/apis/maps/signup.html" target="_blank">http://code.google.com/apis/maps/signup.html</a></p>
<p>and signup for your API key.</p>
<h4>Download and install KuneriLite</h4>
<p><strong><a title="KuneriLite website" href="http://www.kunerilite.net" target="_blank">KuneriLite</a> </strong>is a tookit that <strong>extends FlashLite capabilites</strong> allowing applications to access <strong>native Symbian functionalities</strong>, like file writing, or reading <strong>GPS data</strong>.</p>
<p>To proceed in this tutorial, you must download and install KuneriLite: <a title="KuneriLite download page" href="http://www.kunerilite.net/content/view/33/47/" target="_blank">KuneriLite download page</a>.</p>
<h3>Create FlashLite application</h3>
<h4>Create your FlashLite movie</h4>
<p>In this example, we&#8217;ll use FlashLite 2.1, but porting it to other (older or newer) FlashLite versions will be quite straightforward. So, after you&#8217;ve created an empty FlashLite movie, follow this simple steps:</p>
<ul>
<li><strong> Create a Button</strong> by going to <em>Insert -&gt; New Symbol&#8230;</em></li>
<li> enter <strong>GpsButton as name</strong></li>
<li> check the <strong>Export for ActionScript</strong> and <strong>Export in first frame checkboxes</strong></li>
</ul>
<p><img src="http://www.jappit.com/images/blog/uploads/gpsButtonProperties.jpg" alt="GpsButton properties" width="429" height="330" /></p>
<ul>
<li> Now, design your Button as you prefer, for example placing a big <strong>&#8220;Find me!&#8221; label</strong> on it</li>
<li> After you&#8217;ve finished designing your Button, place it on movie root, in the lower part of the stage, as in the attached screenshot, and give it <strong>startButton as Instance Name</strong></li>
</ul>
<p><img src="http://www.jappit.com/images/blog/uploads/buttonOnStage.jpg" alt="Place GpsButton on stage" width="295" height="350" /></p>
<h4>Enter ActionScript code</h4>
<p>On movie root, <strong>create a new layer called Actions</strong>, and open its ActionScript editor. We&#8217;ll start defining some properties:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// Enter your api key here</span>
<span style="color: #000000; font-weight: bold;">var</span> apiKey = <span style="color: #ff0000;">'API_KEY'</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">//If you're using non-commercial version of KuneriLite, you'll not need to change this</span>
<span style="color: #000000; font-weight: bold;">var</span> kuneriPath = <span style="color: #ff0000;">'http://127.0.0.1:1001/Basic/'</span>;</pre></div></div>

<p>Now, we&#8217;ll define some useful functions that we&#8217;ll use in our code:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">//We'll call this function when some KuneriLite related errors occur</span>
<span style="color: #000000; font-weight: bold;">function</span> kuneriError<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">error</span>:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;KuneriLite error: &quot;</span> + <span style="color: #0066CC;">error</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">//This function will do all calls to KuneriLite servers</span>
<span style="color: #808080; font-style: italic;">//and call the given handler passing response values as argument</span>
<span style="color: #000000; font-weight: bold;">function</span> kuneriLoad<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">url</span>, handler<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> loader:<span style="color: #0066CC;">LoadVars</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">LoadVars</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	loader.<span style="color: #0066CC;">onLoad</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		handler<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;LOADING: &quot;</span> + <span style="color: #0066CC;">url</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	loader.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">url</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Now, let&#8217;s code the Button-related logic. When the user presses the <strong>startButton </strong>we want to:</p>
<ul>
<li> start the GPS</li>
<li> retrieve the current GPS position</li>
<li> display a map centered in the retrieved GPS position</li>
</ul>
<p>To get full infos about about KuneriLite GPS plugin, you can check the related Wiki page: <a title="KuneriLite GPS plugin Wiki page" href="http://wiki.kunerilite.net/index.php?title=GPS_plugin" target="_blank">http://wiki.kunerilite.net/index.php?title=GPS_plugin</a></p>
<p>We begin starting the GPS on gpsButton press, using the <strong>start klCommand</strong>:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">startButton.<span style="color: #0066CC;">onPress</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	kuneriLoad<span style="color: #66cc66;">&#40;</span>kuneriPath + <span style="color: #ff0000;">'GPS?klCommand=start'</span>, gpsStarted<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> gpsStarted<span style="color: #66cc66;">&#40;</span>res:<span style="color: #0066CC;">LoadVars</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>res.<span style="color: #006600;">klError</span> == <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">||</span> res.<span style="color: #006600;">klError</span> == -<span style="color: #cc66cc;">11</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;GPS started&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
		kuneriLoad<span style="color: #66cc66;">&#40;</span>kuneriPath + <span style="color: #ff0000;">'GPS?klCommand=read'</span>, gpsDataRead<span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
	<span style="color: #b1b100;">else</span>
	<span style="color: #66cc66;">&#123;</span>
		kuneriError<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Error starting GPS!&quot;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>The <strong>gpsStarted() </strong>handler will:</p>
<ul>
<li> check if there is no error (<strong>klError = 0</strong>) or if GPS is already started (<strong>klError = -11</strong>). For full errors list associated with GPS plugin, check KuneriLite Wiki page:<a title="KuneriLite GPS plugin Wiki page" href="http://wiki.kunerilite.net/index.php?title=GPS_plugin" target="_blank"> <a href="http://wiki.kunerilite.net/index.php?title=GPS_plugin" rel="nofollow">http://wiki.kunerilite.net/index.php?title=GPS_plugin</a></a></li>
<li> if there&#8217;s an error starting the GPS, call our kuneriError() function defined above</li>
<li> if GPS is correctly started, it will make a second call to KuneriLite, this time to retrieve current GPS position (<strong>klCommand=read</strong>)</li>
</ul>
<p>This second call to KuneriLite will call <strong>gpsDataRead() handler</strong>, defined below:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> gpsDataRead<span style="color: #66cc66;">&#40;</span>res:<span style="color: #0066CC;">LoadVars</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>res.<span style="color: #006600;">klError</span> == <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>res.<span style="color: #006600;">klPosLatitude</span> <span style="color: #66cc66;">!</span>= <span style="color: #0066CC;">undefined</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">var</span> lat = res.<span style="color: #006600;">klPosLatitude</span>;
			<span style="color: #000000; font-weight: bold;">var</span> lng = res.<span style="color: #006600;">klPosLongitude</span>;
&nbsp;
			<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;POSITION: &quot;</span> + lat + <span style="color: #ff0000;">&quot;, &quot;</span> + lng<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			loadMap<span style="color: #66cc66;">&#40;</span>lat, lng<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
		<span style="color: #b1b100;">else</span>
		<span style="color: #66cc66;">&#123;</span>
			kuneriLoad<span style="color: #66cc66;">&#40;</span>kuneriPath + <span style="color: #ff0000;">'GPS?klCommand=read'</span>, gpsDataRead<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #b1b100;">else</span>
	<span style="color: #66cc66;">&#123;</span>
		kuneriError<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Error retrieving GPS position!&quot;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>This handler, as above, will check if there is any error raised by KuneriLite and, if not, will check if latitude and longitude coordinates are available, by checking response <strong>klPosLatitude and klPosLongitude property</strong> values. If they&#8217;re not available, a new call to <strong>read klCommand</strong> is done, otherwise the following <strong>loadMap()</strong> function is called.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> loadMap<span style="color: #66cc66;">&#40;</span>lat:<span style="color: #0066CC;">Number</span>, lng:<span style="color: #0066CC;">Number</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> mapClip:<span style="color: #0066CC;">MovieClip</span> = <span style="color: #0066CC;">_root</span>.<span style="color: #0066CC;">createEmptyMovieClip</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'mapClip'</span>, <span style="color: #0066CC;">_root</span>.<span style="color: #0066CC;">getNextHighestDepth</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	mapClip.<span style="color: #0066CC;">_x</span> = <span style="color: #cc66cc;">0</span>;
	mapClip.<span style="color: #0066CC;">_y</span> = <span style="color: #cc66cc;">0</span>;
&nbsp;
	<span style="color: #000000; font-weight: bold;">var</span> mapWidth = <span style="color: #cc66cc;">240</span>;
	<span style="color: #000000; font-weight: bold;">var</span> mapHeight = <span style="color: #cc66cc;">280</span>;
&nbsp;
	<span style="color: #000000; font-weight: bold;">var</span> loader:<span style="color: #0066CC;">MovieClipLoader</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">MovieClipLoader</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<span style="color: #000000; font-weight: bold;">var</span> mapUrl:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">'http://maps.google.com/staticmap?center='</span> +
		lat + <span style="color: #ff0000;">','</span> + lng + <span style="color: #ff0000;">'&amp;amp;format=jpg&amp;amp;zoom=8&amp;amp;size='</span> +
		mapWidth + <span style="color: #ff0000;">'x'</span> + mapHeight + <span style="color: #ff0000;">'&amp;amp;key='</span> + apiKey;
&nbsp;
	loader.<span style="color: #0066CC;">loadClip</span><span style="color: #66cc66;">&#40;</span>mapUrl, mapClip<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>The above function:</p>
<ul>
<li> attaches a <strong>new empty movie clip </strong>to movie root</li>
<li> places it to coordinates (0,0)</li>
<li> use a <strong>MovieClipLoader </strong>to load a 240&#215;280 map image, in jpeg format, in the empty clip</li>
</ul>
<p>Done that, you can actually test your FlashLite movie</p>
<h3>Test your FlashLite application</h3>
<h4>Test on PC</h4>
<p>To test your application without deploying on real device, you must follow these simple steps:</p>
<ul>
<li> <strong>Start KuneriLite emulator</strong> with default settings (port: 1001, key: Basic)</li>
<li><strong> Start your FlashLite movie</strong></li>
<li> <strong>Press Find Me!</strong> and wait for your image to be loaded (of course, being an emulator, the GPS position will be not real <img src='http://www.jappit.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</li>
</ul>
<p>For more infos about KuneriLite Emulator, you can go here: <a title="KuneriLite Emulator Wiki page" href="http://wiki.kunerilite.net/index.php?title=KuneriLite_Emulator" target="_blank">KuneriLite Emulator Wiki page</a></p>
<h4>Test on real device</h4>
<p>To test your app on real device, you must package your SIS application using KuneriLite Wizard, following these steps:</p>
<p><img src="http://www.jappit.com/images/blog/uploads/kunerimaps_wizard_shot.jpg" alt="KuneriLite Emulator screenshot" /></p>
<ul>
<li><strong> Export</strong> your FlashLite movie</li>
<li> Create a <strong>new KuneriLite project</strong></li>
<li> Enter application name and other data, <strong>checking GPS from the available plugins</strong></li>
<li> Check <strong>&#8220;Use external player&#8221;</strong> option if you developed for a development player (2.x or 3.x) and would like to launch the application using one of those players</li>
<li> It is also recommended to always check <strong>&#8220;Use stub&#8221;</strong> option</li>
<li> Select the exported SWF as project Main SWF</li>
</ul>
<p><strong>Note</strong>: to use GPS you should sign your application, specifying certificate, key and password in KuneriLite Wizard interface. Otherwise, your application will not be able to access GPS functionalities.</p>
<p>For more infos about KuneriLite Wizard, you can go here: <a title="KuneriLite Wizard Beginner's Guide" href="http://wiki.kunerilite.net/index.php?title=KuneriLite_Wizard_Beginner%27s_Guide" target="_blank">KuneriLite Wizard Beginner&#8217;s Guide</a></p>
<h3>Source code and resources</h3>
<ul>
<li>Download the FLA source of this tutorial here: <a title="KuneriLite FlashLite GoogleMaps application source code" href="http://www.jappit.com/uploads/src/KuneriGpsMap.zip">KuneriGpsMap.zip</a> (the downloadable version includes some code that could be useful to debug possible problems)</li>
<li>For further resources about using Google Maps in mobile applications, you can check this other article: <a title="How to use Google Maps data in mobile applications" href="http://wiki.forum.nokia.com/index.php/How_to_use_Google_Maps_data_in_mobile_applications" target="_blank">How to use Google Maps data in mobile applications</a></li>
<li>This article is available also on Forum Nokia Wiki: <a title="FlashLite Google Maps article on Forum Nokia Wiki" href="http://wiki.forum.nokia.com/index.php/Displaying_GPS_position_using_Google_Maps_images_in_FlashLite" target="_blank">Displaying GPS position using Google Maps images in FlashLite</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.jappit.com/blog/2008/06/12/displaying-gps-position-in-flashlite-using-google-static-maps-and-kunerilite/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Google Maps mobile tutorial is Wiki article of the Month!</title>
		<link>http://www.jappit.com/blog/2008/06/11/google-maps-mobile-tutorial-is-wiki-article-of-the-month/</link>
		<comments>http://www.jappit.com/blog/2008/06/11/google-maps-mobile-tutorial-is-wiki-article-of-the-month/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 12:30:20 +0000</pubDate>
		<dc:creator>pit</dc:creator>
				<category><![CDATA[cool stuff]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[geocoding]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[mobile mapping]]></category>
		<category><![CDATA[static maps]]></category>

		<guid isPermaLink="false">http://www.jappit.com/blog/?p=48</guid>
		<description><![CDATA[I&#8217;m really honored that another article, published on Forum Nokia Wiki, has been selected as Article of the Month! As the previous one, this also is related to Google Maps usage in mobile applications, and you can read it here: How to use Google Maps data in mobile applications. As its name says, It&#8217;s an [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m really honored that <a title="How to use Google Maps data in mobile applications wiki article" href="http://wiki.forum.nokia.com/index.php/How_to_use_Google_Maps_data_in_mobile_applications" target="_blank">another article</a>, published on <a title="Forum Nokia Wiki" href="http://wiki.forum.nokia.com/" target="_blank">Forum Nokia Wiki</a>, has been selected as <strong>Article of the Month</strong>!</p>
<p><img src="http://www.jappit.com/images/blog/uploads/gmaps_article_of_month.jpg" alt="Google Maps article of the month" /></p>
<p>As the <a title="J2ME Google Maps API article of the week blog post" href="http://www.jappit.com/blog/2008/06/09/j2me-google-maps-api-is-article-of-the-week-on-forum-nokia/">previous one</a>, this also is related to <strong>Google Maps usage in mobile applications</strong>, and you can read it here: <a title="How to use Google Maps data in mobile applications Wiki article" href="http://wiki.forum.nokia.com/index.php/How_to_use_Google_Maps_data_in_mobile_applications" target="_blank">How to use Google Maps data in mobile applications</a>.</p>
<p>As its name says, It&#8217;s an introductory article on how to use Google Maps services, in particular the <strong><a title="Google Maps geocoding service" href="http://code.google.com/apis/maps/documentation/services.html#Geocoding" target="_blank">geocoding</a></strong> and <strong><a title="Google Static Maps" href="http://code.google.com/apis/maps/documentation/staticmaps/" target="_blank">static maps</a></strong> ones, from a mobile application, where standard Google Maps API code is not suitable (since it is thought for web based and Ajax&#8217;d apps). Its content does not focus on any particular programming language, but gives <strong>base guidelines</strong> to use those services using <a title="Representational State Transfer" href="http://en.wikipedia.org/wiki/Representational_State_Transfer" target="_blank">REST</a>.</p>
<p>So&#8230; any kind of feedbacks is welcome! <img src='http://www.jappit.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>]]></content:encoded>
			<wfw:commentRss>http://www.jappit.com/blog/2008/06/11/google-maps-mobile-tutorial-is-wiki-article-of-the-month/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>J2ME Google Maps API is article of the week on Forum Nokia!</title>
		<link>http://www.jappit.com/blog/2008/06/09/j2me-google-maps-api-is-article-of-the-week-on-forum-nokia/</link>
		<comments>http://www.jappit.com/blog/2008/06/09/j2me-google-maps-api-is-article-of-the-week-on-forum-nokia/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 13:47:11 +0000</pubDate>
		<dc:creator>pit</dc:creator>
				<category><![CDATA[j2me]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[geocoding]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[google maps api]]></category>
		<category><![CDATA[map static images]]></category>

		<guid isPermaLink="false">http://www.jappit.com/blog/?p=47</guid>
		<description><![CDATA[I&#8217;m really happy to announce that my J2ME Google Maps API article on Forum Nokia Wiki has been selected as Article of the Week! And, to celebrate this event, I&#8217;ve added a brand new feature to my article that will allow you to: create larger tiled maps support map scrolling How does it work? You [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m really happy to announce that my <a title="J2ME Google Maps API Wiki article" href="http://wiki.forum.nokia.com/index.php/J2ME_Google_Maps_API" target="_blank">J2ME Google Maps API article</a> on <a title="Forum Nokia Wiki" href="http://wiki.forum.nokia.com/" target="_blank">Forum Nokia Wiki</a> has been selected <img src="file:///C:/DOCUME~1/pit/IMPOST~1/Temp/moz-screenshot.jpg" alt="" />as <strong>Article of the Week</strong>! <img src='http://www.jappit.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img src="http://www.jappit.com/images/blog/uploads/j2me_gMapsAPI_article_week3.jpg" alt="J2ME Google Maps API Article of the Week" /></p>
<p>And, to celebrate this event, I&#8217;ve added a brand new feature to my article that will allow you to:</p>
<ul>
<li>create larger <strong>tiled maps</strong></li>
<li>support <strong>map scrolling</strong></li>
</ul>
<h3>How does it work?</h3>
<p>You start instantiating a GoogleMaps object as usual:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">GoogleMaps gMap <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GoogleMaps<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;API_KEY&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Then you get your map, for example geocoding a given address:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">double</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> coords <span style="color: #339933;">=</span> gMap.<span style="color: #006633;">geocodeAddress</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Leicester square, London&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003399;">Image</span> mapImage <span style="color: #339933;">=</span> gMap.<span style="color: #006633;">retrieveStaticImage</span><span style="color: #009900;">&#40;</span>
	<span style="color: #cc66cc;">150</span>, <span style="color: #cc66cc;">150</span>,
	coords<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span>, coords<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>,
	<span style="color: #cc66cc;">12</span>, <span style="color: #0000ff;">&quot;png&quot;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Then, let&#8217;s say you want to <strong>scroll your map 100 pixels up</strong>, what you&#8217;ll do is:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">double</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> newCoords <span style="color: #339933;">=</span> gMap.<span style="color: #006633;">adjust</span><span style="color: #009900;">&#40;</span>
	coords<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span>, coords<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>,
	<span style="color: #cc66cc;">0</span>, <span style="color: #339933;">-</span><span style="color: #cc66cc;">100</span>, <span style="color: #cc66cc;">12</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003399;">Image</span> newMapImage <span style="color: #339933;">=</span> gMap.<span style="color: #006633;">retrieveStaticImage</span><span style="color: #009900;">&#40;</span>
	<span style="color: #cc66cc;">150</span>, <span style="color: #cc66cc;">150</span>,
	newCoords<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span>, newCoords<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>,
	<span style="color: #cc66cc;">12</span>, <span style="color: #0000ff;">&quot;png&quot;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>As you&#8217;ve seen, the adjust method takes these arguments:</p>
<ul>
<li>the current <strong>latitude</strong> and <strong>longitude</strong></li>
<li>the <strong>deltaX</strong> and <strong>deltaY</strong>, in pixels</li>
<li>the current <strong>zoom </strong>level</li>
</ul>
<p>and returns the new map center latitude and longitude coordinates.</p>
<p>You can check the full updated source code on Forum Nokia Wiki article: <a title="J2ME Google Maps Wiki article" href="http://wiki.forum.nokia.com/index.php/J2ME_Google_Maps_API" target="_blank">J2ME Google Maps API</a>, and a full-featured example, with the scrolling feature, on the emulator page: <a title="J2ME Google Maps API in action" href="http://www.jappit.com/index.php?page=emulator&amp;midlet=google_maps">J2ME Google Maps API in action</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jappit.com/blog/2008/06/09/j2me-google-maps-api-is-article-of-the-week-on-forum-nokia/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to use Google Maps data within your mobile application</title>
		<link>http://www.jappit.com/blog/2008/05/14/how-to-use-google-maps-data-within-your-mobile-application/</link>
		<comments>http://www.jappit.com/blog/2008/05/14/how-to-use-google-maps-data-within-your-mobile-application/#comments</comments>
		<pubDate>Wed, 14 May 2008 08:17:10 +0000</pubDate>
		<dc:creator>pit</dc:creator>
				<category><![CDATA[j2me]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[forumnokia]]></category>
		<category><![CDATA[geocoding]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[map images]]></category>

		<guid isPermaLink="false">http://www.jappit.com/blog/?p=37</guid>
		<description><![CDATA[Note: You can find this article also on Forum Nokia Wiki: How to use Google Maps data in mobile applications Today we&#8217;ll see how to use Google Maps data within a mobile application. Google Maps offers REST services that allows accessing its data with simple HTTP requests, so we can easily integrate them within our [...]]]></description>
			<content:encoded><![CDATA[<p><em>Note: You can find this article also on Forum Nokia Wiki: <a title="How to use Google Maps data in mobile applications Wiki article" href="http://wiki.forum.nokia.com/index.php/How_to_use_Google_Maps_data_in_mobile_applications" target="_blank">How to use Google Maps data in mobile applications</a></em></p>
<p>Today we&#8217;ll see how to use Google Maps data within a mobile application.<br />
Google Maps offers REST services that allows accessing its data with simple HTTP requests, so we can easily integrate them within our mobile apps.</p>
<h3>Signup for a Google Maps API key</h3>
<p>First thing you must do is to signup on this page:<br />
<a title="Google Maps API key signup" href="http://code.google.com/apis/maps/signup.html" target="_blank">http://code.google.com/apis/maps/signup.html</a><br />
Once done, you&#8217;ll get a key (a simple String) you&#8217;ll use for all your query to Google Maps services</p>
<h3>Static maps</h3>
<p>Standard Google Maps code is suited for web applications, since it includes alot of Ajax functionalities, that are not really useful if you&#8217;re building a mobile application. So, the solution is to use static maps service, that will allow us to retrieve single images, easily usable within our apps.</p>
<p>Static maps service supports different image formats (png32, gif, jpg) and customizable image size, so that we can get perfect images for all our needs. As an example, suppose we want to retrieve the location at:</p>
<ul>
<li>latitude: 41.867878</li>
<li>longitude: 12.471516</li>
</ul>
<p>We can simply retrieve this URL with an HTTP GET request:</p>
<pre><a href="http://maps.google.com/staticmap?center=41.867878,12.471516&#038;amp" rel="nofollow">http://maps.google.com/staticmap?center=41.867878,12.471516&#038;amp</a>;
format=png32&amp;zoom=8&amp;size=240x320&amp;key=&lt;API_KEY&gt;</pre>
<p>This way, we&#8217;ll get a PNG32 image, with a width of 240 pixels, and a height of 320, centered at point (41.867878,12.471516), and with a zoom level of 8 (zoom can go from 0 to a maximum level of 19).</p>
<p><img src="http://www.jappit.com/images/blog/uploads/google_staticmap.jpg" alt="Google Maps static image sample" width="240" height="320" /></p>
<h3>Geocode an address</h3>
<p>From Google Maps docs:<br />
<em>Geocoding is the process of converting addresses (like &#8220;1600 Amphitheatre Parkway, Mountain View, CA&#8221;) into geographic coordinates (like latitude 37.423021 and longitude -122.083739)</em></p>
<p>So, let&#8217;s assume we want to build an application that displays the address typed by our user. We should firstly geocode its address to geographics coordinates.<br />
To do this, Google Maps offer another REST service easily accessible with simple HTTP requests.</p>
<p>Let&#8217;s say you want to geocode this address<em> &#8220;Leicester Square, London&#8221;</em>, then you&#8217;ll request this URL:</p>
<pre><a href="http://maps.google.com/maps/geo?q=Leicester%20Square,%20London" rel="nofollow">http://maps.google.com/maps/geo?q=Leicester%20Square,%20London</a>
&amp;output=csv&amp;key=&lt;API_KEY&gt;</pre>
<p>and you&#8217;ll get this output:</p>
<pre>200,6,51.510605,-0.130728</pre>
<p>Where:</p>
<ul>
<li>the first number is a code, that in this case (200) means that geocoding has been successfull (for a full list of status codes you can see here: [1])</li>
<li>the second number gives a measure of geocoding accuracy (from 0 to 9 &#8211; maximum accuracy)</li>
<li>3rd and 4th numbers represent latitude and longitude of the geocoded address, so these are the coordinate we&#8217;ll use to retrieve the map through the static map service we&#8217;ve seen before</li>
</ul>
<p>As you can see, there is an &#8216;output&#8217; parameter within the geocode request, and this means that we can choose the output format we prefer for our needs. Supported formats are:</p>
<ul>
<li>xml</li>
<li>kml (same as xml, but with different Content-Type)</li>
<li>json (not really useful for mobile apps)</li>
<li>csv (comma separated values)</li>
</ul>
<h3>Proxy server, usage limits</h3>
<p>Since your Google Maps API key is bound to a specific URL, to access map services you should setup a proxy server that will receive HTTP requests from your mobile application and forward them to Google Maps REST URLs, giving back Google responses to mobile clients.</p>
<p>Also, be aware that there is a limit to the number of requests (both for static maps and geocode service) you can do each day. For personal uses they&#8217;re more than enough, anyway consider this point if you plan to develop commercial services.</p>
<h3>Google Maps J2ME API and sample application</h3>
<p>Now, you want code right? <img src='http://www.jappit.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Here it is:</p>
<p><img src="http://www.jappit.com/images/blog/uploads/j2me_google_maps.jpg" alt="Google Maps sample application screenshot" width="475" height="280" /></p>
<ul style="text-align: left;">
<li style="text-align: left;">a J2ME class to access Google Maps REST services: <a title="Google Maps J2ME API" href="http://wiki.forum.nokia.com/index.php/J2ME_Google_Maps_API">http://wiki.forum.nokia.com/index.php/J2ME_Google_Maps_API</a></li>
<li style="text-align: left;">a sample application using Google Maps data: <a title="J2me Google Maps sample application" href="http://www.jappit.com/index.php?page=emulator&amp;midlet=google_maps">http://www.jappit.com/index.php?page=emulator&#038;midlet=google_maps</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.jappit.com/blog/2008/05/14/how-to-use-google-maps-data-within-your-mobile-application/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

