Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soartec-lab/location4meshcode
Convert latitude and longitude to mesh map code
https://github.com/soartec-lab/location4meshcode
Last synced: about 1 month ago
JSON representation
Convert latitude and longitude to mesh map code
- Host: GitHub
- URL: https://github.com/soartec-lab/location4meshcode
- Owner: soartec-lab
- License: mit
- Created: 2018-09-13T01:04:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-20T04:39:48.000Z (over 6 years ago)
- Last Synced: 2024-04-24T16:24:32.916Z (8 months ago)
- Language: Ruby
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Installation
Add this line to your application's Gemfile:
```ruby
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```ruby
location = Location4meshcode::Point.new('35.7007777','139.71475')
location.meshcode(level: 1)
#=> "5339"location.meshcode(level: 2)
#=> "533945"location.meshcode(level: 3)
#=> "533947"
```