Skip to content

Commit

Permalink
Implement HTTPS on Google, Bing, Yahoo, MapQuest geocoders
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaxson committed Jan 27, 2014
1 parent 22719c7 commit bcc9896
Show file tree
Hide file tree
Showing 29 changed files with 654 additions and 595 deletions.
21 changes: 20 additions & 1 deletion README.markdown
Expand Up @@ -46,7 +46,7 @@ Combine this gem with the [geokit-rails](http://github.com/geokit/geokit-rails)
* MapQuest * MapQuest


### address geocoders that also provide reverse geocoding ### address geocoders that also provide reverse geocoding
* Google - requires an API key. Also supports multiple results and bounding box/country code biasing. * Google - Supports multiple results and bounding box/country code biasing. Also supports Maps API for Business keys; see the configuration section below.
* FCC * FCC
* Open Street Map * Open Street Map


Expand All @@ -57,6 +57,15 @@ Combine this gem with the [geokit-rails](http://github.com/geokit/geokit-rails)
* MaxMind * MaxMind
* freegeoip.net * freegeoip.net


### HTTPS-supporting geocoders
* Google
* Yahoo
* Bing
* FCC
* MapQuest

Options to control the use of HTTPS are described below in the Configuration section.

## QUICK START ## QUICK START


```ruby ```ruby
Expand Down Expand Up @@ -159,6 +168,16 @@ If you're using this gem by itself, here are the configuration options:
# The IP provider order. Valid symbols are :ip,:geo_plugin. # The IP provider order. Valid symbols are :ip,:geo_plugin.
# As before, make sure you read up on relevant Terms of Use for each. # As before, make sure you read up on relevant Terms of Use for each.
# Geokit::Geocoders::ip_provider_order = [:external,:geo_plugin,:ip] # Geokit::Geocoders::ip_provider_order = [:external,:geo_plugin,:ip]

# Disable HTTPS globally. This option can also be set on individual
# geocoder classes.
Geokit::Geocoders::secure = false

# Control verification of the server certificate for geocoders using HTTPS
Geokit::Geocoders::ssl_verify_mode = OpenSSL::SSL::VERIFY_(PEER/NONE)
# Setting this to VERIFY_NONE may be needed on systems that don't have
# a complete or up to date root certificate store. Only applies to
# the Net::HTTP adapter.
``` ```


### Google Geocoder Tricks ### Google Geocoder Tricks
Expand Down
129 changes: 61 additions & 68 deletions fixtures/vcr_cassettes/bing_full.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 43 additions & 39 deletions fixtures/vcr_cassettes/bing_full_au.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bcc9896

Please sign in to comment.