<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

 <title>Dave Dash</title>
 <link href="http://davedash.com/tag/gmaps/atom.xml" rel="self"/>
 <link href="http://davedash.com/tag/gmaps"/>
 <updated>2012-01-17T21:54:19-08:00</updated>
 <id>http://davedash.com/</id>
 <author>
   <name>Dave Dash</name>
   <email>dd+atom1@davedash.com</email>
 </author>

 
 <entry>
   <title>Fun with HTML5, Blockchalk, Bookmarklets and Google Maps</title>
   <link href="http://davedash.com/2009/09/01/fun-with-html5-blockchalk-bookmarklets-and-google-maps/"/>
   <updated>2009-09-01T00:00:00-07:00</updated>
   <id>http://davedash.com/2009/09/01/fun-with-html5-blockchalk-bookmarklets-and-google-maps</id>
   <content type="html">&lt;p&gt;I've been filing away neat things that I've learned.  Like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Firefox supports GeoLocation (which varies in accuracy, but is really accurate for me)&lt;/li&gt;
&lt;li&gt;Stephen Hood released the &lt;a href=&quot;http://blockchalk.com/developers&quot;&gt;Blockchalk API&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://twitter.com/joshu/status/3679085168&quot;&gt;Google Maps lets you use GeoRSS feeds as a term&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This solves the problem I had with BlockChalk, which is I wanted a way that I could see what's going on near where I am - and I don't have an iPhone.&lt;/p&gt;

&lt;p&gt;So I wrote two bookmarklets:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;javascript:navigator.geolocation.getCurrentPosition(function(p){window.location='http://maps.google.com/maps?q=http://blockchalk.com/api/v0.6/chalks/'+p.coords.latitude+','+p.coords.longitude;})&quot;&gt;Blockchalk Me&lt;/a&gt; which will list Blockchalk listings near you&lt;/p&gt;

&lt;p&gt;and&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;javascript:c=gApplication.getMap().getCenter();window.location=%22http://maps.google.com/maps?q=http://blockchalk.com/api/v0.6/chalks/%22+c.lat()+%22,%22+c.lng()&quot;&gt;Blockchalk this Google Map&lt;/a&gt; which only works if Google Maps is open.  It will load Blockchalks that are near the center of the open Google Map.&lt;/p&gt;

&lt;p&gt;Unfortunately Blockchalk doesn't have a lot of data yet, and will return no results if there's nothing within a mile radius.  Hopefully a radius parameter will be included for the API call.&lt;/p&gt;

&lt;p&gt;So there's no guarantees on the first bookmarklet, but the second bookmarklet should yield nice results for &lt;a href=&quot;http://maps.google.com/maps?q=37.74339,-122.428924&quot;&gt;this location&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Enjoy.&lt;/p&gt;
</content>
 </entry>
 

</feed>

