{"id":30,"date":"2007-11-14T00:55:43","date_gmt":"2007-11-14T07:55:43","guid":{"rendered":"http:\/\/codefork.com\/blog\/index.php\/2007\/11\/14\/mashup-google-maps-amazon-reviews\/"},"modified":"2007-11-15T12:33:07","modified_gmt":"2007-11-15T19:33:07","slug":"mashup-google-maps-amazon-reviews","status":"publish","type":"post","link":"https:\/\/codefork.com\/blog\/index.php\/2007\/11\/14\/mashup-google-maps-amazon-reviews\/","title":{"rendered":"Mashup: Google Maps + Amazon Reviews"},"content":{"rendered":"<p>Saturday morning I woke up with a rather odd idea: to create a mashup of google maps and Amazon book reviews. I was mildly surprised to discover it hadn&#8217;t been done yet. Here&#8217;s the result of spending a chunk of the weekend writing it in python (<strong>11\/15 Update<\/strong>: should now work in Safari, Firefox2, and IE6):<\/p>\n<p><a href=\"http:\/\/mapreviews.codefork.com\">http:\/\/mapreviews.codefork.com<\/a><\/p>\n<p>It didn&#8217;t take long to write, since I&#8217;d recently been investigating the google maps API for a friend, and I&#8217;d also been doing bits of Amazon integration for a project. The biggest pain was dealing with the 1 call per second per IP address rate limiting mechanism of Amazon&#8217;s ECS API: the service returns error codes if you exceed the limit. So the application is pretty slow, especially if others are also using it. <\/p>\n<p>But if you&#8217;re patient, it&#8217;s fun to watch the map markers gradually pop up. It&#8217;s also fun to look up a book with strong political leanings, and see how the ratings are distributed geographically. For example, you can look at <a href=\"http:\/\/mapreviews.codefork.com\/index.html?0140447571\">The Communist Manifesto<\/a> by Marx, and Bill O&#8217;Reilly&#8217;s <a href=\"http:\/\/mapreviews.codefork.com\/index.html?0767920937\">Culture Warrior<\/a> (*shudder*). Data for both are cached, so they should load very fast.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Saturday morning I woke up with a rather odd idea: to create a mashup of google maps and Amazon book reviews. I was mildly surprised to discover it hadn&#8217;t been done yet. Here&#8217;s the result of spending a chunk of the weekend writing it in python (11\/15 Update: should now work in Safari, Firefox2, and &hellip; <a href=\"https:\/\/codefork.com\/blog\/index.php\/2007\/11\/14\/mashup-google-maps-amazon-reviews\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mashup: Google Maps + Amazon Reviews&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,1,7],"tags":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-ajax","category-misc","category-python"],"_links":{"self":[{"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":0,"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"wp:attachment":[{"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}