geocoder 1.1.4 → 1.1.8

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.
Files changed (110) hide show
  1. data/.travis.yml +4 -0
  2. data/{CHANGELOG.rdoc → CHANGELOG.md} +120 -39
  3. data/README.md +200 -54
  4. data/examples/autoexpire_cache_dalli.rb +62 -0
  5. data/examples/{autoexpire_cache.rb → autoexpire_cache_redis.rb} +4 -6
  6. data/lib/generators/geocoder/config/templates/initializer.rb +19 -23
  7. data/lib/geocoder/cache.rb +6 -1
  8. data/lib/geocoder/calculations.rb +45 -13
  9. data/lib/geocoder/cli.rb +10 -11
  10. data/lib/geocoder/configuration.rb +67 -43
  11. data/lib/geocoder/configuration_hash.rb +11 -0
  12. data/lib/geocoder/exceptions.rb +3 -0
  13. data/lib/geocoder/lookup.rb +3 -1
  14. data/lib/geocoder/lookups/base.rb +89 -27
  15. data/lib/geocoder/lookups/bing.rb +21 -11
  16. data/lib/geocoder/lookups/esri.rb +48 -0
  17. data/lib/geocoder/lookups/freegeoip.rb +8 -4
  18. data/lib/geocoder/lookups/geocoder_ca.rb +11 -7
  19. data/lib/geocoder/lookups/google.rb +18 -9
  20. data/lib/geocoder/lookups/google_premier.rb +16 -8
  21. data/lib/geocoder/lookups/mapquest.rb +33 -5
  22. data/lib/geocoder/lookups/maxmind.rb +88 -0
  23. data/lib/geocoder/lookups/nominatim.rb +13 -8
  24. data/lib/geocoder/lookups/ovi.rb +52 -0
  25. data/lib/geocoder/lookups/test.rb +10 -0
  26. data/lib/geocoder/lookups/yahoo.rb +51 -38
  27. data/lib/geocoder/lookups/yandex.rb +17 -9
  28. data/lib/geocoder/models/mongoid.rb +1 -1
  29. data/lib/geocoder/query.rb +20 -5
  30. data/lib/geocoder/request.rb +7 -1
  31. data/lib/geocoder/results/base.rb +8 -2
  32. data/lib/geocoder/results/esri.rb +51 -0
  33. data/lib/geocoder/results/google.rb +34 -0
  34. data/lib/geocoder/results/mapquest.rb +46 -2
  35. data/lib/geocoder/results/maxmind.rb +135 -0
  36. data/lib/geocoder/results/nominatim.rb +0 -10
  37. data/lib/geocoder/results/ovi.rb +62 -0
  38. data/lib/geocoder/results/test.rb +2 -1
  39. data/lib/geocoder/results/yahoo.rb +9 -2
  40. data/lib/geocoder/results/yandex.rb +12 -2
  41. data/lib/geocoder/sql.rb +6 -4
  42. data/lib/geocoder/stores/active_record.rb +57 -30
  43. data/lib/geocoder/stores/base.rb +3 -2
  44. data/lib/geocoder/stores/mongo_base.rb +2 -1
  45. data/lib/geocoder/version.rb +1 -1
  46. data/lib/geocoder.rb +2 -4
  47. data/lib/hash_recursive_merge.rb +74 -0
  48. data/lib/oauth_util.rb +112 -0
  49. data/test/cache_test.rb +19 -0
  50. data/test/calculations_test.rb +10 -4
  51. data/test/configuration_test.rb +26 -51
  52. data/test/error_handling_test.rb +8 -4
  53. data/test/fixtures/bing_invalid_key +1 -0
  54. data/test/fixtures/esri_madison_square_garden +59 -0
  55. data/test/fixtures/esri_no_results +8 -0
  56. data/test/fixtures/esri_reverse +21 -0
  57. data/test/fixtures/mapquest_madison_square_garden +52 -0
  58. data/test/fixtures/mapquest_no_results +7 -0
  59. data/test/fixtures/maxmind_24_24_24_21 +1 -0
  60. data/test/fixtures/maxmind_24_24_24_22 +1 -0
  61. data/test/fixtures/maxmind_24_24_24_23 +1 -0
  62. data/test/fixtures/maxmind_24_24_24_24 +1 -0
  63. data/test/fixtures/maxmind_74_200_247_59 +1 -0
  64. data/test/fixtures/maxmind_invalid_key +1 -0
  65. data/test/fixtures/maxmind_no_results +1 -0
  66. data/test/fixtures/ovi_madison_square_garden +72 -0
  67. data/test/fixtures/ovi_no_results +8 -0
  68. data/test/fixtures/yahoo_error +1 -0
  69. data/test/fixtures/yahoo_invalid_key +2 -0
  70. data/test/fixtures/yahoo_madison_square_garden +52 -0
  71. data/test/fixtures/yahoo_no_results +10 -0
  72. data/test/fixtures/yahoo_over_limit +2 -0
  73. data/test/fixtures/yandex_no_city_and_town +112 -0
  74. data/test/https_test.rb +3 -3
  75. data/test/integration/smoke_test.rb +2 -2
  76. data/test/lookup_test.rb +84 -11
  77. data/test/near_test.rb +43 -0
  78. data/test/oauth_util_test.rb +30 -0
  79. data/test/proxy_test.rb +2 -2
  80. data/test/query_test.rb +13 -0
  81. data/test/request_test.rb +29 -0
  82. data/test/result_test.rb +12 -2
  83. data/test/services_test.rb +208 -57
  84. data/test/test_helper.rb +66 -100
  85. data/test/test_mode_test.rb +35 -26
  86. metadata +58 -35
  87. data/test/fixtures/mapquest_madison_square_garden.json +0 -27
  88. data/test/fixtures/mapquest_no_results.json +0 -1
  89. data/test/fixtures/yahoo_madison_square_garden.json +0 -52
  90. data/test/fixtures/yahoo_no_results.json +0 -10
  91. data/test/fixtures/yahoo_v1_madison_square_garden.json +0 -46
  92. data/test/fixtures/yahoo_v1_no_results.json +0 -10
  93. /data/test/fixtures/{bing_madison_square_garden.json → bing_madison_square_garden} +0 -0
  94. /data/test/fixtures/{bing_no_results.json → bing_no_results} +0 -0
  95. /data/test/fixtures/{bing_reverse.json → bing_reverse} +0 -0
  96. /data/test/fixtures/{freegeoip_74_200_247_59.json → freegeoip_74_200_247_59} +0 -0
  97. /data/test/fixtures/{freegeoip_no_results.json → freegeoip_no_results} +0 -0
  98. /data/test/fixtures/{geocoder_ca_madison_square_garden.json → geocoder_ca_madison_square_garden} +0 -0
  99. /data/test/fixtures/{geocoder_ca_no_results.json → geocoder_ca_no_results} +0 -0
  100. /data/test/fixtures/{geocoder_ca_reverse.json → geocoder_ca_reverse} +0 -0
  101. /data/test/fixtures/{google_garbage.json → google_garbage} +0 -0
  102. /data/test/fixtures/{google_madison_square_garden.json → google_madison_square_garden} +0 -0
  103. /data/test/fixtures/{google_no_city_data.json → google_no_city_data} +0 -0
  104. /data/test/fixtures/{google_no_locality.json → google_no_locality} +0 -0
  105. /data/test/fixtures/{google_no_results.json → google_no_results} +0 -0
  106. /data/test/fixtures/{nominatim_madison_square_garden.json → nominatim_madison_square_garden} +0 -0
  107. /data/test/fixtures/{nominatim_no_results.json → nominatim_no_results} +0 -0
  108. /data/test/fixtures/{yandex_invalid_key.json → yandex_invalid_key} +0 -0
  109. /data/test/fixtures/{yandex_kremlin.json → yandex_kremlin} +0 -0
  110. /data/test/fixtures/{yandex_no_results.json → yandex_no_results} +0 -0
