Skip to content

Instantly share code, notes, and snippets.

Created Jul 29, 2009

What would you like to do?
/* This is the walkscore command updated for Ubiquity 0.5 */
names: ["walkscore"],
description: "Finds the Walk Score for a particular address.",
help: "Try "walkscore austin tx" to see the Walk Score for that city. It is best if you use a more complete address, as the result will be more accurate.",
author: {name: "Aaron Helton", email: ""},
license: "GPL",
homepage: "",
arguments: [{role: 'object', nountype: noun_arb_text}],
preview: function preview(pblock, args) {
pblock.innerHTML = "Find the Walk Score for <b>" + args.object.html + "</b>.";
execute: function execute(args) {
//displayMessage("You selected: " + args.object.text, this);
var wsloc = args.object.text;
var wsurl = "" +
escape(wsloc) + "&go=Go";
Utils.openUrlInBrowser( wsurl );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.