0.0
No release in over 3 years
Low commit activity in last 3 years
Converts latitude,longitude to an OS map reference and an OS map reference to latitude,longitude
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

= 11.1.1
= 10.0
= 3.9.0
= 0.79.0

Runtime

 Project Readme

Northern Pike

Converts latitude,longitude to an OS map reference and an OS map reference to latitude,longitude

Northern Pike

Installation

Add this line to your application's Gemfile:

gem 'northern_pike'

And then execute:

$ bundle

Or install it yourself as:

$ gem install northern_pike

Usage

NorthernPike.os_ref_to_lat_lng(os_ref: 'HU260490')

{:lat=>60.22449375779038, :lng=>-1.5325017342359533}
NorthernPike.lat_lng_to_os_ref(lat: 60.22449375779038, lng: -1.5325017342359533)

{:os_map_ref=>"HU 26000 49000"}

Development

After checking out the repo, run bin/setup to install dependencies.

This is a hobby project and some of the gems used rely on old and unsupported versions of ruby (2.4.1) and proj (v5). For the sake of time I've just fixed the version in the setup script. You'll need to run the setup which uses homebrew and rbenv to install dependencies so it's OSX only unfortunately.

You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/cookiescrumbs/northern-pike.

License

This code is free to use under the terms of the MIT license.