https://github.com/datashaman/spree_geocoder
https://github.com/datashaman/spree_geocoder
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/datashaman/spree_geocoder
- Owner: datashaman
- License: bsd-3-clause
- Created: 2015-05-10T07:40:44.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-10T09:51:30.000Z (about 11 years ago)
- Last Synced: 2025-03-31T00:41:21.177Z (about 1 year ago)
- Language: Ruby
- Size: 137 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SpreeGeocoder
=============
Basic geocoding attributes added to the Address and StockLocation models. Automatically updated.
Fields are:
:latitude
:longitude
:address - combined string used for submitting to geocoding service
:location - reverse geocoded location from geocoding service
Installation
------------
Add spree_geocoder to your Gemfile:
```ruby
gem 'spree_geocoder'
```
Bundle your dependencies and run the installation generator:
```shell
bundle
bundle exec rails g spree_geocoder:install
```
Testing
-------
First bundle your dependencies, then run `rake`. `rake` will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using `rake test_app`.
```shell
bundle
bundle exec rake
```
When testing your applications integration with this extension you may use it's factories.
Simply add this require statement to your spec_helper:
```ruby
require 'spree_geocoder/factories'
```
Copyright (c) 2015 Marlin Forbes (datashaman), released under the New BSD License