@@ -3,18 +3,49 @@ require 'test_helper'
3
3
  class TestModeTest < Test::Unit::TestCase
4
4
 
5
5
  def setup
6
- @_original_lookup = Geocoder::Configuration.lookup
7
- Geocoder::Configuration.lookup = :test
6
+ @_original_lookup = Geocoder.config.lookup
7
+ Geocoder.configure(:lookup => :test)
8
8
  end
9
9
 
10
10
  def teardown
11
11
  Geocoder::Lookup::Test.reset
12
- Geocoder::Configuration.lookup = @_original_lookup
12
+ Geocoder.configure(:lookup => @_original_lookup)
13
13
  end
14
14
 
15
15
  def test_search_with_known_stub
16
+ Geocoder::Lookup::Test.add_stub("New York, NY", [mock_attributes])
17
+
18
+ results = Geocoder.search("New York, NY")
19
+ result = results.first
20
+
21
+ assert_equal 1, results.size
22
+ mock_attributes.keys.each do |attr|
23
+ assert_equal mock_attributes[attr], result.send(attr)
24
+ end
25
+ end
26
+
27
+ def test_search_with_unknown_stub_without_default
28
+ assert_raise ArgumentError do
29
+ Geocoder.search("New York, NY")
30
+ end
31
+ end
32
+
33
+ def test_search_with_unknown_stub_with_default
34
+ Geocoder::Lookup::Test.set_default_stub([mock_attributes])
35
+
36
+ results = Geocoder.search("Atlantis, OC")
37
+ result = results.first
38
+
39
+ assert_equal 1, results.size
40
+ mock_attributes.keys.each do |attr|
41
+ assert_equal mock_attributes[attr], result.send(attr)
42
+ end
43
+ end
44
+
45
+ private
46
+ def mock_attributes
16
47
  coordinates = [40.7143528, -74.0059731]
