0.5.2 • Published 6 years ago

xyzpdq v0.5.2

Weekly downloads
29
License
-
Repository
github
Last release
6 years ago

xyzpdq

XYZ lookup that is pretty dang quick.

Usage

Install it:

npm install xyzpdq --save

Check if an XYZ tile coordinate is in Canada:

var xyzpdq = require('xyzpdq');

// Assuming `canada` is GeoJSON representing Canada
var lookup = xyzpdq(canada);

// Check if tile coordinate x: 88, y: 175, z: 9 is in Canada
lookup.intersects(88, 175, 9); // true

// Check if tile coordinate x: 88, y: 176, z: 9 is in Canada
lookup.intersects(88, 176, 9); // false

The xyzpdq function takes any GeoJSON object and returns an object with a intersects method that can be used to determine if an x, y, z tile coordinate intersects the provided GeoJSON.

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

8 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago