Skip to content

wang12774748/estimate_distance

 
 

Repository files navigation

EstimateDistance

If you want to simply calculate the distance between the two addresses, you can use the gem to complete your work.

Installation

Add this line to your application's Gemfile:

gem 'estimate_distance'

And then execute:

$ bundle

Or install it yourself as:

$ gem install estimate_distance

Usage

Before you get the distance between two points, you must pass the detailed address of two points as a parameter.

For example: EstimateDistance.direct_calculate_distance(former_address,latter_address)

Then,you can get the distance between two points

Contributing

  1. Fork it ( https://github.com/[my-github-username]/estimate_distance/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

no description

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%