UNPKG

hubot-googlemaps

Version:

google maps api for hubot scripts

15 lines (12 loc) 397 B
#Description: # Messing around with the google map API. #Commands: # hubot gmap 'location' - Return google map static images. gm = require("googlemaps") module.exports = (robot) -> robot.respond /gmap (.+)$/i, (msg) -> markers = [location: msg.match[1]] output = gm.staticMap(msg.match[1], 14, "1000x800", false, false, "roadmap", markers) msg.send output return return