geocoder 1.2.6 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (276) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +189 -1
  3. data/LICENSE +1 -1
  4. data/README.md +387 -755
  5. data/examples/autoexpire_cache_redis.rb +5 -3
  6. data/examples/reverse_geocode_job.rb +40 -0
  7. data/lib/generators/geocoder/config/templates/initializer.rb +17 -16
  8. data/lib/generators/geocoder/maxmind/geolite_city_generator.rb +2 -0
  9. data/lib/generators/geocoder/maxmind/geolite_country_generator.rb +2 -0
  10. data/lib/generators/geocoder/maxmind/templates/migration/geolite_city.rb +1 -1
  11. data/lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb +1 -1
  12. data/lib/generators/geocoder/migration_version.rb +15 -0
  13. data/lib/geocoder/cache.rb +6 -2
  14. data/lib/geocoder/calculations.rb +30 -38
  15. data/lib/geocoder/cli.rb +2 -2
  16. data/lib/geocoder/configuration.rb +18 -5
  17. data/lib/geocoder/esri_token.rb +38 -0
  18. data/lib/geocoder/exceptions.rb +19 -0
  19. data/lib/geocoder/ip_address.rb +16 -11
  20. data/lib/geocoder/kernel_logger.rb +25 -0
  21. data/lib/geocoder/logger.rb +47 -0
  22. data/lib/geocoder/lookup.rb +31 -12
  23. data/lib/geocoder/lookups/amap.rb +63 -0
  24. data/lib/geocoder/lookups/baidu.rb +17 -9
  25. data/lib/geocoder/lookups/baidu_ip.rb +7 -31
  26. data/lib/geocoder/lookups/ban_data_gouv_fr.rb +143 -0
  27. data/lib/geocoder/lookups/base.rb +73 -25
  28. data/lib/geocoder/lookups/bing.rb +38 -15
  29. data/lib/geocoder/lookups/db_ip_com.rb +52 -0
  30. data/lib/geocoder/lookups/dstk.rb +4 -2
  31. data/lib/geocoder/lookups/esri.rb +55 -8
  32. data/lib/geocoder/lookups/freegeoip.rb +18 -5
  33. data/lib/geocoder/lookups/geocoder_ca.rb +5 -6
  34. data/lib/geocoder/lookups/geocodio.rb +8 -8
  35. data/lib/geocoder/lookups/geoip2.rb +10 -5
  36. data/lib/geocoder/lookups/geoportail_lu.rb +65 -0
  37. data/lib/geocoder/lookups/google.rb +37 -9
  38. data/lib/geocoder/lookups/google_places_details.rb +9 -9
  39. data/lib/geocoder/lookups/google_places_search.rb +33 -0
  40. data/lib/geocoder/lookups/google_premier.rb +11 -1
  41. data/lib/geocoder/lookups/here.rb +29 -23
  42. data/lib/geocoder/lookups/ip2location.rb +67 -0
  43. data/lib/geocoder/lookups/ipapi_com.rb +82 -0
  44. data/lib/geocoder/lookups/ipdata_co.rb +62 -0
  45. data/lib/geocoder/lookups/ipgeolocation.rb +51 -0
  46. data/lib/geocoder/lookups/ipinfo_io.rb +44 -0
  47. data/lib/geocoder/lookups/ipregistry.rb +68 -0
  48. data/lib/geocoder/lookups/ipstack.rb +63 -0
  49. data/lib/geocoder/lookups/latlon.rb +59 -0
  50. data/lib/geocoder/lookups/location_iq.rb +50 -0
  51. data/lib/geocoder/lookups/mapbox.rb +59 -0
  52. data/lib/geocoder/lookups/mapquest.rb +7 -9
  53. data/lib/geocoder/lookups/maxmind.rb +7 -7
  54. data/lib/geocoder/lookups/maxmind_geoip2.rb +70 -0
  55. data/lib/geocoder/lookups/maxmind_local.rb +9 -2
  56. data/lib/geocoder/lookups/nominatim.rb +18 -6
  57. data/lib/geocoder/lookups/opencagedata.rb +16 -9
  58. data/lib/geocoder/lookups/osmnames.rb +57 -0
  59. data/lib/geocoder/lookups/pelias.rb +63 -0
  60. data/lib/geocoder/lookups/pickpoint.rb +41 -0
  61. data/lib/geocoder/lookups/pointpin.rb +14 -13
  62. data/lib/geocoder/lookups/postcode_anywhere_uk.rb +7 -8
  63. data/lib/geocoder/lookups/postcodes_io.rb +31 -0
  64. data/lib/geocoder/lookups/smarty_streets.rb +23 -5
  65. data/lib/geocoder/lookups/telize.rb +42 -7
  66. data/lib/geocoder/lookups/tencent.rb +59 -0
  67. data/lib/geocoder/lookups/yandex.rb +17 -9
  68. data/lib/geocoder/models/active_record.rb +4 -3
  69. data/lib/geocoder/models/mongo_base.rb +0 -2
  70. data/lib/geocoder/query.rb +15 -1
  71. data/lib/geocoder/railtie.rb +1 -1
  72. data/lib/geocoder/request.rb +103 -14
  73. data/lib/geocoder/results/amap.rb +87 -0
  74. data/lib/geocoder/results/baidu.rb +10 -14
  75. data/lib/geocoder/results/ban_data_gouv_fr.rb +257 -0
  76. data/lib/geocoder/results/base.rb +13 -1
  77. data/lib/geocoder/results/bing.rb +5 -1
  78. data/lib/geocoder/results/db_ip_com.rb +58 -0
  79. data/lib/geocoder/results/esri.rb +30 -6
  80. data/lib/geocoder/results/freegeoip.rb +2 -7
  81. data/lib/geocoder/results/geocoder_ca.rb +3 -3
  82. data/lib/geocoder/results/geocodio.rb +15 -3
  83. data/lib/geocoder/results/geoip2.rb +37 -25
  84. data/lib/geocoder/results/geoportail_lu.rb +71 -0
  85. data/lib/geocoder/results/google.rb +26 -0
  86. data/lib/geocoder/results/google_places_details.rb +4 -0
  87. data/lib/geocoder/results/google_places_search.rb +52 -0
  88. data/lib/geocoder/results/here.rb +21 -1
  89. data/lib/geocoder/results/ip2location.rb +22 -0
  90. data/lib/geocoder/results/ipapi_com.rb +45 -0
  91. data/lib/geocoder/results/ipdata_co.rb +40 -0
  92. data/lib/geocoder/results/ipgeolocation.rb +59 -0
  93. data/lib/geocoder/results/ipinfo_io.rb +48 -0
  94. data/lib/geocoder/results/ipregistry.rb +308 -0
  95. data/lib/geocoder/results/ipstack.rb +60 -0
  96. data/lib/geocoder/results/latlon.rb +71 -0
  97. data/lib/geocoder/results/location_iq.rb +6 -0
  98. data/lib/geocoder/results/mapbox.rb +57 -0
  99. data/lib/geocoder/results/mapquest.rb +5 -8
  100. data/lib/geocoder/results/maxmind.rb +0 -5
  101. data/lib/geocoder/results/maxmind_geoip2.rb +9 -0
  102. data/lib/geocoder/results/maxmind_local.rb +0 -5
  103. data/lib/geocoder/results/nominatim.rb +18 -3
  104. data/lib/geocoder/results/opencagedata.rb +20 -2
  105. data/lib/geocoder/results/osmnames.rb +56 -0
  106. data/lib/geocoder/results/pelias.rb +58 -0
  107. data/lib/geocoder/results/pickpoint.rb +6 -0
  108. data/lib/geocoder/results/pointpin.rb +0 -4
  109. data/lib/geocoder/results/postcodes_io.rb +40 -0
  110. data/lib/geocoder/results/smarty_streets.rb +55 -19
  111. data/lib/geocoder/results/telize.rb +0 -5
  112. data/lib/geocoder/results/tencent.rb +72 -0
  113. data/lib/geocoder/results/test.rb +1 -1
  114. data/lib/geocoder/results/yandex.rb +57 -7
  115. data/lib/geocoder/sql.rb +9 -6
  116. data/lib/geocoder/stores/active_record.rb +49 -10
  117. data/lib/geocoder/stores/base.rb +2 -14
  118. data/lib/geocoder/stores/mongo_base.rb +0 -31
  119. data/lib/geocoder/version.rb +1 -1
  120. data/lib/geocoder.rb +2 -1
  121. data/lib/hash_recursive_merge.rb +1 -2
  122. data/lib/maxmind_database.rb +4 -4
  123. data/lib/tasks/geocoder.rake +29 -4
  124. metadata +56 -159
  125. data/.gitignore +0 -6
  126. data/.travis.yml +0 -31
  127. data/Rakefile +0 -25
  128. data/gemfiles/Gemfile.mongoid-2.4.x +0 -16
  129. data/lib/geocoder/lookups/geocoder_us.rb +0 -39
  130. data/lib/geocoder/lookups/okf.rb +0 -43
  131. data/lib/geocoder/lookups/ovi.rb +0 -62
  132. data/lib/geocoder/lookups/yahoo.rb +0 -88
  133. data/lib/geocoder/results/geocoder_us.rb +0 -39
  134. data/lib/geocoder/results/okf.rb +0 -106
  135. data/lib/geocoder/results/ovi.rb +0 -62
  136. data/lib/geocoder/results/yahoo.rb +0 -55
  137. data/lib/oauth_util.rb +0 -112
  138. data/test/fixtures/baidu_invalid_key +0 -1
  139. data/test/fixtures/baidu_ip_202_198_16_3 +0 -19
  140. data/test/fixtures/baidu_ip_invalid_key +0 -1
  141. data/test/fixtures/baidu_ip_no_results +0 -1
  142. data/test/fixtures/baidu_no_results +0 -1
  143. data/test/fixtures/baidu_reverse +0 -1
  144. data/test/fixtures/baidu_shanghai_pearl_tower +0 -12
  145. data/test/fixtures/bing_invalid_key +0 -1
  146. data/test/fixtures/bing_madison_square_garden +0 -40
  147. data/test/fixtures/bing_no_results +0 -16
  148. data/test/fixtures/bing_reverse +0 -42
  149. data/test/fixtures/cloudmade_invalid_key +0 -1
  150. data/test/fixtures/cloudmade_madison_square_garden +0 -1
  151. data/test/fixtures/cloudmade_no_results +0 -1
  152. data/test/fixtures/esri_madison_square_garden +0 -59
  153. data/test/fixtures/esri_no_results +0 -8
  154. data/test/fixtures/esri_reverse +0 -21
  155. data/test/fixtures/freegeoip_74_200_247_59 +0 -12
  156. data/test/fixtures/freegeoip_no_results +0 -1
  157. data/test/fixtures/geocoder_ca_madison_square_garden +0 -1
  158. data/test/fixtures/geocoder_ca_no_results +0 -1
  159. data/test/fixtures/geocoder_ca_reverse +0 -34
  160. data/test/fixtures/geocoder_us_madison_square_garden +0 -1
  161. data/test/fixtures/geocoder_us_no_results +0 -1
  162. data/test/fixtures/geocodio_1101_pennsylvania_ave +0 -1
  163. data/test/fixtures/geocodio_bad_api_key +0 -3
  164. data/test/fixtures/geocodio_invalid +0 -4
  165. data/test/fixtures/geocodio_no_results +0 -1
  166. data/test/fixtures/geocodio_over_query_limit +0 -4
  167. data/test/fixtures/google_garbage +0 -456
  168. data/test/fixtures/google_madison_square_garden +0 -57
  169. data/test/fixtures/google_no_city_data +0 -44
  170. data/test/fixtures/google_no_locality +0 -51
  171. data/test/fixtures/google_no_results +0 -4
  172. data/test/fixtures/google_over_limit +0 -4
  173. data/test/fixtures/google_places_details_invalid_request +0 -4
  174. data/test/fixtures/google_places_details_madison_square_garden +0 -120
  175. data/test/fixtures/google_places_details_no_results +0 -4
  176. data/test/fixtures/google_places_details_no_reviews +0 -60
  177. data/test/fixtures/google_places_details_no_types +0 -66
  178. data/test/fixtures/here_madison_square_garden +0 -72
  179. data/test/fixtures/here_no_results +0 -8
  180. data/test/fixtures/mapquest_error +0 -16
  181. data/test/fixtures/mapquest_invalid_api_key +0 -16
  182. data/test/fixtures/mapquest_invalid_request +0 -16
  183. data/test/fixtures/mapquest_madison_square_garden +0 -52
  184. data/test/fixtures/mapquest_no_results +0 -16
  185. data/test/fixtures/maxmind_24_24_24_21 +0 -1
  186. data/test/fixtures/maxmind_24_24_24_22 +0 -1
  187. data/test/fixtures/maxmind_24_24_24_23 +0 -1
  188. data/test/fixtures/maxmind_24_24_24_24 +0 -1
  189. data/test/fixtures/maxmind_74_200_247_59 +0 -1
  190. data/test/fixtures/maxmind_invalid_key +0 -1
  191. data/test/fixtures/maxmind_no_results +0 -1
  192. data/test/fixtures/nominatim_madison_square_garden +0 -150
  193. data/test/fixtures/nominatim_no_results +0 -1
  194. data/test/fixtures/nominatim_over_limit +0 -1
  195. data/test/fixtures/okf_kirstinmaki +0 -67
  196. data/test/fixtures/okf_no_results +0 -4
  197. data/test/fixtures/opencagedata_invalid_api_key +0 -25
  198. data/test/fixtures/opencagedata_invalid_request +0 -26
  199. data/test/fixtures/opencagedata_madison_square_garden +0 -73
  200. data/test/fixtures/opencagedata_no_results +0 -29
  201. data/test/fixtures/opencagedata_over_limit +0 -31
  202. data/test/fixtures/ovi_madison_square_garden +0 -72
  203. data/test/fixtures/ovi_no_results +0 -8
  204. data/test/fixtures/pointpin_10_10_10_10 +0 -1
  205. data/test/fixtures/pointpin_555_555_555_555 +0 -1
  206. data/test/fixtures/pointpin_80_111_555_555 +0 -1
  207. data/test/fixtures/pointpin_no_results +0 -1
  208. data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_WR26NJ +0 -1
  209. data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_generic_error +0 -1
  210. data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_hampshire +0 -1
  211. data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_key_limit_exceeded +0 -1
  212. data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_no_results +0 -1
  213. data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_romsey +0 -1
  214. data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_unknown_key +0 -1
  215. data/test/fixtures/smarty_streets_11211 +0 -1
  216. data/test/fixtures/smarty_streets_madison_square_garden +0 -47
  217. data/test/fixtures/smarty_streets_no_results +0 -1
  218. data/test/fixtures/telize_10_10_10_10 +0 -1
  219. data/test/fixtures/telize_555_555_555_555 +0 -4
  220. data/test/fixtures/telize_74_200_247_59 +0 -1
  221. data/test/fixtures/telize_no_results +0 -1
  222. data/test/fixtures/yahoo_error +0 -1
  223. data/test/fixtures/yahoo_invalid_key +0 -2
  224. data/test/fixtures/yahoo_madison_square_garden +0 -52
  225. data/test/fixtures/yahoo_no_results +0 -10
  226. data/test/fixtures/yahoo_over_limit +0 -2
  227. data/test/fixtures/yandex_canada_rue_dupuis_14 +0 -446
  228. data/test/fixtures/yandex_invalid_key +0 -1
  229. data/test/fixtures/yandex_kremlin +0 -48
  230. data/test/fixtures/yandex_new_york +0 -1
  231. data/test/fixtures/yandex_no_city_and_town +0 -112
  232. data/test/fixtures/yandex_no_results +0 -16
  233. data/test/integration/http_client_test.rb +0 -31
  234. data/test/mongoid_test_helper.rb +0 -43
  235. data/test/test_helper.rb +0 -416
  236. data/test/unit/active_record_test.rb +0 -16
  237. data/test/unit/cache_test.rb +0 -37
  238. data/test/unit/calculations_test.rb +0 -220
  239. data/test/unit/configuration_test.rb +0 -55
  240. data/test/unit/error_handling_test.rb +0 -56
  241. data/test/unit/geocoder_test.rb +0 -78
  242. data/test/unit/https_test.rb +0 -17
  243. data/test/unit/ip_address_test.rb +0 -27
  244. data/test/unit/lookup_test.rb +0 -153
  245. data/test/unit/lookups/bing_test.rb +0 -68
  246. data/test/unit/lookups/dstk_test.rb +0 -26
  247. data/test/unit/lookups/esri_test.rb +0 -48
  248. data/test/unit/lookups/freegeoip_test.rb +0 -27
  249. data/test/unit/lookups/geocoder_ca_test.rb +0 -17
  250. data/test/unit/lookups/geocodio_test.rb +0 -55
  251. data/test/unit/lookups/geoip2_test.rb +0 -27
  252. data/test/unit/lookups/google_places_details_test.rb +0 -122
  253. data/test/unit/lookups/google_premier_test.rb +0 -22
  254. data/test/unit/lookups/google_test.rb +0 -84
  255. data/test/unit/lookups/mapquest_test.rb +0 -60
  256. data/test/unit/lookups/maxmind_local_test.rb +0 -28
  257. data/test/unit/lookups/maxmind_test.rb +0 -63
  258. data/test/unit/lookups/nominatim_test.rb +0 -31
  259. data/test/unit/lookups/okf_test.rb +0 -38
  260. data/test/unit/lookups/opencagedata_test.rb +0 -64
  261. data/test/unit/lookups/pointpin_test.rb +0 -30
  262. data/test/unit/lookups/postcode_anywhere_uk_test.rb +0 -70
  263. data/test/unit/lookups/smarty_streets_test.rb +0 -71
  264. data/test/unit/lookups/telize_test.rb +0 -36
  265. data/test/unit/lookups/yahoo_test.rb +0 -35
  266. data/test/unit/method_aliases_test.rb +0 -26
  267. data/test/unit/model_test.rb +0 -38
  268. data/test/unit/mongoid_test.rb +0 -47
  269. data/test/unit/near_test.rb +0 -87
  270. data/test/unit/oauth_util_test.rb +0 -31
  271. data/test/unit/proxy_test.rb +0 -37
  272. data/test/unit/query_test.rb +0 -52
  273. data/test/unit/rake_task_test.rb +0 -21
  274. data/test/unit/request_test.rb +0 -35
  275. data/test/unit/result_test.rb +0 -72
  276. data/test/unit/test_mode_test.rb +0 -70
