geocoder 1.6.6 → 1.8.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +68 -2
  3. data/README.md +355 -211
  4. data/examples/app_defined_lookup_services.rb +22 -0
  5. data/lib/generators/geocoder/config/templates/initializer.rb +6 -1
  6. data/lib/geocoder/cache.rb +14 -35
  7. data/lib/geocoder/cache_stores/base.rb +40 -0
  8. data/lib/geocoder/cache_stores/generic.rb +35 -0
  9. data/lib/geocoder/cache_stores/redis.rb +34 -0
  10. data/lib/geocoder/configuration.rb +17 -4
  11. data/lib/geocoder/ip_address.rb +9 -0
  12. data/lib/geocoder/lookup.rb +37 -5
  13. data/lib/geocoder/lookups/abstract_api.rb +46 -0
  14. data/lib/geocoder/lookups/amap.rb +2 -2
  15. data/lib/geocoder/lookups/amazon_location_service.rb +58 -0
  16. data/lib/geocoder/lookups/azure.rb +56 -0
  17. data/lib/geocoder/lookups/ban_data_gouv_fr.rb +1 -1
  18. data/lib/geocoder/lookups/base.rb +2 -1
  19. data/lib/geocoder/lookups/bing.rb +2 -2
  20. data/lib/geocoder/lookups/esri.rb +18 -5
  21. data/lib/geocoder/lookups/freegeoip.rb +8 -6
  22. data/lib/geocoder/lookups/geoapify.rb +78 -0
  23. data/lib/geocoder/lookups/geoip2.rb +4 -0
  24. data/lib/geocoder/lookups/geoportail_lu.rb +1 -1
  25. data/lib/geocoder/lookups/google_places_details.rb +20 -0
  26. data/lib/geocoder/lookups/google_places_search.rb +21 -5
  27. data/lib/geocoder/lookups/here.rb +25 -20
  28. data/lib/geocoder/lookups/ip2location.rb +10 -6
  29. data/lib/geocoder/lookups/ip2location_io.rb +62 -0
  30. data/lib/geocoder/lookups/ip2location_lite.rb +40 -0
  31. data/lib/geocoder/lookups/ipbase.rb +49 -0
  32. data/lib/geocoder/lookups/ipdata_co.rb +1 -1
  33. data/lib/geocoder/lookups/ipqualityscore.rb +50 -0
  34. data/lib/geocoder/lookups/location_iq.rb +5 -1
  35. data/lib/geocoder/lookups/mapbox.rb +3 -3
  36. data/lib/geocoder/lookups/melissa_street.rb +41 -0
  37. data/lib/geocoder/lookups/pc_miler.rb +85 -0
  38. data/lib/geocoder/lookups/pdok_nl.rb +43 -0
  39. data/lib/geocoder/lookups/photon.rb +89 -0
  40. data/lib/geocoder/lookups/test.rb +1 -0
  41. data/lib/geocoder/lookups/twogis.rb +58 -0
  42. data/lib/geocoder/lookups/uk_ordnance_survey_names.rb +1 -1
  43. data/lib/geocoder/lookups/yandex.rb +3 -3
  44. data/lib/geocoder/query.rb +1 -1
  45. data/lib/geocoder/results/abstract_api.rb +146 -0
  46. data/lib/geocoder/results/amazon_location_service.rb +62 -0
  47. data/lib/geocoder/results/azure.rb +65 -0
  48. data/lib/geocoder/results/ban_data_gouv_fr.rb +1 -1
  49. data/lib/geocoder/results/esri.rb +5 -2
  50. data/lib/geocoder/results/geoapify.rb +179 -0
  51. data/lib/geocoder/results/here.rb +20 -25
  52. data/lib/geocoder/results/ip2location_io.rb +21 -0
  53. data/lib/geocoder/results/ip2location_lite.rb +47 -0
  54. data/lib/geocoder/results/ipbase.rb +40 -0
  55. data/lib/geocoder/results/ipqualityscore.rb +54 -0
  56. data/lib/geocoder/results/mapbox.rb +34 -10
  57. data/lib/geocoder/results/melissa_street.rb +46 -0
  58. data/lib/geocoder/results/nominatim.rb +24 -16
  59. data/lib/geocoder/results/pc_miler.rb +98 -0
  60. data/lib/geocoder/results/pdok_nl.rb +62 -0
  61. data/lib/geocoder/results/photon.rb +119 -0
  62. data/lib/geocoder/results/twogis.rb +76 -0
  63. data/lib/geocoder/version.rb +1 -1
  64. data/lib/maxmind_database.rb +12 -12
  65. data/lib/tasks/maxmind.rake +1 -1
  66. metadata +65 -11
  67. data/examples/autoexpire_cache_dalli.rb +0 -62
  68. data/examples/autoexpire_cache_redis.rb +0 -30
  69. data/lib/geocoder/lookups/dstk.rb +0 -22
  70. data/lib/geocoder/results/dstk.rb +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23cb694f657cd4b5921d4480c97abd7271ae157ead4e09bb1d614bf90976d567
4
- data.tar.gz: ba36330f7d2fe99a6c5b2f445f1185b421ac932a633ffab2b896d926b3a74ce2
3
+ metadata.gz: fdb45130990fbb878a93ceb3e68729abce378f50a6bc5ebda0b77cbaae60156c
4
+ data.tar.gz: 1d65925f76418f4023db18f3422450b831f4501715e0ff8c645dba67820766dc
5
5
  SHA512:
