Skip to content
Snippets Groups Projects
  1. Nov 30, 2018
  2. Sep 11, 2018
  3. Sep 08, 2018
  4. Jul 27, 2018
  5. Jun 18, 2018
  6. Jun 17, 2018
  7. May 14, 2018
    • Heath Attig's avatar
      Deprecate Freegeoip and Implement Ipstack (#1289) · 0f575821
      Heath Attig authored
      * Update initializer template to use ipinfo_io
      
      * Implement ipstack lookup
      
      * Add Ipstack readme documentation
      
      * Add post-install message
      
      * Remove DSL from ipstack lookup
      
      * Remove unnecessary logging
      
      * Update post-install message
      0f575821
  8. Apr 10, 2018
  9. Apr 04, 2018
  10. Mar 13, 2018
    • Jordan Moncharmont's avatar
      add bounds detection for google results (#1196) · dcfd6e36
      Jordan Moncharmont authored
      some google geocoding requests have bounds within the result.  add a
      helper to extract these.
      
      * Add tests to cover results with no bounds
      
      In this case, calling .bounds should return nil.  Oddly, calling
      viewport on a result with no viewport causes the current code to `fail`.
      I have preserved this behavior even though I think it to be a little
      odd.
      dcfd6e36
  11. Jan 16, 2018
    • German Velasco's avatar
      Raise bing errors for statuses 403, 500, 503 · 4dc3b36e
      German Velasco authored
      Bing returns the status codes within the json response. When a request is
      forbidden, it will return a 403. If there is an internal server error,
      it will return a 500. And if the service is unavailable for some other
      reason, it will return a 503. That information was obtained from bing's
      [Status Codes and Error
      Handling](https://msdn.microsoft.com/en-us/library/ff701703.aspx)
      documentation.
      
      We handle those three status codes here to raise
      `Geocoder::RequestDenied` (for 403) and `Geocoder::ServiceUnavailable`
      (for 500 and 503). This allows for the users of the Geocoder to handle
      those errors in their applications.
      4dc3b36e
  12. Jan 10, 2018
  13. Nov 17, 2017
    • Carlos Villela's avatar
      [db-ip] Handle Geocoder::OverQueryLimitError gracefully (#1230) · ce7d0571
      Carlos Villela authored
      * Handle Geocoder::OverQueryLimitError gracefully.
      
      Geocoder::OverQueryLimitError errors were not being generated correctly, and the response was coming back empty but with no indication.
      
      This changes the behavior slightly so that unknown errors are also returned.
      
      * Add error handling tests
      
      * Remove unnecessary config in tests
      ce7d0571
  14. Sep 25, 2017
    • Carlos Villela's avatar
      Add support for DB-IP.com geocoding service, take 2 (#1223) · b2da2604
      Carlos Villela authored
      * Add support for DB-IP.com geocoding service
      
      * Added support for https with paid accounts
      
      * Use `use_https` to distinguish between paid/unpaid API usage
      
      * Clean rubocop warnings
      b2da2604
    • Srihari Thalla's avatar
      Update LocationIQ geocoding provider with limits and handle errors (#1216) · bd86c08a
      Srihari Thalla authored
      * Update LocationIQ geocoding provider with limits and handle errors
      
      * Correct syntax errors
      
      * Update over limit fixture
      
      * Set HTTPS as the assertion for the URL
      
      * Add missing fixtures for unit tests
      
      * Correct the mistakes in doc
      
      * Let users decide SSL usage
      
      * Revert incorrectly asserted URL without https
      
      * Remove use_ssl from lookup subclass
      
      * Update the assertion of the URL to HTTP and not HTTPS
      bd86c08a
  15. Jun 28, 2017
  16. May 04, 2017
  17. Apr 25, 2017
    • Leon Guan's avatar
      Added Amap(AutoNavi) integration: http://lbs.amap.com (#1164) · 2921ed13
      Leon Guan authored
      * Added support for AMap, aka AutoNavi Map, 高德地图
      
      * Try to include amap error info if failed
      
      * Get correct result from amap response
      
      * Fix result error in amap return
      
      * Refactor codes for AMap handling
      
      * Refactor codes for amap result handling
      
      * Refactor amap handling codes
      
      * Fixed coordinates handling error
      
      * Added tests
      
      * Fixded amap result handling and tests
      
      * Lock webmock on 2.3.2 for ruby 1.9.3 support
      2921ed13
  18. Feb 25, 2017
  19. Jan 31, 2017
  20. Dec 09, 2016
  21. Nov 30, 2016
    • Julian Nacci's avatar
      Add new lookup: ban_data_gouv_fr · 4e9f1139
      Julian Nacci authored
      add new lookup to lookup.rb
      
      add new lookup file ban_data_gouv_fr.rb
      
      add new results file ban_data_gouv_fr.rb
      
      update README with new lookup
      
      create fixtures to test  new lookup
      
      create unit test file for new lookup
      
      update test helper default fixture for new lookup
      
      remove invalid multibyte char (US-ASCII) 'ç' from lookup name
      
      Revert "remove invalid multibyte char (US-ASCII) 'ç' from lookup name"
      
      This reverts commit 7dbfcab4dc4bcb9473edc43651e7d53884f0e24d.
      
      Add '# encoding: utf-8' to files containing special chars
      
      Add '# encoding: utf-8' to files containing special chars
      
      Add '# encoding: utf-8' to files containing special chars
      
      remove useless Geocoder.config from test methods
      
      refacto of ban lookup results method
      
      change city serach param to fit naming conventions in ban lookup test
      
      renamed no results ban lookup fixture to fit tests
      
      removed no search results unnecessary test
      
      remove useless commented code
      
      add alias method to handle state and state_code + move from department to region name as state
      
      refacto results method
      4e9f1139
  22. Nov 15, 2016
  23. Sep 09, 2016
  24. Sep 05, 2016
  25. Aug 31, 2016
  26. Apr 16, 2016
    • Piotr Górecki's avatar
      Use a proper domain name in ipapi_com lookup (#1020) · 162b5915
      Piotr Górecki authored
      * Add ip-api.com (ip lookup) support
      
      This service returns better coordinates for Europe than other free ip lookup services available in geocoder.
      
      * Clean the results class
      
      Remove default responses for fields.
      
      * Remove checking fields in url query
      
      API already handles unknown fields, so this check is unnecessary.
      
      * Add a test for using parameters directly in search method
      
      * Use proper domain name
      
      Use pro.ip-api.com domain in case when api key is in use, otherwise just ip-api.com.
      
      * Handle invalid api key
      
      * Add forsaken fixture
      
      * Make uniform an invalid key handler with the other geocoder lookups
      162b5915
  27. Apr 12, 2016
  28. Apr 04, 2016
    • Piotr Górecki's avatar
      Add ip api com lookup · c466a0c3
      Piotr Górecki authored
      * Add ip-api.com (ip lookup) support
      
      This service returns better coordinates for Europe than other free ip lookup services available in geocoder.
      
      * Clean the results class
      
      Remove default responses for fields.
      
      * Remove checking fields in url query
      
      API already handles unknown fields, so this check is unnecessary.
      
      * Add a test for using parameters directly in search method
      c466a0c3
  29. Mar 15, 2016
  30. Mar 12, 2016
  31. Mar 07, 2016
  32. Feb 20, 2016
Loading