Skip to content
Browse files

maps is a standard option on hubot

  • Loading branch information...
1 parent 4a3b913 commit 7fc397be7448a47dfadd9bce17decf8f6ab670a2 @maddox maddox committed Oct 25, 2011
Showing with 0 additions and 24 deletions.
  1. +0 −24 src/scripts/maps.coffee
View
24 src/scripts/maps.coffee
@@ -1,24 +0,0 @@
-# Interacts with the Google Maps API.
-#
-# map me <query> - Returns a map view of the area returned by `query`.
-
-module.exports = (robot) ->
-
- robot.respond /(?:(satellite|terrain|hybrid)[- ])?map me (.+)/i, (msg) ->
- mapType = msg.match[1] || "roadmap"
- location = msg.match[2]
- mapUrl = "http://maps.google.com/maps/api/staticmap?markers=" +
- escape(location) +
- "&size=400x400&maptype=" +
- mapType +
- "&sensor=false" +
- "&format=png" # So campfire knows it's an image
- url = "http://maps.google.com/maps?q=" +
- escape(location) +
- "&hl=en&sll=37.0625,-95.677068&sspn=73.579623,100.371094&vpsrc=0&hnear=" +
- escape(location) +
- "&t=m&z=11"
-
- msg.send mapUrl
- msg.send url
-

0 comments on commit 7fc397b

Please sign in to comment.
Something went wrong with that request. Please try again.