Skip to content
Snippets Groups Projects
  1. Apr 04, 2018
  2. 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
    • Alex Reisner's avatar
      Allow HTTP protocol for Nominatim lookup · 26d57fd3
      Alex Reisner authored
      but default to HTTPS (custom hosts may not support HTTPS).
      This partially reverts 7cb0acc9.
      26d57fd3
  3. Feb 27, 2018
  4. Feb 20, 2018
  5. Feb 04, 2018
  6. 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
  7. Jan 11, 2018
  8. Jan 10, 2018
  9. Jan 02, 2018
  10. Nov 17, 2017
  11. Nov 09, 2017
  12. Oct 12, 2017
  13. 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
  14. Aug 18, 2017
    • Leonel Galán's avatar
      Allows radius to be a symbol representing a column in DB (#1107) · 5353fea4
      Leonel Galán authored
      * Allows radius to be a symbol representing a column in DB
      
      * Proposed changes by @alexreisner:
      
      - Keeping branching condition consistent
      - Not overwrite the method argument: ‘radius’
      - Not assigning two variables in a single line, and
      - Add code comments where needed
      
      By “proposed” I meant, I copy/paste them from his comment. But we are
      in agreement.
      
      * Fixes broken test in PR
      5353fea4
  15. Jul 27, 2017
  16. Jul 24, 2017
  17. Jun 28, 2017
  18. Jun 02, 2017
  19. May 25, 2017
  20. May 04, 2017
  21. 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
  22. Mar 13, 2017
  23. Mar 03, 2017
  24. Feb 25, 2017
  25. Jan 31, 2017
  26. Dec 10, 2016
  27. Dec 09, 2016
  28. Nov 30, 2016
    • Alex Reisner's avatar
      Remove debugging line. · aa5aba66
      Alex Reisner authored
      aa5aba66
    • 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
  29. Nov 28, 2016
  30. Nov 15, 2016
Loading