geocoder 1.5.1 → 1.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.md +107 -0
- data/LICENSE +1 -1
- data/README.md +364 -243
- data/bin/console +13 -0
- data/examples/app_defined_lookup_services.rb +22 -0
- data/lib/easting_northing.rb +171 -0
- data/lib/generators/geocoder/config/templates/initializer.rb +6 -1
- data/lib/geocoder/cache.rb +16 -33
- data/lib/geocoder/cache_stores/base.rb +40 -0
- data/lib/geocoder/cache_stores/generic.rb +35 -0
- data/lib/geocoder/cache_stores/redis.rb +34 -0
- data/lib/geocoder/configuration.rb +19 -5
- data/lib/geocoder/configuration_hash.rb +4 -4
- data/lib/geocoder/ip_address.rb +11 -1
- data/lib/geocoder/lookup.rb +42 -6
- data/lib/geocoder/lookups/abstract_api.rb +46 -0
- data/lib/geocoder/lookups/amap.rb +2 -2
- data/lib/geocoder/lookups/amazon_location_service.rb +58 -0
- data/lib/geocoder/lookups/azure.rb +56 -0
- data/lib/geocoder/lookups/ban_data_gouv_fr.rb +15 -2
- data/lib/geocoder/lookups/base.rb +4 -1
- data/lib/geocoder/lookups/bing.rb +2 -2
- data/lib/geocoder/lookups/esri.rb +24 -5
- data/lib/geocoder/lookups/freegeoip.rb +12 -10
- data/lib/geocoder/lookups/geoapify.rb +78 -0
- data/lib/geocoder/lookups/geocodio.rb +1 -1
- data/lib/geocoder/lookups/geoip2.rb +4 -0
- data/lib/geocoder/lookups/geoportail_lu.rb +1 -1
- data/lib/geocoder/lookups/google.rb +7 -2
- data/lib/geocoder/lookups/google_places_details.rb +26 -12
- data/lib/geocoder/lookups/google_places_search.rb +44 -2
- data/lib/geocoder/lookups/google_premier.rb +4 -0
- data/lib/geocoder/lookups/here.rb +27 -31
- data/lib/geocoder/lookups/ip2location.rb +10 -14
- data/lib/geocoder/lookups/ip2location_io.rb +62 -0
- data/lib/geocoder/lookups/ip2location_lite.rb +40 -0
- data/lib/geocoder/lookups/ipbase.rb +49 -0
- data/lib/geocoder/lookups/ipdata_co.rb +1 -1
- data/lib/geocoder/lookups/ipgeolocation.rb +51 -0
- data/lib/geocoder/lookups/ipqualityscore.rb +50 -0
- data/lib/geocoder/lookups/ipregistry.rb +68 -0
- data/lib/geocoder/lookups/latlon.rb +1 -2
- data/lib/geocoder/lookups/location_iq.rb +5 -1
- data/lib/geocoder/lookups/mapbox.rb +3 -3
- data/lib/geocoder/lookups/maxmind_local.rb +7 -1
- data/lib/geocoder/lookups/melissa_street.rb +41 -0
- data/lib/geocoder/lookups/nationaal_georegister_nl.rb +38 -0
- data/lib/geocoder/lookups/osmnames.rb +57 -0
- data/lib/geocoder/lookups/pc_miler.rb +85 -0
- data/lib/geocoder/lookups/pdok_nl.rb +43 -0
- data/lib/geocoder/lookups/photon.rb +89 -0
- data/lib/geocoder/lookups/pickpoint.rb +1 -1
- data/lib/geocoder/lookups/smarty_streets.rb +6 -1
- data/lib/geocoder/lookups/telize.rb +1 -1
- data/lib/geocoder/lookups/tencent.rb +9 -9
- data/lib/geocoder/lookups/test.rb +5 -0
- data/lib/geocoder/lookups/twogis.rb +58 -0
- data/lib/geocoder/lookups/uk_ordnance_survey_names.rb +59 -0
- data/lib/geocoder/lookups/yandex.rb +6 -7
- data/lib/geocoder/query.rb +1 -1
- data/lib/geocoder/results/abstract_api.rb +146 -0
- data/lib/geocoder/results/amazon_location_service.rb +62 -0
- data/lib/geocoder/results/azure.rb +65 -0
- data/lib/geocoder/results/baidu.rb +0 -4
- data/lib/geocoder/results/ban_data_gouv_fr.rb +28 -3
- data/lib/geocoder/results/db_ip_com.rb +1 -1
- data/lib/geocoder/results/esri.rb +5 -2
- data/lib/geocoder/results/geoapify.rb +179 -0
- data/lib/geocoder/results/here.rb +20 -22
- data/lib/geocoder/results/ip2location_io.rb +21 -0
- data/lib/geocoder/results/ip2location_lite.rb +47 -0
- data/lib/geocoder/results/ipbase.rb +40 -0
- data/lib/geocoder/results/ipgeolocation.rb +59 -0
- data/lib/geocoder/results/ipqualityscore.rb +54 -0
- data/lib/geocoder/results/ipregistry.rb +304 -0
- data/lib/geocoder/results/mapbox.rb +34 -10
- data/lib/geocoder/results/melissa_street.rb +46 -0
- data/lib/geocoder/results/nationaal_georegister_nl.rb +62 -0
- data/lib/geocoder/results/nominatim.rb +27 -15
- data/lib/geocoder/results/osmnames.rb +56 -0
- data/lib/geocoder/results/pc_miler.rb +98 -0
- data/lib/geocoder/results/pdok_nl.rb +62 -0
- data/lib/geocoder/results/photon.rb +119 -0
- data/lib/geocoder/results/twogis.rb +76 -0
- data/lib/geocoder/results/uk_ordnance_survey_names.rb +59 -0
- data/lib/geocoder/results/yandex.rb +217 -59
- data/lib/geocoder/sql.rb +4 -4
- data/lib/geocoder/util.rb +29 -0
- data/lib/geocoder/version.rb +1 -1
- data/lib/maxmind_database.rb +12 -12
- data/lib/tasks/maxmind.rake +1 -1
- metadata +81 -23
- data/examples/autoexpire_cache_dalli.rb +0 -62
- data/examples/autoexpire_cache_redis.rb +0 -28
- data/lib/geocoder/lookups/dstk.rb +0 -22
- data/lib/geocoder/lookups/geocoder_us.rb +0 -51
- data/lib/geocoder/results/dstk.rb +0 -6
- data/lib/geocoder/results/geocoder_us.rb +0 -39
- data/lib/hash_recursive_merge.rb +0 -74
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fdb45130990fbb878a93ceb3e68729abce378f50a6bc5ebda0b77cbaae60156c
|
4
|
+
data.tar.gz: 1d65925f76418f4023db18f3422450b831f4501715e0ff8c645dba67820766dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 974c3eb6c880fdcdf316e1fb93dae18f5d6bf486f0a6ae3a7cba5629404e69cba64a5005bd0a7d86682be5d535fa4d772a7fab7a69b5e975bf9679c7d682a5aa
|
7
|
+
data.tar.gz: 80e8c1de0e969b7c8353bfb760cc807ec3469529e36bd388873d84f3d8a53c5a74e58bcbb9da07f1f014538c284fe012c36d6ada9930170d7d987a656dd95f3d
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,113 @@ 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.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)
|
73
|
+
-------------------
|
74
|
+
* Rescue from exception on cache read/write error. Issue warning instead.
|
75
|
+
|
76
|
+
1.6.5 (2021 Feb 10)
|
77
|
+
-------------------
|
78
|
+
* Fix backward coordinates bug in NationaalregisterNl lookup (thanks github.com/Marthyn).
|
79
|
+
* Allow removal of single stubs in test mode (thanks github.com/jmmastey).
|
80
|
+
* Improve results for :ban_data_gouv_fr lookup (thanks github.com/Intrepidd).
|
81
|
+
|
82
|
+
1.6.4 (2020 Oct 6)
|
83
|
+
-------------------
|
84
|
+
* Various updates in response to geocoding API changes.
|
85
|
+
* Refactor of Google Places Search lookup (thanks github.com/maximilientyc).
|
86
|
+
|
87
|
+
1.6.3 (2020 Apr 30)
|
88
|
+
-------------------
|
89
|
+
* Update URL for :telize lookup (thanks github.com/alexwalling).
|
90
|
+
* Fix bug parsing IPv6 with port (thanks github.com/gdomingu).
|
91
|
+
|
92
|
+
1.6.2 (2020 Mar 16)
|
93
|
+
-------------------
|
94
|
+
* Add support for :nationaal_georegister_nl lookup (thanks github.com/opensourceame).
|
95
|
+
* Add support for :uk_ordnance_survey_names lookup (thanks github.com/pezholio).
|
96
|
+
* Refactor and fix bugs in Yandex lookup (thanks github.com/iarie and stereodenis).
|
97
|
+
|
98
|
+
1.6.1 (2020 Jan 23)
|
99
|
+
-------------------
|
100
|
+
* Sanitize lat/lon values passed to within_bounding_box to prevent SQL injection.
|
101
|
+
|
102
|
+
1.6.0 (2020 Jan 6)
|
103
|
+
-------------------
|
104
|
+
* Drop support for Rails 3.x.
|
105
|
+
* Add support for :osmnames lookup (thanks github.com/zacviandier).
|
106
|
+
* Add support for :ipgeolocation IP lookup (thanks github.com/ahsannawaz111).
|
107
|
+
|
108
|
+
1.5.2 (2019 Oct 3)
|
109
|
+
-------------------
|
110
|
+
* Add support for :ipregistry lookup (thanks github.com/ipregistry).
|
111
|
+
* Various fixes for Yandex lookup.
|
112
|
+
|
6
113
|
1.5.1 (2019 Jan 23)
|
7
114
|
-------------------
|
8
115
|
* Add support for :tencent lookup (thanks github.com/Anders-E).
|
data/LICENSE
CHANGED