@@ -1,57 +0,0 @@
1
- {
2
- "status": "OK",
3
- "results": [ {
4
- "types": [ "street_address" ],
5
- "formatted_address": "4 Penn Plaza, New York, NY 10001, USA",
6
- "address_components": [ {
7
- "long_name": "4",
8
- "short_name": "4",
9
- "types": [ "street_number" ]
10
- }, {
11
- "long_name": "Penn Plaza",
12
- "short_name": "Penn Plaza",
13
- "types": [ "route" ]
14
- }, {
15
- "long_name": "Manhattan",
16
- "short_name": "Manhattan",
17
- "types": [ "sublocality", "political" ]
18
- }, {
19
- "long_name": "New York",
20
- "short_name": "New York",
21
- "types": [ "locality", "political" ]
22
- }, {
23
- "long_name": "New York",
24
- "short_name": "New York",
25
- "types": [ "administrative_area_level_2", "political" ]
26
- }, {
27
- "long_name": "New York",
28
- "short_name": "NY",
29
- "types": [ "administrative_area_level_1", "political" ]
30
- }, {
31
- "long_name": "United States",
32
- "short_name": "US",
33
- "types": [ "country", "political" ]
34
- }, {
35
- "long_name": "10001",
36
- "short_name": "10001",
37
- "types": [ "postal_code" ]
38
- } ],
39
- "geometry": {
40
- "location": {
41
- "lat": 40.7503540,
42
- "lng": -73.9933710
43
- },
44
- "location_type": "ROOFTOP",
45
- "viewport": {
46
- "southwest": {
47
- "lat": 40.7473324,
48
- "lng": -73.9965316
49
- },
50
- "northeast": {
51
- "lat": 40.7536276,
52
- "lng": -73.9902364
53
- }
54
- }
55
- }
56
- } ]
57
- }
@@ -1,44 +0,0 @@
1
- {
2
- "status": "OK",
3
- "results": [ {
4
- "types": [ "postal_code" ],
5
- "formatted_address": "55100, Turkey",
6
- "address_components": [{
7
- "long_name": "55100",
8
- "short_name": "55100",
9
- "types": ["postal_code"]
10
- },
11
- {
12
- "long_name": "Turkey",
13
- "short_name": "TR",
14
- "types": ["country", "political"]
15
- }],
16
- "geometry": {
17
- "location": {
18
- "lat": 41.3112221,
19
- "lng": 36.3322118
20
- },
21
- "location_type": "APPROXIMATE",
22
- "viewport": {
23
- "southwest": {
24
- "lat": 41.2933411,
25
- "lng": 36.3066331
26
- },
27
- "northeast": {
28
- "lat": 41.3291031,
29
- "lng": 36.3577906
30
- }
31
- },
32
- "bounds": {
33
- "southwest": {
34
- "lat": 41.2933411,
35
- "lng": 36.3066331
36
- },
37
- "northeast": {
38
- "lat": 41.3291031,
39
- "lng": 36.3577906
40
- }
41
- }
42
- }
43
- } ]
44
- }
@@ -1,51 +0,0 @@
1
- {
2
- "status": "OK",
3
- "results": [ {
4
- "types": [ "route" ],
5
- "formatted_address": "Al Ahram, Haram, Giza, Egypt",
6
- "address_components": [ {
7
- "long_name": "Al Ahram",
8
- "short_name": "Al Ahram",
9
- "types": [ "route" ]
10
- }, {
11
- "long_name": "Haram",
12
- "short_name": "Haram",
13
- "types": [ "administrative_area_level_2", "political" ]
14
- }, {
15
- "long_name": "Al Jizah",
16
- "short_name": "Al Jizah",
17
- "types": [ "administrative_area_level_1", "political" ]
18
- }, {
19
- "long_name": "Egypt",
20
- "short_name": "EG",
21
- "types": [ "country", "political" ]
22
- } ],
23
- "geometry": {
24
- "location": {
25
- "lat": 29.9803527,
26
- "lng": 31.1330307
27
- },
28
- "location_type": "APPROXIMATE",
29
- "viewport": {
30
- "southwest": {
31
- "lat": 29.9768276,
32
- "lng": 31.1302189
33
- },
34
- "northeast": {
35
- "lat": 29.9831228,
36
- "lng": 31.1365141
37
- }
38
- },
39
- "bounds": {
40
- "southwest": {
41
- "lat": 29.9775337,
42
- "lng": 31.1327483
43
- },
44
- "northeast": {
45
- "lat": 29.9824167,
46
- "lng": 31.1339847
47
- }
48
- }
49
- }
50
- } ]
51
- }
@@ -1,4 +0,0 @@
1
- {
2
- "status": "ZERO_RESULTS",
3
- "results": [ ]
4
- }
@@ -1,4 +0,0 @@
1
- {
2
- "status": "OVER_QUERY_LIMIT",
3
- "results": [ ]
4
- }
@@ -1,4 +0,0 @@
1
- {
2
- "html_attributions" : [],
3
- "status" : "INVALID_REQUEST"
4
- }
@@ -1,120 +0,0 @@
1
- {
2
- "html_attributions" : [],
3
- "result" : {
4
- "address_components" : [
5
- {
6
- "long_name" : "4",
7
- "short_name" : "4",
8
- "types" : [ "street_number" ]
9
- },
10
- {
11
- "long_name" : "Pennsylvania Plaza",
12
- "short_name" : "Pennsylvania Plaza",
13
- "types" : [ "route" ]
14
- },
15
- {
16
- "long_name" : "Chelsea",
17
- "short_name" : "Chelsea",
18
- "types" : [ "neighborhood", "political" ]
19
- },
20
- {
21
- "long_name" : "Manhattan",
22
- "short_name" : "Manhattan",
23
- "types" : [ "sublocality_level_1", "sublocality", "political" ]
24
- },
25
- {
26
- "long_name" : "New York",
27
- "short_name" : "New York",
28
- "types" : [ "locality", "political" ]
29
- },
30
- {
31
- "long_name" : "New York County",
32
- "short_name" : "New York County",
33
- "types" : [ "administrative_area_level_2", "political" ]
34
- },
35
- {
36
- "long_name" : "NY",
37
- "short_name" : "NY",
38
- "types" : [ "administrative_area_level_1", "political" ]
39
- },
40
- {
41
- "long_name" : "United States",
42
- "short_name" : "US",
43
- "types" : [ "country", "political" ]
44
- },
45
- {
46
- "long_name" : "10001",
47
- "short_name" : "10001",
48
- "types" : [ "postal_code" ]
49
- }
50
- ],
51
- "adr_address" : "\u003cspan class=\"street-address\"\u003e4 Pennsylvania Plaza\u003c/span\u003e, \u003cspan class=\"locality\"\u003eNew York\u003c/span\u003e, \u003cspan class=\"region\"\u003eNY\u003c/span\u003e \u003cspan class=\"postal-code\"\u003e10001\u003c/span\u003e, \u003cspan class=\"country-name\"\u003eUnited States\u003c/span\u003e",
52
- "formatted_address" : "4 Pennsylvania Plaza, New York, NY, United States",
53
- "formatted_phone_number" : "(212) 465-6741",
54
- "geometry" : {
55
- "location" : {
56
- "lat" : 40.750504,
57
- "lng" : -73.993439
58
- }
59
- },
60
- "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/stadium-71.png",
61
- "id" : "55e3174d410b31da010030a7dfc0c9819027445a",
62
- "international_phone_number" : "+1 212-465-6741",
63
- "name" : "Madison Square Garden",
64
- "photos" : [
65
- {
66
- "height" : 267,
67
- "html_attributions" : [ "Someone" ],
68
- "photo_reference" : "CnRoAAAAB1lz_vOkA1Ffaf7vJ1xcjzVsII-873Z_f8_v3EyW4XbEvlR3VkW_HvNfwF6AwDA0U-ont7fIUqEMyDcovCTWN8RSYN3ibEhqgJPvXxBjeYVi0cc-t-3KfkB_LpV7chPAqhOsdMG56kyzTKIo4lISHxIQqru7QXV6xU11jLaLpi4FNRoUhutg9aq027NghW1d-o9GGE8N3yM",
69
- "width" : 400
70
- },
71
- {
72
- "height" : 732,
73
- "html_attributions" : [ "Someone else" ],
74
- "photo_reference" : "CoQBfwAAADbYj554hM1BgVbBOs6rDjO9UtQ63ecU1P8tI3PfaHame3MB4ipgcNRlv9N2iUa-tXoMq9iXAaDStWgCJ3f48WIuIRbz-Xv-HzSJ0hMCrFiZMRs7kLgaBO7eDJwioTySWcoyAwojretq4mZKF_AcRSUhkqOokBhOstmshWWpSAyyEhAdpL2yp42xDNq2YRiFrx4DGhRZIdt7mochSwZcgSdjESea27Qy9Q",
75
- "width" : 929
76
- }
77
- ],
78
- "place_id" : "ChIJhRwB-yFawokR5Phil-QQ3zM",
79
- "rating" : 4.4,
80
- "reference" : "CnRuAAAArSB-mFxXRjm0ERZIC4c_1gbXwxqmyxUrxws_PQUrz9Y3xZstEwm7_8dLw7zM8hV3vWkPF4RkkZQQ_X01ikDALx2VgV60YwiSX7k3TXxkWnzyFcX0fnHCQLerlYttk_usL7UALQQgMeuf25_eFx3SnhIQxN95Ek3bQVuLVM16yb99ehoU7djcL3cjllohLZ6oJ6X3Tzb9MJQ",
81
- "reviews" : [
82
- {
83
- "aspects" : [
84
- {
85
- "rating" : 5,
86
- "type" : "overall"
87
- }
88
- ],
89
- "author_name" : "John Smith",
90
- "author_url" : "https://plus.google.com/john.smith",
91
- "language" : "en",
92
- "rating" : 5,
93
- "text" : "It's nice.",
94
- "time" : 1407266916
95
- },
96
- {
97
- "aspects" : [
98
- {
99
- "rating" : 2,
100
- "type" : "overall"
101
- }
102
- ],
103
- "author_name" : "Jane Smith",
104
- "author_url" : "https://plus.google.com/jane.smith",
105
- "language" : "en",
106
- "rating" : 2,
107
- "text" : "Not so nice.",
108
- "time" : 1398779079
109
- }
110
- ],
111
- "scope" : "GOOGLE",
112
- "types" : [ "stadium", "establishment" ],
113
- "url" : "https://plus.google.com/112180896421099179463/about?hl=en-US",
114
- "user_ratings_total" : 382,
115
- "utc_offset" : -240,
116
- "vicinity" : "4 Pennsylvania Plaza, New York",
117
- "website" : "http://www.thegarden.com/"
118
- },
119
- "status" : "OK"
120
- }
@@ -1,4 +0,0 @@
1
- {
2
- "html_attributions" : [],
3
- "result": {}
4
- }
@@ -1,60 +0,0 @@
1
- {
2
- "html_attributions" : [],
3
- "result" : {
4
- "address_components" : [
5
- {
6
- "long_name" : "25",
7
- "short_name" : "25",
8
- "types" : [ "street_number" ]
9
- },
10
- {
11
- "long_name" : "Oranienstraße",
12
- "short_name" : "Oranienstraße",
13
- "types" : [ "route" ]
14
- },
15
- {
16
- "long_name" : "Friedrichshain-Kreuzberg",
17
- "short_name" : "Friedrichshain-Kreuzberg",
18
- "types" : [ "sublocality_level_1", "sublocality", "political" ]
19
- },
20
- {
21
- "long_name" : "Berlin",
22
- "short_name" : "Berlin",
23
- "types" : [ "locality", "political" ]
24
- },
25
- {
26
- "long_name" : "Berlin",
27
- "short_name" : "Berlin",
28
- "types" : [ "administrative_area_level_1", "political" ]
29
- },
30
- {
31
- "long_name" : "Germany",
32
- "short_name" : "DE",
33
- "types" : [ "country", "political" ]
34
- },
35
- {
36
- "long_name" : "10999",
37
- "short_name" : "10999",
38
- "types" : [ "postal_code" ]
39
- }
40
- ],
41
- "adr_address" : "\u003cspan class=\"street-address\"\u003eOranienstraße 25\u003c/span\u003e, \u003cspan class=\"postal-code\"\u003e10999\u003c/span\u003e \u003cspan class=\"locality\"\u003eBerlin\u003c/span\u003e, \u003cspan class=\"country-name\"\u003eGermany\u003c/span\u003e",
42
- "formatted_address" : "Oranienstraße 25, 10999 Berlin, Germany",
43
- "geometry" : {
44
- "location" : {
45
- "lat" : 52.5010652,
46
- "lng" : 13.4206563
47
- }
48
- },
49
- "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png",
50
- "id" : "b49e917abd41c247425645a6ac3e5a6756ad80f8",
51
- "name" : "Oranienstraße 25",
52
- "place_id" : "ChIJQ8-HeTROqEcRGdCTErYy5D0",
53
- "reference" : "CpQBjAAAAKrbnaAglhQLI6KPs3EbRp1lVh5UkB4xLEyzOmvvGmtpmwD2EAnlokKcx1VU5PvvB7moRGw6lHTlMTScpGL3GTCC_WM2pzDxgeaAtoB-SR4YQ7PRhHkT2eqxACbaP_70Z9Wyb2J31tG66xBrYASAuBzXgEXYaFpo8dhRBY4xMTfexvMziw6rHs01SxLhCFh-uBIQBQcGVz70_HtaG_g6ZZ5omhoUdIDDSVApRiVoIh61NiCzStYa-x0",
54
- "scope" : "GOOGLE",
55
- "types" : [ "street_address" ],
56
- "url" : "https://maps.google.com/maps/place?q=Oranienstra%C3%9Fe+25,+10999+Berlin,+Germany&ftid=0x47a84e347987cf43:0x3de432b61293d019",
57
- "vicinity" : "Friedrichshain-Kreuzberg"
58
- },
59
- "status" : "OK"
60
- }
@@ -1,66 +0,0 @@
1
- {
2
- "html_attributions" : [],
3
- "result" : {
4
- "address_components" : [
5
- {
6
- "long_name" : "6",
7
- "short_name" : "6",
8
- "types" : [ "street_number" ]
9
- },
10
- {
11
- "long_name" : "Graniczna",
12
- "short_name" : "Graniczna",
13
- "types" : [ "route" ]
14
- },
15
- {
16
- "long_name" : "Gdynia",
17
- "short_name" : "Gdynia",
18
- "types" : [ "locality", "political" ]
19
- },
20
- {
21
- "long_name" : "Gdynia",
22
- "short_name" : "Gdynia",
23
- "types" : [ "administrative_area_level_3", "political" ]
24
- },
25
- {
26
- "long_name" : "Gdynia",
27
- "short_name" : "Gdynia",
28
- "types" : [ "administrative_area_level_2", "political" ]
29
- },
30
- {
31
- "long_name" : "Pomeranian Voivodeship",
32
- "short_name" : "Pomeranian Voivodeship",
33
- "types" : [ "administrative_area_level_1", "political" ]
34
- },
35
- {
36
- "long_name" : "Poland",
37
- "short_name" : "PL",
38
- "types" : [ "country", "political" ]
39
- },
40
- {
41
- "long_name" : "81-626",
42
- "short_name" : "81-626",
43
- "types" : [ "postal_code" ]
44
- }
45
- ],
46
- "adr_address" : "\u003cspan class=\"street-address\"\u003eGraniczna 6\u003c/span\u003e, \u003cspan class=\"postal-code\"\u003e81-626\u003c/span\u003e \u003cspan class=\"locality\"\u003eGdynia\u003c/span\u003e, \u003cspan class=\"country-name\"\u003ePoland\u003c/span\u003e",
47
- "formatted_address" : "Graniczna 6, Gdynia, Poland",
48
- "formatted_phone_number" : "795 085 050",
49
- "geometry" : {
50
- "location" : {
51
- "lat" : 54.493608,
52
- "lng" : 18.508983
53
- }
54
- },
55
- "id" : "aed47c412bce35bb385c86edef64f8f7860b1cf8",
56
- "international_phone_number" : "+48 795 085 050",
57
- "name" : "Taxi Gdynia",
58
- "place_id" : "ChIJgT2H0tig_UYRD9iM2NSOo4Y",
59
- "reference" : "CnRlAAAA6bzgakKCXzwjtLBSMLvj0fvv3OSwGp2WsA54VwQELEupFzqtFuUmxMyMSNYt745EukJR0Ui6Ih9WX3AdL--HXjQprE8xHSb_6qQh2eauKWFIoHzIvbMrkjDIcUPxPDMdJc2XkwpOr_EUimZplCy-gBIQb_UHtRVaswAMjdHHtDqzURoU3tGbILe-zhN3oISBAvc3AyoyznE",
60
- "scope" : "GOOGLE",
61
- "url" : "https://plus.google.com/100174651414421384172/about?hl=en-US",
62
- "utc_offset" : 120,
63
- "vicinity" : "Graniczna 6, Gdynia"
64
- },
65
- "status" : "OK"
66
- }
@@ -1,72 +0,0 @@
1
- {
2
- "Response": {
3
- "MetaInfo": {
4
- "Timestamp": "2013-02-08T16:26:39.382+0000"
5
- },
6
- "View": [
7
- {
8
- "_type": "SearchResultsViewType",
9
- "ViewId": 0,
10
- "Result": [
11
- {
12
- "Relevance": 1.0,
13
- "MatchLevel": "houseNumber",
14
- "MatchQuality": {
15
- "State": 1.0,
16
- "City": 1.0,
17
- "Street": [
18
- 1.0
19
- ],
20
- "HouseNumber": 1.0
21
- },
22
- "MatchType": "pointAddress",
23
- "Location": {
24
- "LocationId": "NT_ArsGdYbpo6dqjPQel9gTID_4",
25
- "LocationType": "point",
26
- "DisplayPosition": {
27
- "Latitude": 40.7504692,
28
- "Longitude": -73.9933777
29
- },
30
- "NavigationPosition": [
31
- {
32
- "Latitude": 40.7500305,
33
- "Longitude": -73.9942398
34
- }
35
- ],
36
- "MapView": {
37
- "TopLeft": {
38
- "Latitude": 40.7515934,
39
- "Longitude": -73.9948616
40
- },
41
- "BottomRight": {
42
- "Latitude": 40.7493451,
43
- "Longitude": -73.9918938
44
- }
45
- },
46
- "Address": {
47
- "Label": "4 Penn Plz, New York, NY 10001, United States",
48
- "Country": "USA",
49
- "State": "NY",
50
- "County": "New York",
51
- "City": "New York",
52
- "Street": "Penn Plz",
53
- "HouseNumber": "4",
54
- "PostalCode": "10001",
55
- "AdditionalData": [
56
- {
57
- "value": "United States",
58
- "key": "CountryName"
59
- },
60
- {
61
- "value": "New York",
62
- "key": "StateName"
63
- }
64
- ]
65
- }
66
- }
67
- }
68
- ]
69
- }
70
- ]
71
- }
72
- }
@@ -1,8 +0,0 @@
1
- {
2
- "Response": {
3
- "MetaInfo": {
4
- "Timestamp": "2013-02-08T16:41:16.723+0000"
5
- },
6
- "View": []
7
- }
8
- }
@@ -1,16 +0,0 @@
1
- {
2
- "results": [
3
- {
4
- "locations": []
5
- }
6
- ],
7
- "info": {
8
- "copyright": {
9
- "text": "© 2012 MapQuest, Inc.",
10
- "imageUrl": "http://api.mqcdn.com/res/mqlogo.gif",
11
- "imageAltText": "© 2012 MapQuest, Inc."
12
- },
13
- "statuscode": 500,
14
- "messages": ["Error processing request: ..."]
15
- }
16
- }
@@ -1,16 +0,0 @@
1
- {
2
- "results": [
3
- {
4
- "locations": []
5
- }
6
- ],
7
- "info": {
8
- "copyright": {
9
- "text": "© 2012 MapQuest, Inc.",
10
- "imageUrl": "http://api.mqcdn.com/res/mqlogo.gif",
11
- "imageAltText": "© 2012 MapQuest, Inc."
12
- },
13
- "statuscode": 403,
14
- "messages": ["..."]
15
- }
16
- }
@@ -1,16 +0,0 @@
1
- {
2
- "results": [
3
- {
4
- "locations": []
5
- }
6
- ],
7
- "info": {
8
- "copyright": {
9
- "text": "© 2012 MapQuest, Inc.",
10
- "imageUrl": "http://api.mqcdn.com/res/mqlogo.gif",
11
- "imageAltText": "© 2012 MapQuest, Inc."
12
- },
13
- "statuscode": 400,
14
- "messages": ["Illegal argument from request: ..."]
15
- }
16
- }
@@ -1,52 +0,0 @@
1
- {
2
- "results": [
3
- {
4
- "locations": [
5
- {
6
- "latLng": {
7
- "lng": -73.994637,
8
- "lat": 40.720409
9
- },
10
- "adminArea4": "New York County",
11
- "adminArea5Type": "City",
12
- "adminArea4Type": "County",
13
- "adminArea5": "New York",
14
- "street": "46 West 31st Street",
15
- "adminArea1": "US",
16
- "adminArea3": "NY",
17
- "type": "s",
18
- "displayLatLng": {
19
- "lng": -73.994637,
20
- "lat": 40.720409
21
- },
22
- "linkId": 0,
23
- "postalCode": "10001",
24
- "sideOfStreet": "N",
25
- "dragPoint": false,
26
- "adminArea1Type": "Country",
27
- "geocodeQuality": "CITY",
28
- "geocodeQualityCode": "A5XAX",
29
- "mapUrl": "http://www.mapquestapi.com/staticmap/v3/getmap?type=map&size=225,160&pois=purple-1,40.720409,-73.994637,0,0|&center=40.720409,-73.994637&zoom=9&key=Gmjtd|luua2hu2nd,7x=o5-lz8lg&rand=604519389",
30
- "adminArea3Type": "State"
31
- }
32
- ],
33
- "providedLocation": {
34
- "location": "Madison Square Garden, New York, NY"
35
- }
36
- }
37
- ],
38
- "options": {
39
- "ignoreLatLngInput": false,
40
- "maxResults": -1,
41
- "thumbMaps": true
42
- },
43
- "info": {
44
- "copyright": {
45
- "text": "© 2012 MapQuest, Inc.",
46
- "imageUrl": "http://api.mqcdn.com/res/mqlogo.gif",
47
- "imageAltText": "© 2012 MapQuest, Inc."
48
- },
49
- "statuscode": 0,
50
- "messages": []
51
- }
52
- }
@@ -1,16 +0,0 @@
1
- {
2
- "results": [
3
- {
4
- "locations": []
5
- }
6
- ],
7
- "info": {
8
- "copyright": {
9
- "text": "© 2012 MapQuest, Inc.",
10
- "imageUrl": "http://api.mqcdn.com/res/mqlogo.gif",
11
- "imageAltText": "© 2012 MapQuest, Inc."
12
- },
13
- "statuscode": 0,
14
- "messages": []
15
- }
16
- }
@@ -1 +0,0 @@
1
- US
@@ -1 +0,0 @@
1
- US,NY,Jamaica,40.6915,-73.8057
@@ -1 +0,0 @@
1
- US,NY,Jamaica,,40.6915,-73.8057,501,718,"Road Runner","Road Runner"
@@ -1 +0,0 @@
1
- US,"United States",NY,"New York",Jamaica,40.6915,-73.8057,501,718,America/New_York,NA,,"Road Runner","Road Runner",rr.com,"AS11351 Road Runner HoldCo LLC",Cable/DSL,residential,779,99,37,76,35
@@ -1 +0,0 @@
1
- US,TX,Plano,75093,33.034698,-96.813400,623,972,"Layered Technologies , US","Layered Technologies , US",
@@ -1 +0,0 @@
1
- ,,,,,,,,,,INVALID_LICENSE_KEY
@@ -1 +0,0 @@
1
- ,,,,,,,,,,IP_NOT_FOUND