mars_geo (0.0.1)
MarsGeo
è¿æ¯ä¸ä¸ªå°çå®ç»çº¬åº¦è½¬æ¢æç«æå°åçGem. æä»¬å¨åææºAppå¼åæ¶ç»å¸¸ä¼ç¨å°å°å¾ï¼éå¸¸ææºè·å¾çç»çº¬åº¦æ¾å° Googleå°å¾çæ¶å伿å ç¾ç±³çåå·®ï¼è¿æ¯å 为æäºåå å½å å°å¾é½åäºåç§»å å¯ï¼è¿ä¸ªä¿ç§°ç«æåæ ç³»ãMarsGeoæ¯ æ ¹æ®ç½ä¸ç䏿®µJava代ç ç¿»è¯è¿æ¥çï¼ç®çæ¯æçå®ç»çº¬åº¦è½¬æ¢æç«æåæ 系好åGoogleå°å¾å¹é ï¼è³äºåç¡®æ§å¦ä½ ææ²¡æå ¨é¢æµè¯è¿ï¼ä¸è¿æèªå·±ä½¿ç¨çæ åµè¿æ¯å¯ä»¥æ»´ã
Installation
Add this line to your application’s Gemfile:
gem 'mars_geo'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mars_geo
Usage
å¨è¦ä½¿ç¨çæä»¶ä¸ include MarsGeo Moudle
class HomeController < ApplicationController
include MarsGeo
def index
point = Point.new(31.108949, 121.333383)
offset_point = point.offset
p offset_point.lat
p offset_point.lng
end
end
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Project Information
Jonny | |
615 downloads | |
homepage |
Add a badge for this project to your blog, webpage or README:

HTML
<a href="https://www.omniref.com/ruby/gems/mars_geo"><img src="https://www.omniref.com/ruby/gems/mars_geo.png" alt="mars_geo API Documentation" /></a>
Markdown
[](https://www.omniref.com/ruby/gems/mars_geo)