Skip to content

Instantly share code, notes, and snippets.

@reverie
reverie / simplegeo_zips.js
Created November 19, 2011 03:26 — forked from joshsmith/simplegeo_zips.js
Finding zip codes within the radius of a given address using SimpleGeo (with JS!)
$(document).ready(function() {
simplegeo_key = 'TOKEN';
var places_client = new simplegeo.Places12Client(simplegeo_key);
var context_client = new simplegeo.ContextClient(simplegeo_key);
// Given an address and radius (and the SimpleGeo client), returns
// a comma-separated list of zip codes within that radius.
function get_nearby_zips(address, radius, places_client, callback) {