<?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>BlinkTag Inc &#187; apis</title>
	<atom:link href="http://blinktag.com/tag/apis/feed/" rel="self" type="application/rss+xml" />
	<link>http://blinktag.com</link>
	<description></description>
	<lastBuildDate>Tue, 01 May 2012 22:43:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Walksy.com generates walking tours of San Francisco on the fly</title>
		<link>http://blinktag.com/walksy-com-generates-walking-tours-of-san-francisco-on-the-fly/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=walksy-com-generates-walking-tours-of-san-francisco-on-the-fly</link>
		<comments>http://blinktag.com/walksy-com-generates-walking-tours-of-san-francisco-on-the-fly/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 02:01:56 +0000</pubDate>
		<dc:creator>Brendan Nee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apis]]></category>
		<category><![CDATA[google io]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[pedestrian]]></category>
		<category><![CDATA[san francisco]]></category>
		<category><![CDATA[walking]]></category>

		<guid isPermaLink="false">http://blinktag.com/?p=1036</guid>
		<description><![CDATA[As part of the Google IO Last Call contest I created Walksy.com. Its a mobile app that will create an on-the-fly walking tour of San Francisco with up to 8 stops based on points of interest that I specified. It ended up working pretty well and won me a ticket to Google IO. I think [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blinktag.com/wp-content/uploads/2011/04/bikesy_mobile_start.png" alt="" title="bikesy_mobile_start" width="254" height="450" class="alignright size-full wp-image-1038 colorbox-1036" />As part of the <a href="https://sites.google.com/site/lastcallforio2011/Home">Google IO Last Call contest</a> I created <a href="http://walksy.com">Walksy.com</a>.  Its a mobile app that will create an on-the-fly walking tour of San Francisco with up to 8 stops based on points of interest that I specified.  It ended up working pretty well and won me a ticket to <a href="http://www.google.com/events/io/2011/">Google IO</a>.</p>
<p><img src="http://blinktag.com/wp-content/uploads/2011/04/bikesy_mobile_route.png" alt="" title="bikesy_mobile_route" width="254" height="450" class="alignright size-full wp-image-1039 colorbox-1036" style="clear:both;" /><br />
<img src="http://blinktag.com/wp-content/uploads/2011/04/bikesy_mobile_turns.png" alt="" title="bikesy_mobile_turns" width="254" height="450" class="alignright size-full wp-image-1040 colorbox-1036" /><br />
I think its actually a useful app, its quick and uses geolocation to grab your location making it one click (after you load the page) to generate a walking tour.  It has links to google streetview and offers an elevation profile of the walk and optimizes the route to hit as many points of interest in as little distance as possible.  It uses google maps walking directions for the base layer, and it seems to do pretty well with knowing pedestrian paths throughout the city.</p>
<p>I plan to add a few more features in the near future &#8211; I didn&#8217;t have time to add everything I imagined during the overnight coding challenge:</p>
<ul>
<li>Some way to specify what types of points of interest you&#8217;d like to walk by</li>
<li>A way to specify roughly how long of a tour you&#8217;d like</li>
<li>More crazy points of interest based on my experience in SF</li>
<li>Extend it to work in other cities where I can get enough points of interest, perhaps using SimpleGeo Places API</li>
<li>A way to save your walk so you can come back to it later</li>
<li>Descriptions of the points of interest</li>
</ul>
<p>The <a href="https://github.com/brendannee/walksy">code is on github</a> &#8211; its currently all client-side using jquery mobile and google maps API, google Fusion tables and other google APIs.  Please fork it and add your own ideas or connect it to a different fusion table with your own set of points of interest.</p>
]]></content:encoded>
			<wfw:commentRss>http://blinktag.com/walksy-com-generates-walking-tours-of-san-francisco-on-the-fly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>simple python script and fun with GeoAPI</title>
		<link>http://blinktag.com/simple-python-script-and-fun-with-geoapi/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=simple-python-script-and-fun-with-geoapi</link>
		<comments>http://blinktag.com/simple-python-script-and-fun-with-geoapi/#comments</comments>
		<pubDate>Mon, 03 May 2010 15:33:11 +0000</pubDate>
		<dc:creator>Brendan Nee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apis]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[geoapi]]></category>
		<category><![CDATA[mapping]]></category>
		<category><![CDATA[social media]]></category>
		<category><![CDATA[the mission]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://blinktag.com/?p=787</guid>
		<description><![CDATA[I had my first opportunity yesterday to play around with the GeoAPI geo-referencing service. Although not quite as intuitive as Google Map&#8217;s forward and reverse geocoding services, GoeAPI gives you immediate access to geo-located feeds from Twitter, Flickr, and YouTube, plus the ability to create custom neighborhoods (what they called &#8220;guids&#8221;) for you to query. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://geoapi.com"><img src="http://blinktag.com/wp-content/uploads/2010/05/Screen-shot-2010-05-03-at-8.14.14-AM-300x119.png" alt="" title="Screen shot 2010-05-03 at 8.14.14 AM" width="300" height="119" class="alignright size-medium wp-image-788 colorbox-787" /></a></p>
<p>I had my first opportunity yesterday to play around with the <a href="http://geoapi.com/">GeoAPI</a> geo-referencing service.  Although not quite as intuitive as <a href="http://code.google.com/apis/maps/documentation/services.html">Google Map&#8217;s forward and reverse geocoding services</a>, GoeAPI gives you immediate access to geo-located feeds from <a href="http://twitter.com">Twitter</a>, <a href="http://flickr.com/photos/jedhorne">Flickr</a>, and <a href="http://youtube.com">YouTube</a>, plus the ability to create custom neighborhoods (what they called &#8220;guids&#8221;) for you to query.</p>
<p>Sounds nerdy &#8211; so here&#8217;s the English translation:</p>
<p><em>You now can, with a few lines of code, get Tweets happening real-time in your neighborhood.</em></p>
<p>Fun?  I guess it depends on where you live.  Mostly what I&#8217;ve been finding is that my neighbors <a href="http://missionmission.wordpress.com/">are kind of pervs</a>.</p>
<p>Here&#8217;s a quick and dirty Python code sample for you to get started.  <a href="http://spreadsheets.google.com/viewform?formkey=dGJscE5kWmc1ZjVDUzFQUW8yMmdNa0E6MA">You&#8217;ll need your own API key first</a>.</p>
<p>Also, you&#8217;ll need to know the latitude and longitude of a point in the neighborhood you&#8217;re interested in.  Try (37.766 -122.417) for the Mission.  Also, because sometimes you get garbage for location data (like <em>Where: !!!!Frisco U noe!!!!</em>), I&#8217;ve add a quick parser to find correctly formatted latitude and longitude pairs.  Plenty more you can do with this with a few minutes of time.</p>
<p>&#8211; Nerdy Part &#8211;</p>
<pre>
import sys, os, json, urllib, re

#usage: python get_tweets.py [lat] [lng]

lat = sys.argv[1]
lng = sys.argv[2]

# Regex to find properly formatted lat-long pairs in the where response.

lat_lng_re = re.compile('^[\D]*[^-^\d](?P<lat>[\d\.-]+)\s*\,\s*(?P<lng>[\d\.-]+).*')
api = '[YOUR API KEY]'

parent_request = 'http://api.geoapi.com/v1/parents?lat=%s&#038;lon=%s&#038;apikey=%s' % (lat,lng,api)
response = urllib.urlopen(parent_request).read()

json1 = json.loads(response)

# Find your neighborhood 

guid = json1['result']['parents'][0]['guid']
print "\n\nYour neighborhood: %s\n\n" % json1['result']['parents'][0]['meta']['name']
print "--TWEETS--\n\n"

# Get Tweets in your neighborhood

tweets_request = 'http://api.geoapi.com/v1/e/%s/view/twitter?apikey=%s' % (guid,api)

response = urllib.urlopen(tweets_request).read()

json2 = json.loads(response)

for tweet in json2['result']:
	print "Tweet: %s" % tweet['text']
	print "When: %s" % tweet['created_at']
	loc = lat_lng_re.match(tweet['location'])
	if loc:
		print "Lat: %s Lng: %s" % (loc.group('lat'),loc.group('lng'))
	else:
		print "Unusable location: %s" % tweet['location']
	print "User: %s" % tweet['from_user']
	print "Profile image url: %s\n" % tweet['profile_image_url']
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blinktag.com/simple-python-script-and-fun-with-geoapi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 19/23 queries in 0.029 seconds using disk: basic

Served from: blinktag.com @ 2012-05-18 11:53:04 -->
