# hubot-spatial

> It informs where nearby spots are for your team

Latest version **0.1.0** (published 2016-09-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install hubot-spatial
pnpm add hubot-spatial
yarn add hubot-spatial
bun add hubot-spatial
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-09-02 |
| First published | 2016-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 0.10.x |
| Dependencies | 13 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yusuke Nunokawa |
| Maintainers | ynunokawa |
| Keywords | hubot, hubot-scripts, leaflet, spatial, search, geocoding |

## Links

- npm: https://www.npmjs.com/package/hubot-spatial
- Repository: https://github.com/ynunokawa/hubot-spatial
- Homepage: https://github.com/ynunokawa/hubot-spatial#readme
- Issues: https://github.com/ynunokawa/hubot-spatial/issues
- npm.io page: https://npm.io/package/hubot-spatial

## Dependencies (13)

- [hubot](https://npm.io/package/hubot.md) ^2.19.0
- [hubot-help](https://npm.io/package/hubot-help.md) ^0.2.0
- [hubot-maps](https://npm.io/package/hubot-maps.md) 0.0.2
- [hubot-pugme](https://npm.io/package/hubot-pugme.md) ^0.1.0
- [hubot-rules](https://npm.io/package/hubot-rules.md) ^0.1.1
- [hubot-slack](https://npm.io/package/hubot-slack.md) ^4.0.2
- [hubot-shipit](https://npm.io/package/hubot-shipit.md) ^0.2.0
- [hubot-scripts](https://npm.io/package/hubot-scripts.md) ^2.17.2
- [hubot-diagnostics](https://npm.io/package/hubot-diagnostics.md) 0.0.1
- [hubot-redis-brain](https://npm.io/package/hubot-redis-brain.md) 0.0.3
- [hubot-google-images](https://npm.io/package/hubot-google-images.md) ^0.2.6
- [hubot-google-translate](https://npm.io/package/hubot-google-translate.md) ^0.2.0
- [hubot-heroku-keepalive](https://npm.io/package/hubot-heroku-keepalive.md) ^1.0.2

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-09-02

## README

# 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`](https://github.com/ynunokawa/hubot-spatial/blob/master/script/spatial.coffee) to know me.

![](images/hubot-spatial.jpg)

## 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](http://opendata.arcgis.com/datasets/fa3f0767bdaa4cd8996d3c737aec2dd1_0) as defaut.

- Fork [the gist](https://gist.github.com/ynunokawa/8ec5c70d089a55bcabf7e3fd5dce9e39)
- Change the code for REST URL ([ArcGIS Feature Layer](http://doc.arcgis.com/arcgis-online/share-maps/publish-features.htm)) to provide a data and a field name for title in your gist
```js
var titleFieldName = 'field name for title';
...
var query = L.esri.query({
	url: 'your service URL'
});
```
- Change the code for path to map and in [`scripts/spatial.coffee`](https://github.com/ynunokawa/hubot-spatial/blob/master/script/spatial.coffee)
```coffee
appUrl = 'https://bl.ocks.org/username/raw/gistid/?lat=' + json.candidates[0].location.y + '&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)
```

---
_Source: https://npm.io/package/hubot-spatial · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
