geocoder 1.2.6 → 1.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (309) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +266 -1
  3. data/LICENSE +1 -1
  4. data/README.md +530 -804
  5. data/bin/console +13 -0
  6. data/examples/app_defined_lookup_services.rb +22 -0
  7. data/examples/reverse_geocode_job.rb +40 -0
  8. data/lib/easting_northing.rb +171 -0
  9. data/lib/generators/geocoder/config/templates/initializer.rb +22 -16
  10. data/lib/generators/geocoder/maxmind/geolite_city_generator.rb +2 -0
  11. data/lib/generators/geocoder/maxmind/geolite_country_generator.rb +2 -0
  12. data/lib/generators/geocoder/maxmind/templates/migration/geolite_city.rb +1 -1
  13. data/lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb +1 -1
  14. data/lib/generators/geocoder/migration_version.rb +15 -0
  15. data/lib/geocoder/cache.rb +20 -33
  16. data/lib/geocoder/cache_stores/base.rb +40 -0
  17. data/lib/geocoder/cache_stores/generic.rb +35 -0
  18. data/lib/geocoder/cache_stores/redis.rb +34 -0
  19. data/lib/geocoder/calculations.rb +30 -38
  20. data/lib/geocoder/cli.rb +2 -2
  21. data/lib/geocoder/configuration.rb +36 -9
  22. data/lib/geocoder/configuration_hash.rb +4 -4
  23. data/lib/geocoder/esri_token.rb +38 -0
  24. data/lib/geocoder/exceptions.rb +19 -0
  25. data/lib/geocoder/ip_address.rb +26 -11
  26. data/lib/geocoder/kernel_logger.rb +25 -0
  27. data/lib/geocoder/logger.rb +47 -0
  28. data/lib/geocoder/lookup.rb +63 -13
  29. data/lib/geocoder/lookups/abstract_api.rb +46 -0
  30. data/lib/geocoder/lookups/amap.rb +63 -0
  31. data/lib/geocoder/lookups/amazon_location_service.rb +55 -0
  32. data/lib/geocoder/lookups/baidu.rb +17 -9
  33. data/lib/geocoder/lookups/baidu_ip.rb +7 -31
  34. data/lib/geocoder/lookups/ban_data_gouv_fr.rb +143 -0
  35. data/lib/geocoder/lookups/base.rb +75 -26
  36. data/lib/geocoder/lookups/bing.rb +38 -15
  37. data/lib/geocoder/lookups/db_ip_com.rb +52 -0
  38. data/lib/geocoder/lookups/dstk.rb +4 -2
  39. data/lib/geocoder/lookups/esri.rb +78 -12
  40. data/lib/geocoder/lookups/freegeoip.rb +22 -7
  41. data/lib/geocoder/lookups/geoapify.rb +78 -0
  42. data/lib/geocoder/lookups/geocoder_ca.rb +5 -6
  43. data/lib/geocoder/lookups/geocodio.rb +8 -8
  44. data/lib/geocoder/lookups/geoip2.rb +13 -4
  45. data/lib/geocoder/lookups/geoportail_lu.rb +65 -0
  46. data/lib/geocoder/lookups/google.rb +44 -11
  47. data/lib/geocoder/lookups/google_places_details.rb +31 -17
  48. data/lib/geocoder/lookups/google_places_search.rb +76 -0
  49. data/lib/geocoder/lookups/google_premier.rb +15 -1
  50. data/lib/geocoder/lookups/here.rb +38 -27
  51. data/lib/geocoder/lookups/ip2location.rb +71 -0
  52. data/lib/geocoder/lookups/ipapi_com.rb +82 -0
  53. data/lib/geocoder/lookups/ipbase.rb +49 -0
  54. data/lib/geocoder/lookups/ipdata_co.rb +62 -0
  55. data/lib/geocoder/lookups/ipgeolocation.rb +51 -0
  56. data/lib/geocoder/lookups/ipinfo_io.rb +44 -0
  57. data/lib/geocoder/lookups/ipqualityscore.rb +50 -0
  58. data/lib/geocoder/lookups/ipregistry.rb +68 -0
  59. data/lib/geocoder/lookups/ipstack.rb +63 -0
  60. data/lib/geocoder/lookups/latlon.rb +58 -0
  61. data/lib/geocoder/lookups/location_iq.rb +54 -0
  62. data/lib/geocoder/lookups/mapbox.rb +59 -0
  63. data/lib/geocoder/lookups/mapquest.rb +7 -9
  64. data/lib/geocoder/lookups/maxmind.rb +7 -7
  65. data/lib/geocoder/lookups/maxmind_geoip2.rb +70 -0
  66. data/lib/geocoder/lookups/maxmind_local.rb +16 -3
  67. data/lib/geocoder/lookups/melissa_street.rb +41 -0
  68. data/lib/geocoder/lookups/nationaal_georegister_nl.rb +38 -0
  69. data/lib/geocoder/lookups/nominatim.rb +18 -6
  70. data/lib/geocoder/lookups/opencagedata.rb +16 -9
  71. data/lib/geocoder/lookups/osmnames.rb +57 -0
  72. data/lib/geocoder/lookups/pc_miler.rb +85 -0
  73. data/lib/geocoder/lookups/pelias.rb +63 -0
  74. data/lib/geocoder/lookups/photon.rb +89 -0
  75. data/lib/geocoder/lookups/pickpoint.rb +41 -0
  76. data/lib/geocoder/lookups/pointpin.rb +14 -13
  77. data/lib/geocoder/lookups/postcode_anywhere_uk.rb +7 -8
  78. data/lib/geocoder/lookups/postcodes_io.rb +31 -0
  79. data/lib/geocoder/lookups/smarty_streets.rb +29 -6
  80. data/lib/geocoder/lookups/telize.rb +42 -7
  81. data/lib/geocoder/lookups/tencent.rb +59 -0
  82. data/lib/geocoder/lookups/test.rb +5 -0
  83. data/lib/geocoder/lookups/twogis.rb +58 -0
  84. data/lib/geocoder/lookups/uk_ordnance_survey_names.rb +59 -0
  85. data/lib/geocoder/lookups/yandex.rb +20 -13
  86. data/lib/geocoder/models/active_record.rb +4 -3
  87. data/lib/geocoder/models/mongo_base.rb +0 -2
  88. data/lib/geocoder/query.rb +15 -1
  89. data/lib/geocoder/railtie.rb +1 -1
  90. data/lib/geocoder/request.rb +103 -14
  91. data/lib/geocoder/results/abstract_api.rb +146 -0
  92. data/lib/geocoder/results/amap.rb +87 -0
  93. data/lib/geocoder/results/amazon_location_service.rb +57 -0
  94. data/lib/geocoder/results/baidu.rb +10 -14
  95. data/lib/geocoder/results/ban_data_gouv_fr.rb +282 -0
  96. data/lib/geocoder/results/base.rb +13 -1
  97. data/lib/geocoder/results/bing.rb +5 -1
  98. data/lib/geocoder/results/db_ip_com.rb +58 -0
  99. data/lib/geocoder/results/esri.rb +35 -8
  100. data/lib/geocoder/results/freegeoip.rb +2 -7
  101. data/lib/geocoder/results/geoapify.rb +179 -0
  102. data/lib/geocoder/results/geocoder_ca.rb +3 -3
  103. data/lib/geocoder/results/geocodio.rb +15 -3
  104. data/lib/geocoder/results/geoip2.rb +37 -25
  105. data/lib/geocoder/results/geoportail_lu.rb +71 -0
  106. data/lib/geocoder/results/google.rb +26 -0
  107. data/lib/geocoder/results/google_places_details.rb +4 -0
  108. data/lib/geocoder/results/google_places_search.rb +52 -0
  109. data/lib/geocoder/results/here.rb +30 -15
  110. data/lib/geocoder/results/ip2location.rb +22 -0
  111. data/lib/geocoder/results/ipapi_com.rb +45 -0
  112. data/lib/geocoder/results/ipbase.rb +40 -0
  113. data/lib/geocoder/results/ipdata_co.rb +40 -0
  114. data/lib/geocoder/results/ipgeolocation.rb +59 -0
  115. data/lib/geocoder/results/ipinfo_io.rb +48 -0
  116. data/lib/geocoder/results/ipqualityscore.rb +54 -0
  117. data/lib/geocoder/results/ipregistry.rb +304 -0
  118. data/lib/geocoder/results/ipstack.rb +60 -0
  119. data/lib/geocoder/results/latlon.rb +71 -0
  120. data/lib/geocoder/results/location_iq.rb +6 -0
  121. data/lib/geocoder/results/mapbox.rb +63 -0
  122. data/lib/geocoder/results/mapquest.rb +5 -8
  123. data/lib/geocoder/results/maxmind.rb +0 -5
  124. data/lib/geocoder/results/maxmind_geoip2.rb +9 -0
  125. data/lib/geocoder/results/maxmind_local.rb +0 -5
  126. data/lib/geocoder/results/melissa_street.rb +46 -0
  127. data/lib/geocoder/results/nationaal_georegister_nl.rb +62 -0
  128. data/lib/geocoder/results/nominatim.rb +41 -14
  129. data/lib/geocoder/results/opencagedata.rb +20 -2
  130. data/lib/geocoder/results/osmnames.rb +56 -0
  131. data/lib/geocoder/results/pc_miler.rb +98 -0
  132. data/lib/geocoder/results/pelias.rb +58 -0
  133. data/lib/geocoder/results/photon.rb +119 -0
  134. data/lib/geocoder/results/pickpoint.rb +6 -0
  135. data/lib/geocoder/results/pointpin.rb +0 -4
  136. data/lib/geocoder/results/postcodes_io.rb +40 -0
  137. data/lib/geocoder/results/smarty_streets.rb +55 -19
  138. data/lib/geocoder/results/telize.rb +0 -5
  139. data/lib/geocoder/results/tencent.rb +72 -0
  140. data/lib/geocoder/results/test.rb +1 -1
  141. data/lib/geocoder/results/twogis.rb +76 -0
  142. data/lib/geocoder/results/uk_ordnance_survey_names.rb +59 -0
  143. data/lib/geocoder/results/yandex.rb +240 -32
  144. data/lib/geocoder/sql.rb +9 -6
  145. data/lib/geocoder/stores/active_record.rb +49 -10
  146. data/lib/geocoder/stores/base.rb +2 -14
  147. data/lib/geocoder/stores/mongo_base.rb +0 -31
  148. data/lib/geocoder/util.rb +29 -0
  149. data/lib/geocoder/version.rb +1 -1
  150. data/lib/geocoder.rb +2 -1
  151. data/lib/maxmind_database.rb +9 -9
  152. data/lib/tasks/geocoder.rake +29 -4
  153. data/lib/tasks/maxmind.rake +1 -1
  154. metadata +91 -169
  155. data/.gitignore +0 -6
  156. data/.travis.yml +0 -31
  157. data/Rakefile +0 -25
  158. data/examples/autoexpire_cache_dalli.rb +0 -62
  159. data/examples/autoexpire_cache_redis.rb +0 -28
  160. data/gemfiles/Gemfile.mongoid-2.4.x +0 -16
  161. data/lib/geocoder/lookups/geocoder_us.rb +0 -39
  162. data/lib/geocoder/lookups/okf.rb +0 -43
  163. data/lib/geocoder/lookups/ovi.rb +0 -62
  164. data/lib/geocoder/lookups/yahoo.rb +0 -88
  165. data/lib/geocoder/results/geocoder_us.rb +0 -39
  166. data/lib/geocoder/results/okf.rb +0 -106
  167. data/lib/geocoder/results/ovi.rb +0 -62
  168. data/lib/geocoder/results/yahoo.rb +0 -55
  169. data/lib/hash_recursive_merge.rb +0 -74
  170. data/lib/oauth_util.rb +0 -112
  171. data/test/fixtures/baidu_invalid_key +0 -1
  172. data/test/fixtures/baidu_ip_202_198_16_3 +0 -19
  173. data/test/fixtures/baidu_ip_invalid_key +0 -1
  174. data/test/fixtures/baidu_ip_no_results +0 -1
  175. data/test/fixtures/baidu_no_results +0 -1
  176. data/test/fixtures/baidu_reverse +0 -1
  177. data/test/fixtures/baidu_shanghai_pearl_tower +0 -12
  178. data/test/fixtures/bing_invalid_key +0 -1
  179. data/test/fixtures/bing_madison_square_garden +0 -40
  180. data/test/fixtures/bing_no_results +0 -16
  181. data/test/fixtures/bing_reverse +0 -42
  182. data/test/fixtures/cloudmade_invalid_key +0 -1
  183. data/test/fixtures/cloudmade_madison_square_garden +0 -1
  184. data/test/fixtures/cloudmade_no_results +0 -1
  185. data/test/fixtures/esri_madison_square_garden +0 -59
  186. data/test/fixtures/esri_no_results +0 -8
  187. data/test/fixtures/esri_reverse +0 -21
  188. data/test/fixtures/freegeoip_74_200_247_59 +0 -12
  189. data/test/fixtures/freegeoip_no_results +0 -1
  190. data/test/fixtures/geocoder_ca_madison_square_garden +0 -1
  191. data/test/fixtures/geocoder_ca_no_results +0 -1
  192. data/test/fixtures/geocoder_ca_reverse +0 -34
  193. data/test/fixtures/geocoder_us_madison_square_garden +0 -1
  194. data/test/fixtures/geocoder_us_no_results +0 -1
  195. data/test/fixtures/geocodio_1101_pennsylvania_ave +0 -1
  196. data/test/fixtures/geocodio_bad_api_key +0 -3
  197. data/test/fixtures/geocodio_invalid +0 -4
  198. data/test/fixtures/geocodio_no_results +0 -1
  199. data/test/fixtures/geocodio_over_query_limit +0 -4
  200. data/test/fixtures/google_garbage +0 -456
  201. data/test/fixtures/google_madison_square_garden +0 -57
  202. data/test/fixtures/google_no_city_data +0 -44
  203. data/test/fixtures/google_no_locality +0 -51
  204. data/test/fixtures/google_no_results +0 -4
  205. data/test/fixtures/google_over_limit +0 -4
  206. data/test/fixtures/google_places_details_invalid_request +0 -4
  207. data/test/fixtures/google_places_details_madison_square_garden +0 -120
  208. data/test/fixtures/google_places_details_no_results +0 -4
  209. data/test/fixtures/google_places_details_no_reviews +0 -60
  210. data/test/fixtures/google_places_details_no_types +0 -66
  211. data/test/fixtures/here_madison_square_garden +0 -72
  212. data/test/fixtures/here_no_results +0 -8
  213. data/test/fixtures/mapquest_error +0 -16
  214. data/test/fixtures/mapquest_invalid_api_key +0 -16
  215. data/test/fixtures/mapquest_invalid_request +0 -16
  216. data/test/fixtures/mapquest_madison_square_garden +0 -52
  217. data/test/fixtures/mapquest_no_results +0 -16
  218. data/test/fixtures/maxmind_24_24_24_21 +0 -1
  219. data/test/fixtures/maxmind_24_24_24_22 +0 -1
  220. data/test/fixtures/maxmind_24_24_24_23 +0 -1
  221. data/test/fixtures/maxmind_24_24_24_24 +0 -1
  222. data/test/fixtures/maxmind_74_200_247_59 +0 -1
  223. data/test/fixtures/maxmind_invalid_key +0 -1
  224. data/test/fixtures/maxmind_no_results +0 -1
  225. data/test/fixtures/nominatim_madison_square_garden +0 -150
  226. data/test/fixtures/nominatim_no_results +0 -1
  227. data/test/fixtures/nominatim_over_limit +0 -1
  228. data/test/fixtures/okf_kirstinmaki +0 -67
  229. data/test/fixtures/okf_no_results +0 -4
  230. data/test/fixtures/opencagedata_invalid_api_key +0 -25
  231. data/test/fixtures/opencagedata_invalid_request +0 -26
  232. data/test/fixtures/opencagedata_madison_square_garden +0 -73
  233. data/test/fixtures/opencagedata_no_results +0 -29
  234. data/test/fixtures/opencagedata_over_limit +0 -31
  235. data/test/fixtures/ovi_madison_square_garden +0 -72
  236. data/test/fixtures/ovi_no_results +0 -8
  237. data/test/fixtures/pointpin_10_10_10_10 +0 -1
  238. data/test/fixtures/pointpin_555_555_555_555 +0 -1
  239. data/test/fixtures/pointpin_80_111_555_555 +0 -1
  240. data/test/fixtures/pointpin_no_results +0 -1
  241. data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_WR26NJ +0 -1
  242. data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_generic_error +0 -1
  243. data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_hampshire +0 -1
  244. data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_key_limit_exceeded +0 -1
  245. data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_no_results +0 -1
  246. data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_romsey +0 -1
  247. data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_unknown_key +0 -1
  248. data/test/fixtures/smarty_streets_11211 +0 -1
  249. data/test/fixtures/smarty_streets_madison_square_garden +0 -47
  250. data/test/fixtures/smarty_streets_no_results +0 -1
  251. data/test/fixtures/telize_10_10_10_10 +0 -1
  252. data/test/fixtures/telize_555_555_555_555 +0 -4
  253. data/test/fixtures/telize_74_200_247_59 +0 -1
  254. data/test/fixtures/telize_no_results +0 -1
  255. data/test/fixtures/yahoo_error +0 -1
  256. data/test/fixtures/yahoo_invalid_key +0 -2
  257. data/test/fixtures/yahoo_madison_square_garden +0 -52
  258. data/test/fixtures/yahoo_no_results +0 -10
  259. data/test/fixtures/yahoo_over_limit +0 -2
  260. data/test/fixtures/yandex_canada_rue_dupuis_14 +0 -446
  261. data/test/fixtures/yandex_invalid_key +0 -1
  262. data/test/fixtures/yandex_kremlin +0 -48
  263. data/test/fixtures/yandex_new_york +0 -1
  264. data/test/fixtures/yandex_no_city_and_town +0 -112
  265. data/test/fixtures/yandex_no_results +0 -16
  266. data/test/integration/http_client_test.rb +0 -31
  267. data/test/mongoid_test_helper.rb +0 -43
  268. data/test/test_helper.rb +0 -416
  269. data/test/unit/active_record_test.rb +0 -16
  270. data/test/unit/cache_test.rb +0 -37
  271. data/test/unit/calculations_test.rb +0 -220
  272. data/test/unit/configuration_test.rb +0 -55
  273. data/test/unit/error_handling_test.rb +0 -56
  274. data/test/unit/geocoder_test.rb +0 -78
  275. data/test/unit/https_test.rb +0 -17
  276. data/test/unit/ip_address_test.rb +0 -27
  277. data/test/unit/lookup_test.rb +0 -153
  278. data/test/unit/lookups/bing_test.rb +0 -68
  279. data/test/unit/lookups/dstk_test.rb +0 -26
  280. data/test/unit/lookups/esri_test.rb +0 -48
  281. data/test/unit/lookups/freegeoip_test.rb +0 -27
  282. data/test/unit/lookups/geocoder_ca_test.rb +0 -17
  283. data/test/unit/lookups/geocodio_test.rb +0 -55
  284. data/test/unit/lookups/geoip2_test.rb +0 -27
  285. data/test/unit/lookups/google_places_details_test.rb +0 -122
  286. data/test/unit/lookups/google_premier_test.rb +0 -22
  287. data/test/unit/lookups/google_test.rb +0 -84
  288. data/test/unit/lookups/mapquest_test.rb +0 -60
  289. data/test/unit/lookups/maxmind_local_test.rb +0 -28
  290. data/test/unit/lookups/maxmind_test.rb +0 -63
  291. data/test/unit/lookups/nominatim_test.rb +0 -31
  292. data/test/unit/lookups/okf_test.rb +0 -38
  293. data/test/unit/lookups/opencagedata_test.rb +0 -64
  294. data/test/unit/lookups/pointpin_test.rb +0 -30
  295. data/test/unit/lookups/postcode_anywhere_uk_test.rb +0 -70
  296. data/test/unit/lookups/smarty_streets_test.rb +0 -71
  297. data/test/unit/lookups/telize_test.rb +0 -36
  298. data/test/unit/lookups/yahoo_test.rb +0 -35
  299. data/test/unit/method_aliases_test.rb +0 -26
  300. data/test/unit/model_test.rb +0 -38
  301. data/test/unit/mongoid_test.rb +0 -47
  302. data/test/unit/near_test.rb +0 -87
  303. data/test/unit/oauth_util_test.rb +0 -31
  304. data/test/unit/proxy_test.rb +0 -37
  305. data/test/unit/query_test.rb +0 -52
  306. data/test/unit/rake_task_test.rb +0 -21
  307. data/test/unit/request_test.rb +0 -35
  308. data/test/unit/result_test.rb +0 -72
  309. data/test/unit/test_mode_test.rb +0 -70
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 27a73d81025d3d5faa23e10ae7db3c1d25e9825e
4
- data.tar.gz: 740a6672d7cbfd97dc9c1e22a84473007674d4c5
2
+ SHA256:
3
+ metadata.gz: 26c7b5c88c38ee619a8fdc7452014b9601db83539334353758d451d2b300faf2
4
+ data.tar.gz: 873c8a8148b792c43302b921665880d2f4b54cdc8ad7e4698fafee4e2a24c8b4
5
5
  SHA512:
