hubot-spatial

0.1.0 • Public • Published

hubot-spatial

I (=hubot) inform where nearby spots are to provide a path to map for your team.

This map can show you the place and spots with lat/lng in URL parameter.

See scripts/spatial.coffee to know me.

Installation

npm i hubot-spatial --save

Configuration

You can change a data provider to give a location of spots. The spots is free wifi points in Japan as defaut.

var titleFieldName = 'field name for title';
...
var query = L.esri.query({
    url: 'your service URL'
});
appUrl = 'https://bl.ocks.org/username/raw/gistid/?lat=' + json.candidates[0].location.+ '&lng=' + json.candidates[0].location.x

Interaction

you> 探して 東京都墨田区押上1-1-2
hubot> 東京都墨田区押上1-1-2周辺の無料 wifi スポットだよ!
[https://bl.ocks.org/ynunokawa/raw/8ec5c70d089a55bcabf7e3fd5dce9e39/?lat=35.71001678400046&lng=139.81074581000053](https://bl.ocks.org/ynunokawa/raw/8ec5c70d089a55bcabf7e3fd5dce9e39/?lat=35.71001678400046&lng=139.81074581000053)
you> 探して 渋谷駅
hubot> 渋谷駅周辺の無料 wifi スポットだよ!
[https://bl.ocks.org/ynunokawa/raw/8ec5c70d089a55bcabf7e3fd5dce9e39/?lat=35.659278473000484&lng=139.70251653400055](https://bl.ocks.org/ynunokawa/raw/8ec5c70d089a55bcabf7e3fd5dce9e39/?lat=35.659278473000484&lng=139.70251653400055)

Package Sidebar

Install

npm i hubot-spatial

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • ynunokawa