<?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>ASP Starter Kit &#187; API</title>
	<atom:link href="http://aspstarterkit.com/index.php/tag/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://aspstarterkit.com</link>
	<description>Helping get your ASP Starter Kit online</description>
	<lastBuildDate>Wed, 14 Mar 2012 00:07:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Simple Marker Based on Address using the Google API</title>
		<link>http://aspstarterkit.com/index.php/getting-started/simple-marker-based-on-address-using-the-google-api/</link>
		<comments>http://aspstarterkit.com/index.php/getting-started/simple-marker-based-on-address-using-the-google-api/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 17:18:30 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Getting Started]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Google Maps]]></category>

		<guid isPermaLink="false">http://aspstarterkit.com/?p=27</guid>
		<description><![CDATA[If you need to show a marker on a map based on an user inputted address, the Google API provides you a way. You can use the code below to create your own map you just need to get a Google Maps API key from Google Maps and insert it in line 6. In line [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to show a marker on a map based on an user inputted address, the Google API provides you a way. You can use the code below to create your own map you just need to get a Google Maps API key from <a title="Google Maps" href="http://code.google.com/apis/maps/signup.html" target="_blank">Google Maps</a> and insert it in line 6. In line 30 you can add html markup to modify how the call out box appears and what it contains. Just expand the code box below to check it out.</p>
<pre name="code" class="html:collapse">

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"&gt;
&lt;head&gt;
&lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"/&gt;
&lt;script src="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=YOUR GOOGLE MAPS API KEY FOR YOUR DOMAIN"
type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;

var map;
var geocoder;

function initialize() {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(27.174858, 78.042383), 12);
map.addControl(new GLargeMapControl());
geocoder = new GClientGeocoder();
}

function addAddressToMap(response) {
map.clearOverlays();
if (!response || response.Status.code != 200) {
alert("Sorry, we were unable to geocode that address");
} else {
place = response.Placemark[0];
point = new GLatLng(place.Point.coordinates[1],
place.Point.coordinates[0]);
marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml('The Place you entered: '+place.address + '&lt;br&gt;');
}
}

function showLocation() {
var address = document.forms[0].q.value;
geocoder.getLocations(address, addAddressToMap);
}

&lt;/script&gt;

&lt;/head&gt;

&lt;body onload="initialize()"&gt;
&lt;span class="style1"&gt;
&lt;form action="#" onsubmit="showLocation(); return false;"&gt;
&lt;p&gt;
&lt;b&gt;Search for an address:&lt;/b&gt;
&lt;input type="text" name="q" value="" class="address_input" size="40" /&gt;
&lt;input type="submit" name="find" value="Search" /&gt;
&lt;/p&gt;
&lt;/form&gt;
&lt;div id="map_canvas" style="width: 500px; height: 500px"&gt;&lt;/div&gt;
&lt;/span&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://aspstarterkit.com/index.php/getting-started/simple-marker-based-on-address-using-the-google-api/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Google Map API &#8211; Adding address markers and geocoding</title>
		<link>http://aspstarterkit.com/index.php/getting-started/google-map-api-adding-address-markers-and-geocoding/</link>
		<comments>http://aspstarterkit.com/index.php/getting-started/google-map-api-adding-address-markers-and-geocoding/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 16:19:12 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Getting Started]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[geocoding]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[map markers]]></category>

		<guid isPermaLink="false">http://aspstarterkit.com/?p=14</guid>
		<description><![CDATA[I had a need to add a set of markers to a Google map using the Google Maps APIÂ that could be easily modified over time.Â  It is fairly easy to add markers with the Google Maps API but I wanted to put something together that will do the geocoding at the same time so I [...]]]></description>
			<content:encoded><![CDATA[<p>I had a need to add a set of markers to a Google map using the Google Maps APIÂ that could be easily modified over time.Â  It is fairly easy to add markers with the Google Maps API but I wanted to put something together that will do the geocoding at the same time so I don&#8217;t have to manually add the lat / lng coordinates when I just want to add an address.Â  As a result I put together the following bit of script.Â  The addresses are loaded from an xml file named data.xml, geocoded and then added to the map.Â  If you are going to use this example for yourself, just add your Google Maps API key and enter the addresses you want to add. You can visit a <a title="A" name="A" href="http://www.aspstarterkit.com/wp-content/Geocoding_Marker_Example.html" target="_blank">LIVE SAMPLE</a> or download the full html page and associated data.xml file from <a title="A" name="A" href="http://www.aspstarterkit.com/wp-content/Geocoding_Marker_Example.zip">HERE</a>.Â  <span id="more-14"></span></p>
<pre class="javascript"><script type="text/javascript"><!--mce:0--></script></pre>
]]></content:encoded>
			<wfw:commentRss>http://aspstarterkit.com/index.php/getting-started/google-map-api-adding-address-markers-and-geocoding/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
	</channel>
</rss>

