# query-remote-tiles

> Find nearest features to a point in a remotely hosted vector tile source.

Latest version **0.2.2** (published 2022-10-05) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install query-remote-tiles
pnpm add query-remote-tiles
yarn add query-remote-tiles
bun add query-remote-tiles
```

## 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.2.2 |
| Published | 2022-10-05 |
| First published | 2019-05-08 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Steve Bennett |
| Maintainers | stevage |
| Keywords | mbtiles, point, polygon, geojson, query, lookup |

## Links

- npm: https://www.npmjs.com/package/query-remote-tiles
- Repository: https://github.com/stevage/QueryRemoteTiles
- npm.io page: https://npm.io/package/query-remote-tiles

## Dependencies (4)

- [es6-promisify](https://npm.io/package/es6-promisify.md) ^6.0.1
- [global-mercator](https://npm.io/package/global-mercator.md) ^3.0.3
- [@mapbox/vt2geojson](https://npm.io/package/@mapbox/vt2geojson.md) ^1.1.5
- [@turf/boolean-point-in-polygon](https://npm.io/package/@turf/boolean-point-in-polygon.md) 5.1.5

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 0.2.2 (latest) — 2022-10-05
- 0.2.1 — 2022-10-05
- 0.2.0 — 2022-10-05
- 0.1.4 — 2019-05-08
- 0.1.3 — 2019-05-08
- 0.1.2 — 2019-05-08
- 0.1.1 — 2019-05-08
- 0.1.0 — 2019-05-08

## README

### Query-Remote-Tiles

Performs a point-in-polygon lookup inside a hosted vector tile source. This can be used in Node or in the browser.

#### Usage

```js
queryMbtiles.queryLngLat(tilesUrl, [lng, lat], zoom, layer, { options });
```

```js
const queryRemoteTiles = require('query-mbtiles');
result = await queryRemoteTiles.queryLngLat('http://example.com/tiles/{z}/{x}/{y}.pbf', [145.13, -37.97], 14, 'mylayer');
console.log(result.features[0].properties);
```

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