Socket
Book a DemoInstallSign in
Socket

antipodes

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antipodes

This is a Node.js module for finding geocoordinates on the other side of the earth.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Antipodes

This is a Node.js module for finding geocoordinates on the other side of the earth.

From Wikipedia:

In geography, the antipode (/ˈæntɪˌpoʊd/ or /ænˈtɪpədiː/) of any spot on Earth is the point on Earth's surface diametrically opposite to it. A pair of points antipodal (/ænˈtɪpədəl/) to each other are situated such that a straight line connecting the two would pass through Earth's center. Antipodal points are as far away from each other as possible.

In the Northern Hemisphere, "the Antipodes" may refer to Australia and New Zealand, and Antipodeans to their inhabitants. Geographically, the antipodes of Britain and Ireland are in the Pacific Ocean, south of New Zealand. This gave rise to the name of the Antipodes Islands of New Zealand, which are close to the antipode of London. The antipodes of Australia are in the North Atlantic Ocean, while parts of Spain, Portugal, and Morocco are antipodal to New Zealand.

Installation

npm install antipodes

Usage

The module exports a single function which expects a GeolocationCoordinates-compatible object with latitude and longitude properties:

const antipodes = require('antipodes')

antipodes({ 
  longitude: -73.951442, 
  latitude: 40.698470 
})
// => { longitude: 106.048558, latitude: -40.698470 }

Further Reading

FAQs

Package last updated on 06 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts