geocoder 1.6.4 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +61 -0
- data/LICENSE +1 -1
- data/README.md +329 -235
- data/examples/app_defined_lookup_services.rb +22 -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 +17 -4
- data/lib/geocoder/ip_address.rb +9 -0
- data/lib/geocoder/lookup.rb +33 -4
- 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 +55 -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 +1 -1
- 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 +20 -3
- data/lib/geocoder/lookups/here.rb +25 -20
- data/lib/geocoder/lookups/ip2location.rb +10 -6
- 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/maxmind_local.rb +7 -1
- data/lib/geocoder/lookups/melissa_street.rb +41 -0
- data/lib/geocoder/lookups/pc_miler.rb +85 -0
- data/lib/geocoder/lookups/photon.rb +89 -0
- 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 +1 -1
- data/lib/geocoder/lookups/yandex.rb +3 -3
- data/lib/geocoder/results/abstract_api.rb +146 -0
- data/lib/geocoder/results/amazon_location_service.rb +57 -0
- data/lib/geocoder/results/ban_data_gouv_fr.rb +27 -2
- 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/ipbase.rb +40 -0
- data/lib/geocoder/results/ipqualityscore.rb +54 -0
- data/lib/geocoder/results/ipregistry.rb +4 -8
- data/lib/geocoder/results/mapbox.rb +10 -4
- data/lib/geocoder/results/melissa_street.rb +46 -0
- data/lib/geocoder/results/nationaal_georegister_nl.rb +1 -1
- data/lib/geocoder/results/nominatim.rb +24 -16
- data/lib/geocoder/results/pc_miler.rb +98 -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 +8 -8
- data/lib/tasks/maxmind.rake +1 -1
- metadata +28 -8
- data/examples/autoexpire_cache_dalli.rb +0 -62
- data/examples/autoexpire_cache_redis.rb +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26c7b5c88c38ee619a8fdc7452014b9601db83539334353758d451d2b300faf2
|
4
|
+
data.tar.gz: 873c8a8148b792c43302b921665880d2f4b54cdc8ad7e4698fafee4e2a24c8b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8fc1e15bfb40407c0f3bcd31030defaf9af58be2c7c49d84efaa5b8ce3828cafd54d3c2a63d08920db4f2701934ac6c3ac9df52888c27fbfd8a05036da11bb5
|
7
|
+
data.tar.gz: 1114e5142f8e8e358fa143fb143b0ea833c611bc2ab92bcbe0d04dc62d0965d46149651d7c3847f967c76a5997a3fba1d0d43a997aee2287268a48ac041e08c7
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,67 @@ 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.2 (2023 Jul 4)
|
7
|
+
-------------------
|
8
|
+
* Add support for PC Miler lookup (thanks github.com/alexdean).
|
9
|
+
* Minor fixes for :maxmind_local, :esri, and :ban_data_gouv_fr lookups.
|
10
|
+
|
11
|
+
1.8.1 (2022 Sep 23)
|
12
|
+
-------------------
|
13
|
+
* Add support for IPBase lookup (thanks github.com/jonallured).
|
14
|
+
* Test cleanup (thanks github.com/jonallured).
|
15
|
+
* Prevent errors when existing constant name shadows a lookup class (thanks github.com/avram-twitch).
|
16
|
+
|
17
|
+
1.8.0 (2022 May 17)
|
18
|
+
-------------------
|
19
|
+
* Add support for 2GIS lookup (thanks github.com/ggrikgg).
|
20
|
+
* 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.
|
21
|
+
* 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).
|
22
|
+
* 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).
|
23
|
+
|
24
|
+
1.7.5 (2022 Mar 14)
|
25
|
+
-------------------
|
26
|
+
* Avoid lookup naming collisions in some environments.
|
27
|
+
|
28
|
+
1.7.4 (2022 Mar 14)
|
29
|
+
-------------------
|
30
|
+
* Add ability to use app-defined lookups (thanks github.com/januszm).
|
31
|
+
* Updates to LocationIQ and FreeGeoIP lookups.
|
32
|
+
|
33
|
+
1.7.3 (2022 Jan 17)
|
34
|
+
-------------------
|
35
|
+
* Get rid of unnecessary cache_prefix deprecation warnings.
|
36
|
+
|
37
|
+
1.7.2 (2022 Jan 2)
|
38
|
+
-------------------
|
39
|
+
* Fix uninitialized constant error (occurring on some systems with v1.7.1).
|
40
|
+
|
41
|
+
1.7.1 (2022 Jan 1)
|
42
|
+
-------------------
|
43
|
+
* Various bugfixes and refactorings.
|
44
|
+
|
45
|
+
1.7.0 (2021 Oct 11)
|
46
|
+
-------------------
|
47
|
+
* Add support for Geoapify and Photo lookups (thanks github.com/ahukkanen).
|
48
|
+
* Add support for IPQualityScore IP lookup (thanks github.com/jamesbebbington).
|
49
|
+
* Add support for Amazon Location Service lookup (thanks github.com/mplewis).
|
50
|
+
* Add support for Melissa lookup (thanks github.com/ALacker).
|
51
|
+
* Drop official support for Ruby 2.0.x and Rails 4.x.
|
52
|
+
|
53
|
+
1.6.7 (2021 Apr 17)
|
54
|
+
-------------------
|
55
|
+
* Add support for Abstract API lookup (thanks github.com/randoum).
|
56
|
+
|
57
|
+
1.6.6 (2021 Mar 4)
|
58
|
+
-------------------
|
59
|
+
* Rescue from exception on cache read/write error. Issue warning instead.
|
60
|
+
|
61
|
+
1.6.5 (2021 Feb 10)
|
62
|
+
-------------------
|
63
|
+
* Fix backward coordinates bug in NationaalregisterNl lookup (thanks github.com/Marthyn).
|
64
|
+
* Allow removal of single stubs in test mode (thanks github.com/jmmastey).
|
65
|
+
* Improve results for :ban_data_gouv_fr lookup (thanks github.com/Intrepidd).
|
66
|
+
|
6
67
|
1.6.4 (2020 Oct 6)
|
7
68
|
-------------------
|
8
69
|
* Various updates in response to geocoding API changes.
|
data/LICENSE
CHANGED