6
- metadata.gz: 9ae067878ed711962248b7a63bd8e322f3f0529cef013eb667f96b2c7b51b1f2a59c0ec9437fc79fb6a7338dc569c834abae6c903cf28339562ce6a4ff8db7f6
7
- data.tar.gz: 44af9419d97670067cfde24878a7b893d2f0fa6b784102277089f53c9b43d796cf90a755c261851d23b268b902f48a2217147fdff935719d3574cf4b5915ea38
6
+ metadata.gz: c8fc1e15bfb40407c0f3bcd31030defaf9af58be2c7c49d84efaa5b8ce3828cafd54d3c2a63d08920db4f2701934ac6c3ac9df52888c27fbfd8a05036da11bb5
7
+ data.tar.gz: 1114e5142f8e8e358fa143fb143b0ea833c611bc2ab92bcbe0d04dc62d0965d46149651d7c3847f967c76a5997a3fba1d0d43a997aee2287268a48ac041e08c7
data/CHANGELOG.md CHANGED
@@ -3,8 +3,273 @@ 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.2.6 (2014 Nov 8)
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
+
67
+ 1.6.4 (2020 Oct 6)
68
+ -------------------
69
+ * Various updates in response to geocoding API changes.
70
+ * Refactor of Google Places Search lookup (thanks github.com/maximilientyc).
71
+
72
+ 1.6.3 (2020 Apr 30)
73
+ -------------------
74
+ * Update URL for :telize lookup (thanks github.com/alexwalling).
75
+ * Fix bug parsing IPv6 with port (thanks github.com/gdomingu).
76
+
77
+ 1.6.2 (2020 Mar 16)
78
+ -------------------
79
+ * Add support for :nationaal_georegister_nl lookup (thanks github.com/opensourceame).
80
+ * Add support for :uk_ordnance_survey_names lookup (thanks github.com/pezholio).
81
+ * Refactor and fix bugs in Yandex lookup (thanks github.com/iarie and stereodenis).
82
+
83
+ 1.6.1 (2020 Jan 23)
84
+ -------------------
85
+ * Sanitize lat/lon values passed to within_bounding_box to prevent SQL injection.
86
+
87
+ 1.6.0 (2020 Jan 6)
88
+ -------------------
89
+ * Drop support for Rails 3.x.
90
+ * Add support for :osmnames lookup (thanks github.com/zacviandier).
91
+ * Add support for :ipgeolocation IP lookup (thanks github.com/ahsannawaz111).
92
+
93
+ 1.5.2 (2019 Oct 3)
94
+ -------------------
95
+ * Add support for :ipregistry lookup (thanks github.com/ipregistry).
96
+ * Various fixes for Yandex lookup.
97
+
98
+ 1.5.1 (2019 Jan 23)
99
+ -------------------
100
+ * Add support for :tencent lookup (thanks github.com/Anders-E).
101
+ * Add support for :smarty_streets international API (thanks github.com/ankane).
102
+ * Remove :mapzen lookup.
103
+
104
+ 1.5.0 (2018 Jul 31)
105
+ -------------------
106
+ * Drop support for Ruby <2.0.
107
+ * Change default street address lookup from :google to :nominatim.
108
+ * Cache keys no longer include API credentials. This means many entries in existing cache implementations will be invalidated.
109
+ * Test lookup fixtures should now return `coordinates` and NOT `latitude`/`longitude` attributes (see #1258). This may break some people's tests.
110
+ * Add support for :ip2location lookup (thanks github.com/ip2location).
111
+ * Remove :ovi and :okf lookups.
112
+
113
+ 1.4.9 (2018 May 27)
114
+ -------------------
115
+ * Fix regression in :geoip2 lookup.
116
+ * Add support for Postcodes.io lookup (thanks github.com/sledge909).
117
+
118
+ 1.4.8 (2018 May 21)
119
+ -------------------
120
+ * Change default IP address lookup from :freegeoip to :ipinfo_io.
121
+ * Add support for :ipstack lookup (thanks github.com/Heath101).
122
+ * Fix incompatibility with redis-rb gem v4.0.
123
+
124
+ 1.4.7 (2018 Mar 13)
125
+ -------------------
126
+ * Allow HTTP protocol for Nominatim.
127
+
128
+ 1.4.6 (2018 Feb 28)
129
+ -------------------
130
+ * Add support for :ipdata_co lookup (thanks github.com/roschaefer).
131
+ * Update for Rails 5.2 compatibility (thanks github.com/stevenharman).
132
+
133
+ 1.4.5 (2017 Nov 29)
134
+ -------------------
135
+ * Add support for :pickpoint lookup (thanks github.com/cylon-v).
136
+ * Add support for :db_ip_com lookup (thanks github.com/cv).
137
+ * Change FreeGeoIP host to freegeoip.net.
138
+ * Allow search radius to be a symbol representing a column in DB (thanks github.com/leonelgalan).
139
+ * Add support for new parameters and improved error handling for several lookups.
140
+ * Fix bug in SQL when searching for objects across 180th meridian.
141
+
142
+ 1.4.4 (2017 May 17)
143
+ -------------------
144
+ * Use HTTPS by default for :freegeoip (thanks github.com/mehanoid).
145
+ * Add support for :amap lookup (thanks github.com/pzgz).
146
+
147
+ 1.4.3 (2017 Feb 7)
148
+ -------------------
149
+ * Add :google_places_search lookup (thanks github.com/waruboy).
150
+
151
+ 1.4.2 (2017 Jan 31)
152
+ -------------------
153
+ * Fix bug that caused Model.near to return an incorrect query in some cases.
154
+
155
+ 1.4.1 (2016 Dec 2)
156
+ -------------------
157
+ * Add :location_iq lookup (thanks github.com/aleemuddin13 and glsignal).
158
+ * Add :ban_data_gouv_fr lookup (thanks github.com/JulianNacci).
159
+ * Fix :mapbox results when server returns no context (thanks github.com/jcmuller).
160
+ * Deprecate methods in Geocoder::Calculations: to_kilometers, to_miles, to_nautical_miles, mi_in_km, km_in_mi, km_in_nm, nm_in_km.
161
+
162
+ 1.4.0 (2016 Sep 8)
7
163
  -------------------
164
+ * Only consider an object geocoded if both lat and lon are present (previously was sufficient to have only one of the two) (thanks github.com/mltsy).
165
+ * Add support in :geocodio lookup for Canadian addresses (thanks github.com/bolandrm).
166
+ * Add support for SQLite extensions, if present (thanks github.com/stevecj).
167
+ * Always include Geocoder in Rack::Request, if defined (thanks github.com/wjordan).
168
+
169
+ 1.3.7 (2016 Jun 9)
170
+ -------------------
171
+ * Fix Ruby 1.9, 2.0 incompatibility (thanks github.com/ebouchut).
172
+ * Update SmartyStreets zipcode API endpoint (thanks github.com/jeffects).
173
+ * Catch network errors (thanks github.com/sas1ni69).
174
+
175
+ 1.3.6 (2016 May 31)
176
+ -------------------
177
+ * Fix Sinatra support broken in 1.3.5.
178
+
179
+ 1.3.5 (2016 May 27)
180
+ -------------------
181
+ * Fix Rails 5 ActionDispatch include issue (thanks github.com/alepore).
182
+ * Fix bug that caused :esri lookup to ignore certain configured parameters (thanks github.com/aaronpk).
183
+ * Add reverse geocoding support to :pelias/:mapzen (thanks github.com/shinyaK14).
184
+ * Add support for custom host with :telize (thanks github.com/jwaldrip).
185
+ * Change the way :esri lookup generates cache keys for improved performance (thanks github.com/aaronpk).
186
+ * Improve HTTPS connections with :google (thanks github.com/jlhonora).
187
+
188
+ 1.3.4 (2016 Apr 14)
189
+ -------------------
190
+ * Update :freegeoip host (old one is down).
191
+ * Add IP lookup :ipapi_com (thanks github.com/piotrgorecki).
192
+
193
+ 1.3.3 (2016 Apr 4)
194
+ ------------------
195
+ * Fix incorrect gem version number.
196
+
197
+ 1.3.2 (2016 Apr 1)
198
+ ------------------
199
+ * Remove :yahoo lookup (service was discontinued Mar 31) (thanks github.com/galiat).
200
+ * Add support for LatLon.io service (thanks github.com/evanmarks).
201
+ * Add support for IpInfo.io service (thanks github.com/rehan, akostyuk).
202
+ * Add support for Pelias/Mapzen service (thanks github.com/RealScout).
203
+
204
+ 1.3.1 (2016 Feb 20)
205
+ -------------------
206
+ * Warn about upcoming discontinuation of :yahoo lookup (thanks github.com/galiat).
207
+ * Add #viewport method to results that return viewport data (thanks github.com/lime).
208
+
209
+ 1.3.0 (2016 Jan 31)
210
+ -------------------
211
+ * Lazy load lookups to reduce memory footprint (thanks github.com/TrangPham).
212
+ * Add :geoportail_lu lookup (Luxembourg only) (thanks github.com/mdebo).
213
+ * Maxmind local query performance improvement (thanks github.com/vojtad).
214
+ * Remove deprecated Mongo near query methods (please use Mongo-native methods instead).
215
+
216
+ 1.2.14 (2015 Dec 27)
217
+ --------------------
218
+ * Fix bug in :geoip2 lookup (thanks github.com/mromulus).
219
+
220
+ 1.2.13 (2015 Dec 15)
221
+ --------------------
222
+ * Update :telize IP lookup to reflect new URL (thanks github.com/jfredrickson).
223
+ * Add reverse geocode rake task (thanks github.com/FanaHOVA).
224
+ * Fix reversed coordinates array with Mapbox (thanks github.com/marcusat).
225
+ * Fix missing city name in some cases with ESRI (thanks github.com/roybotnik).
226
+ * Prevent re-opening of DB file on every read with :geoip2 (thanks github.com/oogali).
227
+
228
+ 1.2.12 (2015 Oct 29)
229
+ --------------------
230
+ * Fix Ruby 1.9.3 incompatibility (remove non-existent timeout classes) (thanks github.com/roychri).
231
+
232
+ 1.2.11 (2015 Sep 10)
233
+ --------------------
234
+ * Fix load issue on Ruby 1.9.3.
235
+
236
+ 1.2.10 (2015 Sep 7)
237
+ -------------------
238
+ * Force Yandex to use HTTPS (thanks github.com/donbobka).
239
+ * Force :google to use HTTPS if API key set.
240
+ * Fix out-of-the-box verbosity issues (GH #881).
241
+ * Improve timeout mechanism and add exception Geocoder::LookupTimeout (thanks github.com/ankane).
242
+ * Deprecate .near and #nearbys for MongoDB-backed models.
243
+
244
+ 1.2.9 (2015 Jun 12)
245
+ -------------------
246
+ * Don't cache unsuccessful responses from Bing (thanks github.com/peteb).
247
+ * Show API response when not valid JSON.
248
+ * Log each API request.
249
+ * Force all SmartyStreets requests to use HTTPS.
250
+
251
+ 1.2.8 (2015 Mar 21)
252
+ -------------------
253
+ * Add :maxmind_geoip2 lookup (thanks github.com/TrangPham).
254
+ * Add ability to force/specify query type (street or IP address) (thanks github.com/TrangPham).
255
+ * Add :basic_auth configuration (thanks github.com/TrangPham).
256
+ * Add `safe_location` method for Rails controllers (thanks github.com/edslocomb).
257
+ * Add :logger configuration (thanks github.com/TrangPham).
258
+ * Improve error condition handling with Bing (thanks github.com/TrangPham).
259
+
260
+ 1.2.7 (2015 Jan 24)
261
+ -------------------
262
+ * DROP SUPPORT for Ruby 1.9.2.
263
+ * Use UTF-8 encoding for maxmind_local results (thanks github.com/ellmo).
264
+ * Update freegeoip response handling (thanks github.com/hosamaly).
265
+ * Update nominatim response handling (thanks github.com/jsantos).
266
+ * Update yandex response handling (thanks github.com/wfleming).
267
+ * Update geocodio response handling (thanks github.com/getsidewalk).
268
+ * Add ability to raise exception when response parsing fails (thanks github.com/spiderpug).
269
+ * Fix double-loading of Railtie (thanks github.com/wfleming and zhouguangming).
270
+
271
+ 1.2.6 (2014 Nov 8)
272
+ ------------------
8
273
  * Add :geoip2 lookup (thanks github.com/ChristianHoj).
9
274
  * Add :okf lookup (thanks github.com/kakoni).
10
275
  * Add :postcode_anywhere_uk lookup (thanks github.com/rob-murray).
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009-11 Alex Reisner
1
+ Copyright (c) 2009-2021 Alex Reisner
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the