Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

geo-point

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geo-point - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

10

package.json
{
"name": "geo-point",
"version": "1.2.0",
"version": "1.2.1",
"description": "geo point",

@@ -27,8 +27,8 @@ "main": "index.js",

"compute-rad2deg": "^1.0.0",
"lodash": "^4.17.11"
"lodash": "^4.17.15"
},
"devDependencies": {
"chai": "^3.5.0",
"mocha": "^5.2.0",
"nyc": "^11.9.0"
"chai": "^4.2.0",
"mocha": "^6.2.0",
"nyc": "^14.1.1"
},

@@ -35,0 +35,0 @@ "nyc": {

@@ -39,3 +39,11 @@ # GeoPoint

```
#### `toTile(zoom: number): TileObject`
Calculates the tile
```js
const startPoint = new GeoPoint(51.5, -0.15);
const { x, y } = startPoint.toTile(7);
```
##### `toString(): String`

@@ -130,2 +138,2 @@ returns **lat,lng** string

const point = GeoPoint.fromLngLatArray([-0.15, 51.5]);
```
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc