Project

antipodes

0.0
No commit activity in last 3 years
No release in over 3 years
Calculate the antipodes of any point on Earth given latitude and longitude, or using geocoding
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
~> 2.6

Runtime

 Project Readme

Antipodes

This is a silly gem of no consequence with exactly one feature: to find the antipodes of a given place on Earth.

Both latitude/longitude coordinates and place names are accepted as input. If a place name is used, it is geocoded with the Geocoder gem.

Antipodes.for(47.6062095, -122.3320708) #=> [-47.6062095, 57.6679292]

Antipodes.for(-47.6062095, 57.6679292) #=> [47.6062095, -122.3320708]

Antipodes.for('Beijing') #=> [-39.90403, -63.592473999999996]

Antipodes.for('Buenos Aires') #=> [34.6037232, 121.6184069]

While it would be cool to get a corresponding place name (instead of lat/lon), it’s neither practical (most places don’t have land antipodes, since most of Earth is covered in water) nor possible given the current range of geocoding options.