Skip to content

soartec-lab/location4meshcode

Repository files navigation

Installation

Add this line to your application's Gemfile:

gem 'location4meshcode'

And then execute:

$ bundle

Or install it yourself as:

$ gem install location4meshcode

usage

params

class.new

Location4meshcode::Point.new(latitude, longitude)

method

location.meshcode(level: 1) level is mesh map code

location = Location4meshcode::Point.new('35.7007777','139.71475')
location.meshcode(level: 1)
#=> "5339"

location.meshcode(level: 2)
#=> "533945"

location.meshcode(level: 3)
#=> "533947"

About

Convert latitude and longitude to mesh map code

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published