Project

gps_tools

0.0
No release in over a year
Library of tools for gps coordinates. Useful for quickly calculating distances, calculating if location is within specified polygon or radius, etc.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
 Project Readme

GPS Tools

This project is a library of functions that can be used for simple calculations related to GPS coordinates and maps. It was primarily created as a means of moving intensive calculations and functions away from client side (where something like Google Maps JS library would likely be used) to server side. This also allows for reducing strain on backend systems for projects that involve location-based contact management, since those contacts can be more easily filtered, thus reducing strain from excessive read requests for a given geograhic location.

Installation and Usage

Install this gem with:

gem install gps_tools

To use the gem in your Ruby project:

require 'gps_tools'
...

distance = GPSTools.distance([0, 0], [0, 0], "miles")
in_polygon = GPSTools.in_polygon?(polygon, [40, 40])

Licence

This project is open source, licenced under the MIT license. See LICENSE for more information.