17
- attributes = {
48
+ @mock_attributes ||= {
18
49
  'coordinates' => coordinates,
19
50
  'latitude' => coordinates[0],
20
51
  'longitude' => coordinates[1],
@@ -24,27 +55,5 @@ class TestModeTest < Test::Unit::TestCase
24
55
  'country' => 'United States',
25
56
  'country_code' => 'US',
26
57
  }
27
-
28
- Geocoder::Lookup::Test.add_stub("New York, NY", [attributes])
29
-
30
- results = Geocoder.search("New York, NY")
31
- assert_equal 1, results.size
32
-
33
- result = results.first
34
- assert_equal coordinates, result.coordinates
35
- assert_equal attributes['latitude'], result.latitude
36
- assert_equal attributes['longitude'], result.longitude
37
- assert_equal attributes['address'], result.address
38
- assert_equal attributes['state'], result.state
39
- assert_equal attributes['state_code'], result.state_code
40
- assert_equal attributes['country'], result.country
41
- assert_equal attributes['country_code'], result.country_code
42
- end
43
-
44
- def test_search_with_unknown_stub
45
- assert_raise ArgumentError do
46
- Geocoder.search("New York, NY")
47
- end
48
58
  end
49
-
50
59
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geocoder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-02 00:00:00.000000000 Z
12
+ date: 2013-04-22 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Provides object geocoding (by street or IP address), reverse geocoding
15
15
  (coordinates to street address), distance queries for ActiveRecord and Mongoid,
@@ -24,12 +24,13 @@ extra_rdoc_files: []
24
24
  files:
25
25
  - .gitignore
26
26
  - .travis.yml
27
- - CHANGELOG.rdoc
27
+ - CHANGELOG.md
28
28
  - LICENSE
29
29
  - README.md
30
30
  - Rakefile
31
31
  - bin/geocode
32
- - examples/autoexpire_cache.rb
32
+ - examples/autoexpire_cache_dalli.rb
33
+ - examples/autoexpire_cache_redis.rb
33
34
  - gemfiles/Gemfile.mongoid-2.4.x
34
35
  - lib/generators/geocoder/config/config_generator.rb
35
36
  - lib/generators/geocoder/config/templates/initializer.rb
@@ -38,16 +39,20 @@ files:
38
39
  - lib/geocoder/calculations.rb
39
40
  - lib/geocoder/cli.rb
40
41
  - lib/geocoder/configuration.rb
42
+ - lib/geocoder/configuration_hash.rb
41
43
  - lib/geocoder/exceptions.rb
42
44
  - lib/geocoder/lookup.rb
43
45
  - lib/geocoder/lookups/base.rb
44
46
  - lib/geocoder/lookups/bing.rb
47
+ - lib/geocoder/lookups/esri.rb
45
48
  - lib/geocoder/lookups/freegeoip.rb
46
49
  - lib/geocoder/lookups/geocoder_ca.rb
47
50
  - lib/geocoder/lookups/google.rb
48
51
  - lib/geocoder/lookups/google_premier.rb
49
52
  - lib/geocoder/lookups/mapquest.rb
53
+ - lib/geocoder/lookups/maxmind.rb
50
54
  - lib/geocoder/lookups/nominatim.rb
55
+ - lib/geocoder/lookups/ovi.rb
51
56
  - lib/geocoder/lookups/test.rb
52
57
  - lib/geocoder/lookups/yahoo.rb
53
58
  - lib/geocoder/lookups/yandex.rb
@@ -61,12 +66,15 @@ files:
61
66
  - lib/geocoder/request.rb
62
67
  - lib/geocoder/results/base.rb
63
68
  - lib/geocoder/results/bing.rb
69
+ - lib/geocoder/results/esri.rb
64
70
  - lib/geocoder/results/freegeoip.rb
65
71
  - lib/geocoder/results/geocoder_ca.rb
66
72
  - lib/geocoder/results/google.rb
67
73
  - lib/geocoder/results/google_premier.rb
68
74
  - lib/geocoder/results/mapquest.rb
75
+ - lib/geocoder/results/maxmind.rb
69
76
  - lib/geocoder/results/nominatim.rb
77
+ - lib/geocoder/results/ovi.rb
70
78
  - lib/geocoder/results/test.rb
71
79
  - lib/geocoder/results/yahoo.rb
72
80
  - lib/geocoder/results/yandex.rb
@@ -77,36 +85,54 @@ files:
77
85
  - lib/geocoder/stores/mongo_mapper.rb
78
86
  - lib/geocoder/stores/mongoid.rb
79
87
  - lib/geocoder/version.rb
88
+ - lib/hash_recursive_merge.rb
89
+ - lib/oauth_util.rb
80
90
  - lib/tasks/geocoder.rake
81
91
  - test/active_record_test.rb
92
+ - test/cache_test.rb
82
93
  - test/calculations_test.rb
83
94
  - test/configuration_test.rb
84
95
  - test/custom_block_test.rb
85
96
  - test/error_handling_test.rb
86
- - test/fixtures/bing_madison_square_garden.json
87
- - test/fixtures/bing_no_results.json
88
- - test/fixtures/bing_reverse.json
89
- - test/fixtures/freegeoip_74_200_247_59.json
90
- - test/fixtures/freegeoip_no_results.json
91
- - test/fixtures/geocoder_ca_madison_square_garden.json
92
- - test/fixtures/geocoder_ca_no_results.json
93
- - test/fixtures/geocoder_ca_reverse.json
94
- - test/fixtures/google_garbage.json
95
- - test/fixtures/google_madison_square_garden.json
96
- - test/fixtures/google_no_city_data.json
97
- - test/fixtures/google_no_locality.json
98
- - test/fixtures/google_no_results.json
99
- - test/fixtures/mapquest_madison_square_garden.json
100
- - test/fixtures/mapquest_no_results.json
101
- - test/fixtures/nominatim_madison_square_garden.json
102
- - test/fixtures/nominatim_no_results.json
103
- - test/fixtures/yahoo_madison_square_garden.json
104
- - test/fixtures/yahoo_no_results.json
105
- - test/fixtures/yahoo_v1_madison_square_garden.json
106
- - test/fixtures/yahoo_v1_no_results.json
107
- - test/fixtures/yandex_invalid_key.json
108
- - test/fixtures/yandex_kremlin.json
109
- - test/fixtures/yandex_no_results.json
97
+ - test/fixtures/bing_invalid_key
98
+ - test/fixtures/bing_madison_square_garden
99
+ - test/fixtures/bing_no_results
100
+ - test/fixtures/bing_reverse
101
+ - test/fixtures/esri_madison_square_garden
102
+ - test/fixtures/esri_no_results
103
+ - test/fixtures/esri_reverse
104
+ - test/fixtures/freegeoip_74_200_247_59
105
+ - test/fixtures/freegeoip_no_results
106
+ - test/fixtures/geocoder_ca_madison_square_garden
107
+ - test/fixtures/geocoder_ca_no_results
108
+ - test/fixtures/geocoder_ca_reverse
109
+ - test/fixtures/google_garbage
110
+ - test/fixtures/google_madison_square_garden
111
+ - test/fixtures/google_no_city_data
112
+ - test/fixtures/google_no_locality
113
+ - test/fixtures/google_no_results
114
+ - test/fixtures/mapquest_madison_square_garden
115
+ - test/fixtures/mapquest_no_results
116
+ - test/fixtures/maxmind_24_24_24_21
117
+ - test/fixtures/maxmind_24_24_24_22
118
+ - test/fixtures/maxmind_24_24_24_23
119
+ - test/fixtures/maxmind_24_24_24_24
120
+ - test/fixtures/maxmind_74_200_247_59
121
+ - test/fixtures/maxmind_invalid_key
122
+ - test/fixtures/maxmind_no_results
123
+ - test/fixtures/nominatim_madison_square_garden
124
+ - test/fixtures/nominatim_no_results
125
+ - test/fixtures/ovi_madison_square_garden
126
+ - test/fixtures/ovi_no_results
127
+ - test/fixtures/yahoo_error
128
+ - test/fixtures/yahoo_invalid_key
129
+ - test/fixtures/yahoo_madison_square_garden
130
+ - test/fixtures/yahoo_no_results
131
+ - test/fixtures/yahoo_over_limit
132
+ - test/fixtures/yandex_invalid_key
133
+ - test/fixtures/yandex_kremlin
134
+ - test/fixtures/yandex_no_city_and_town
135
+ - test/fixtures/yandex_no_results
110
136
  - test/geocoder_test.rb
111
137
  - test/https_test.rb
112
138
  - test/integration/smoke_test.rb
@@ -114,8 +140,11 @@ files:
114
140
  - test/method_aliases_test.rb
115
141
  - test/mongoid_test.rb
116
142
  - test/mongoid_test_helper.rb
143
+ - test/near_test.rb
144
+ - test/oauth_util_test.rb
117
145
  - test/proxy_test.rb
118
146
  - test/query_test.rb
147
+ - test/request_test.rb
119
148
  - test/result_test.rb
120
149
  - test/services_test.rb
121
150
  - test/test_helper.rb
@@ -132,21 +161,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
132
161
  - - ! '>='
133
162
  - !ruby/object:Gem::Version
134
163
  version: '0'
135
- segments:
136
- - 0
137
- hash: -301313299
138
164
  required_rubygems_version: !ruby/object:Gem::Requirement
139
165
  none: false
140
166
  requirements:
141
167
  - - ! '>='
142
168
  - !ruby/object:Gem::Version
143
169
  version: '0'
144
- segments:
145
- - 0
146
- hash: -301313299
147
170
  requirements: []
148
171
  rubyforge_project:
149
- rubygems_version: 1.8.24
172
+ rubygems_version: 1.8.23
150
173
  signing_key:
151
174
  specification_version: 3
152
175
  summary: Complete geocoding solution for Ruby.
@@ -1,27 +0,0 @@
1
- [
2
- {
3
- "place_id":"2177656031",
4
- "licence":"Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0.",
5
- "osm_type":"way",
6
- "osm_id":"138141251",
7
- "boundingbox":["40.7498588562012","40.751163482666","-73.9944381713867","-73.9925842285156"],
8
- "polygonpoints":[["-73.9944367","40.7505417"],["-73.9940278","40.7511034"],["-73.9939442","40.7510658"],["-73.9938776","40.7510941"],["-73.9937734","40.7511298"],["-73.9936562","40.7511561"],["-73.993619","40.7511624"],["-73.9935537","40.7510862"],["-73.9935336","40.7510885"],["-73.9934248","40.7510898"],["-73.9933248","40.7510806"],["-73.9932268","40.7510614"],["-73.9931334","40.7510327"],["-73.9930378","40.7509909"],["-73.9929554","40.7509421"],["-73.9928865","40.7508886"],["-73.992821","40.7508216"],["-73.9927742","40.7507572"],["-73.9926591","40.7507581"],["-73.9926036","40.750603"],["-73.992704","40.7505536"],["-73.9927029","40.7505065"],["-73.9925855","40.7505009"],["-73.9925989","40.7503952"],["-73.9926442","40.7504003"],["-73.9926722","40.7503155"],["-73.9927117","40.7502402"],["-73.9927617","40.7501715"],["-73.992824","40.7501067"],["-73.9928991","40.7500484"],["-73.992869","40.7500159"],["-73.9929742","40.749956"],["-73.9930375","40.7500318"],["-73.9931229","40.7499938"],["-73.9931273","40.7499005"],["-73.9933201","40.7498624"],["-73.9933853","40.7499355"],["-73.993402","40.7499336"],["-73.9935038","40.749932"],["-73.9936041","40.7499407"],["-73.9936962","40.7499579"],["-73.9937875","40.7499846"],["-73.9938783","40.7500221"],["-73.9939639","40.7500701"],["-73.9940328","40.7501206"],["-73.9940991","40.7501842"],["-73.9941506","40.7502504"],["-73.9941562","40.7502603"],["-73.9942791","40.7502628"],["-73.9942969","40.7503035"],["-73.9943271","40.7503844"],["-73.9943435","40.7504689"],["-73.9943454","40.7505049"],["-73.9944367","40.7505417"]],
9
- "lat":"40.7505206016777",
10
- "lon":"-73.993490694181",
11
- "display_name":"Madison Square Garden, 46, West 31st Street, Chelsea, New York City, New York, United States of America",
12
- "class":"leisure",
13
- "type":"stadium",
14
- "address":{
15
- "stadium":"Madison Square Garden",
16
- "house_number":"46",
17
- "road":"West 31st Street",
18
- "suburb":"Chelsea",
19
- "city":"New York City",
20
- "county":"New York",
21
- "state":"New York",
22
- "postcode":"10119",
23
- "country":"United States of America",
24
- "country_code":"us"
25
- }
26
- }
27
- ]
@@ -1 +0,0 @@
1
- []
@@ -1,52 +0,0 @@
1
- {
2
- "@lang": "en-US",
3
- "ResultSet": {
4
- "@version": "2.0",
5
- "@lang": "en-US",
6
- "Error": "0",
7
- "ErrorMessage": "No error",
8
- "Locale": "en-US",
9
- "Found": "1",
10
- "Quality": "90",
11
- "Result": {
12
- "quality": "90",
13
- "latitude": "40.750381",
14
- "longitude": "-73.993988",
15
- "offsetlat": "40.750381",
16
- "offsetlon": "-73.993988",
17
- "radius": "100",
18
- "boundingbox": {
19
- "north": "40.750832",
20
- "south": "40.749931",
21
- "east": "-73.993393",
22
- "west": "-73.994591"
23
- },
24
- "name": "Madison Square Garden",
25
- "line1": "Madison Square Garden",
26
- "line2": "New York, NY 10001",
27
- "line3": "",
28
- "line4": "United States",
29
- "cross": "",
30
- "house": "",
31
- "street": "",
32
- "xstreet": "",
33
- "unittype": "",
34
- "unit": "",
35
- "postal": "10001",
36
- "neighborhood": "Garment District|Midtown|Midtown West|Manhattan",
37
- "city": "New York",
38
- "county": "New York County",
39
- "state": "New York",
40
- "country": "United States",
41
- "countrycode": "US",
42
- "statecode": "NY",
43
- "countycode": "",
44
- "timezone": "America/New_York",
45
- "areacode": "212",
46
- "uzip": "10001",
47
- "hash": "",
48
- "woeid": "23617041",
49
- "woetype": "20"
50
- }
51
- }
52
- }
@@ -1,10 +0,0 @@
1
- {
2
- "ResultSet":{
3
- "version":"1.0",
4
- "Error":0,
5
- "ErrorMessage":"No error",
6
- "Locale":"us_US",
7
- "Quality":10,
8
- "Found":0
9
- }
10
- }
@@ -1,46 +0,0 @@
1
- {
2
- "ResultSet":{
3
- "version":"1.0",
4
- "Error":0,
5
- "ErrorMessage":"No error",
6
- "Locale":"us_US",
7
- "Quality":90,
8
- "Found":1,
9
- "Results":[{
10
- "quality":90,
11
- "latitude":"40.750381",
12
- "longitude":"-73.993988",
13
- "offsetlat":"40.750381",
14
- "offsetlon":"-73.993988",
15
- "radius":100,
16
- "name":"Madison Square Garden",
17
- "line1":"Madison Square Garden",
18
- "line2":"New York, NY 10001",
19
- "line3":"",
20
- "line4":"United States",
21
- "house":"",
22
- "street":"",
23
- "xstreet":"",
24
- "unittype":"",
25
- "unit":"",
26
- "postal":"10001",
27
- "neighborhood":"",
28
- "city":"New York",
29
- "county":"New York County",
30
- "state":"New York",
31
- "country":"United States",
32
- "countrycode":"US",
33
- "statecode":"NY",
34
- "countycode":"",
35
- "uzip":"10001",
36
- "hash":"",
37
- "woeid":23617041,
38
- "woetype":20,
39
- "cross":"",
40
- "timezone":"America/New_York",
41
- "neighborhood":"Garment District|Midtown|Midtown West|Manhattan",
42
- "areacode":"212",
43
- "boundingbox":{"north":"40.750832","south":"40.749931","east":"-73.993393","west":"-73.994591"}
44
- }]
45
- }
46
- }
@@ -1,10 +0,0 @@
1
- {
2
- "ResultSet":{
3
- "version":"1.0",
4
- "Error":0,
5
- "ErrorMessage":"No error",
6
- "Locale":"us_US",
7
- "Quality":10,
8
- "Found":0
9
- }
10
- }
File without changes