6
- metadata.gz: 87d72900f31678781bf09cb6706487b4e0528defe0a98601b2a718fa9c31c89c9876780f933d8e4364bd1459285cb0e9a71cc7a6c76d17cfce2959644d974ee1
7
- data.tar.gz: '083c991cf76381add5b4b8aa3312fa1bd5836990370506351d47d17d3e857f2a0d855df901702c9fabc27589491b458a4fbcb378731a3ea3d079c2f4d7d274d7'
6
+ metadata.gz: 974c3eb6c880fdcdf316e1fb93dae18f5d6bf486f0a6ae3a7cba5629404e69cba64a5005bd0a7d86682be5d535fa4d772a7fab7a69b5e975bf9679c7d682a5aa
7
+ data.tar.gz: 80e8c1de0e969b7c8353bfb760cc807ec3469529e36bd388873d84f3d8a53c5a74e58bcbb9da07f1f014538c284fe012c36d6ada9930170d7d987a656dd95f3d
data/CHANGELOG.md CHANGED
@@ -3,11 +3,77 @@ Changelog
3
3
 
4
4
  Major changes to Geocoder for each release. Please see the Git log for complete list of changes.
5
5
 
6
- 1.6.6 (2020 Mar 4)
6
+ 1.8.5 (2024 Dec 18)
7
+ -------------------
8
+ * Fix bug when working with IPAddr objects (thanks github.com/ledermann and github.com/mattlemx).
9
+
10
+ 1.8.4 (2024 Dec 4)
11
+ -------------------
12
+ * Add support for Azure lookup (thanks github.com/AhlOct).
13
+ * Several fixes for Mapbox and Bing lookups (thanks github.com/tmh-dev and github.com/iBlackShadow).
14
+
15
+ 1.8.3 (2024 May 2)
16
+ -------------------
17
+ * Add support for IP2Location LITE lookup (thanks github.com/ip2location).
18
+ * Add support for PDOK NL lookup (thanks github.com/opensourceame).
19
+ * Remove support for Data Science Toolkit lookup (defunct).
20
+
21
+ 1.8.2 (2023 Jul 4)
22
+ -------------------
23
+ * Add support for PC Miler lookup (thanks github.com/alexdean).
24
+ * Minor fixes for :maxmind_local, :esri, and :ban_data_gouv_fr lookups.
25
+
26
+ 1.8.1 (2022 Sep 23)
27
+ -------------------
28
+ * Add support for IPBase lookup (thanks github.com/jonallured).
29
+ * Test cleanup (thanks github.com/jonallured).
30
+ * Prevent errors when existing constant name shadows a lookup class (thanks github.com/avram-twitch).
31
+
32
+ 1.8.0 (2022 May 17)
33
+ -------------------
34
+ * Add support for 2GIS lookup (thanks github.com/ggrikgg).
35
+ * Change cache configuration structure and add an expiration option. Cache prefix is now set via {cache_options: {prefix: ...}} instead of {cache_prefix: ...}. See README for details.
36
+ * Add `:fields` parameter for :google_places_details and :google_places_search lookups. If you haven't been requesting specific fields, you may start getting different data (defaults are now the APIs' defaults). See for details: https://github.com/alexreisner/geocoder/pull/1572 (thanks github.com/czlee).
37
+ * Update :here lookup to use API version 7. Query options are different, API key must be a string (not an array). See API docs at https://developer.here.com/documentation/geocoding-search-api/api-reference-swagger.html (thanks github.com/Pritilender).
38
+
39
+ 1.7.5 (2022 Mar 14)
40
+ -------------------
41
+ * Avoid lookup naming collisions in some environments.
42
+
43
+ 1.7.4 (2022 Mar 14)
44
+ -------------------
45
+ * Add ability to use app-defined lookups (thanks github.com/januszm).
46
+ * Updates to LocationIQ and FreeGeoIP lookups.
47
+
48
+ 1.7.3 (2022 Jan 17)
49
+ -------------------
50
+ * Get rid of unnecessary cache_prefix deprecation warnings.
51
+
52
+ 1.7.2 (2022 Jan 2)
53
+ -------------------
54
+ * Fix uninitialized constant error (occurring on some systems with v1.7.1).
55
+
56
+ 1.7.1 (2022 Jan 1)
57
+ -------------------
58
+ * Various bugfixes and refactorings.
59
+
60
+ 1.7.0 (2021 Oct 11)
61
+ -------------------
62
+ * Add support for Geoapify and Photo lookups (thanks github.com/ahukkanen).
63
+ * Add support for IPQualityScore IP lookup (thanks github.com/jamesbebbington).
64
+ * Add support for Amazon Location Service lookup (thanks github.com/mplewis).
65
+ * Add support for Melissa lookup (thanks github.com/ALacker).
66
+ * Drop official support for Ruby 2.0.x and Rails 4.x.
67
+
68
+ 1.6.7 (2021 Apr 17)
69
+ -------------------
70
+ * Add support for Abstract API lookup (thanks github.com/randoum).
71
+
72
+ 1.6.6 (2021 Mar 4)
7
73
  -------------------
8
74
  * Rescue from exception on cache read/write error. Issue warning instead.
9
75
 
10
- 1.6.5 (2020 Feb 10)
76
+ 1.6.5 (2021 Feb 10)
11
77
  -------------------
12
78
  * Fix backward coordinates bug in NationaalregisterNl lookup (thanks github.com/Marthyn).
13
79
  * Allow removal of single stubs in test mode (thanks github.com/jmmastey).