geocoder 1.6.6 → 1.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +68 -2
- data/README.md +355 -211
- data/examples/app_defined_lookup_services.rb +22 -0
- data/lib/generators/geocoder/config/templates/initializer.rb +6 -1
- data/lib/geocoder/cache.rb +14 -35
- 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 +17 -4
- data/lib/geocoder/ip_address.rb +9 -0
- data/lib/geocoder/lookup.rb +37 -5
- 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 +1 -1
- data/lib/geocoder/lookups/base.rb +2 -1
- data/lib/geocoder/lookups/bing.rb +2 -2
- data/lib/geocoder/lookups/esri.rb +18 -5
- data/lib/geocoder/lookups/freegeoip.rb +8 -6
- data/lib/geocoder/lookups/geoapify.rb +78 -0
- data/lib/geocoder/lookups/geoip2.rb +4 -0
- data/lib/geocoder/lookups/geoportail_lu.rb +1 -1
- data/lib/geocoder/lookups/google_places_details.rb +20 -0
- data/lib/geocoder/lookups/google_places_search.rb +21 -5
- data/lib/geocoder/lookups/here.rb +25 -20
- data/lib/geocoder/lookups/ip2location.rb +10 -6
- 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/ipqualityscore.rb +50 -0
- data/lib/geocoder/lookups/location_iq.rb +5 -1
- data/lib/geocoder/lookups/mapbox.rb +3 -3
- data/lib/geocoder/lookups/melissa_street.rb +41 -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/test.rb +1 -0
- data/lib/geocoder/lookups/twogis.rb +58 -0
- data/lib/geocoder/lookups/uk_ordnance_survey_names.rb +1 -1
- data/lib/geocoder/lookups/yandex.rb +3 -3
- 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/ban_data_gouv_fr.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 -25
- 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/ipqualityscore.rb +54 -0
- data/lib/geocoder/results/mapbox.rb +34 -10
- data/lib/geocoder/results/melissa_street.rb +46 -0
- data/lib/geocoder/results/nominatim.rb +24 -16
- 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/version.rb +1 -1
- data/lib/maxmind_database.rb +12 -12
- data/lib/tasks/maxmind.rake +1 -1
- metadata +65 -11
- data/examples/autoexpire_cache_dalli.rb +0 -62
- data/examples/autoexpire_cache_redis.rb +0 -30
- data/lib/geocoder/lookups/dstk.rb +0 -22
- data/lib/geocoder/results/dstk.rb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
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,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
|
+
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 (
|
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).
|