bw-geocoder 1.2.5
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.
- data/.gitignore +6 -0
- data/.travis.yml +31 -0
- data/CHANGELOG.md +377 -0
- data/LICENSE +20 -0
- data/README.md +1041 -0
- data/Rakefile +25 -0
- data/bin/geocode +5 -0
- data/examples/autoexpire_cache_dalli.rb +62 -0
- data/examples/autoexpire_cache_redis.rb +28 -0
- data/examples/cache_bypass.rb +48 -0
- data/gemfiles/Gemfile.mongoid-2.4.x +16 -0
- data/lib/generators/geocoder/config/config_generator.rb +14 -0
- data/lib/generators/geocoder/config/templates/initializer.rb +21 -0
- data/lib/generators/geocoder/maxmind/geolite_city_generator.rb +28 -0
- data/lib/generators/geocoder/maxmind/geolite_country_generator.rb +28 -0
- data/lib/generators/geocoder/maxmind/templates/migration/geolite_city.rb +30 -0
- data/lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb +17 -0
- data/lib/geocoder/cache.rb +90 -0
- data/lib/geocoder/calculations.rb +428 -0
- data/lib/geocoder/cli.rb +121 -0
- data/lib/geocoder/configuration.rb +124 -0
- data/lib/geocoder/configuration_hash.rb +11 -0
- data/lib/geocoder/exceptions.rb +21 -0
- data/lib/geocoder/ip_address.rb +21 -0
- data/lib/geocoder/lookup.rb +100 -0
- data/lib/geocoder/lookups/baidu.rb +55 -0
- data/lib/geocoder/lookups/baidu_ip.rb +54 -0
- data/lib/geocoder/lookups/base.rb +302 -0
- data/lib/geocoder/lookups/bing.rb +59 -0
- data/lib/geocoder/lookups/dstk.rb +20 -0
- data/lib/geocoder/lookups/esri.rb +48 -0
- data/lib/geocoder/lookups/freegeoip.rb +47 -0
- data/lib/geocoder/lookups/geocoder_ca.rb +54 -0
- data/lib/geocoder/lookups/geocoder_us.rb +39 -0
- data/lib/geocoder/lookups/geocodio.rb +42 -0
- data/lib/geocoder/lookups/google.rb +67 -0
- data/lib/geocoder/lookups/google_places_details.rb +50 -0
- data/lib/geocoder/lookups/google_premier.rb +47 -0
- data/lib/geocoder/lookups/here.rb +62 -0
- data/lib/geocoder/lookups/ip_address_labs.rb +43 -0
- data/lib/geocoder/lookups/mapquest.rb +60 -0
- data/lib/geocoder/lookups/maxmind.rb +90 -0
- data/lib/geocoder/lookups/maxmind_local.rb +58 -0
- data/lib/geocoder/lookups/nominatim.rb +52 -0
- data/lib/geocoder/lookups/okf.rb +43 -0
- data/lib/geocoder/lookups/opencagedata.rb +58 -0
- data/lib/geocoder/lookups/ovi.rb +62 -0
- data/lib/geocoder/lookups/pointpin.rb +68 -0
- data/lib/geocoder/lookups/smarty_streets.rb +45 -0
- data/lib/geocoder/lookups/telize.rb +40 -0
- data/lib/geocoder/lookups/test.rb +44 -0
- data/lib/geocoder/lookups/yahoo.rb +88 -0
- data/lib/geocoder/lookups/yandex.rb +54 -0
- data/lib/geocoder/models/active_record.rb +50 -0
- data/lib/geocoder/models/base.rb +39 -0
- data/lib/geocoder/models/mongo_base.rb +64 -0
- data/lib/geocoder/models/mongo_mapper.rb +26 -0
- data/lib/geocoder/models/mongoid.rb +32 -0
- data/lib/geocoder/query.rb +111 -0
- data/lib/geocoder/railtie.rb +26 -0
- data/lib/geocoder/request.rb +25 -0
- data/lib/geocoder/results/baidu.rb +79 -0
- data/lib/geocoder/results/baidu_ip.rb +62 -0
- data/lib/geocoder/results/base.rb +67 -0
- data/lib/geocoder/results/bing.rb +48 -0
- data/lib/geocoder/results/dstk.rb +6 -0
- data/lib/geocoder/results/esri.rb +51 -0
- data/lib/geocoder/results/freegeoip.rb +45 -0
- data/lib/geocoder/results/geocoder_ca.rb +60 -0
- data/lib/geocoder/results/geocoder_us.rb +39 -0
- data/lib/geocoder/results/geocodio.rb +66 -0
- data/lib/geocoder/results/google.rb +124 -0
- data/lib/geocoder/results/google_places_details.rb +35 -0
- data/lib/geocoder/results/google_premier.rb +6 -0
- data/lib/geocoder/results/here.rb +62 -0
- data/lib/geocoder/results/ip_address_labs.rb +78 -0
- data/lib/geocoder/results/mapquest.rb +51 -0
- data/lib/geocoder/results/maxmind.rb +135 -0
- data/lib/geocoder/results/maxmind_local.rb +49 -0
- data/lib/geocoder/results/nominatim.rb +94 -0
- data/lib/geocoder/results/okf.rb +106 -0
- data/lib/geocoder/results/opencagedata.rb +82 -0
- data/lib/geocoder/results/ovi.rb +62 -0
- data/lib/geocoder/results/pointpin.rb +44 -0
- data/lib/geocoder/results/smarty_streets.rb +106 -0
- data/lib/geocoder/results/telize.rb +45 -0
- data/lib/geocoder/results/test.rb +33 -0
- data/lib/geocoder/results/yahoo.rb +55 -0
- data/lib/geocoder/results/yandex.rb +84 -0
- data/lib/geocoder/sql.rb +107 -0
- data/lib/geocoder/stores/active_record.rb +278 -0
- data/lib/geocoder/stores/base.rb +127 -0
- data/lib/geocoder/stores/mongo_base.rb +89 -0
- data/lib/geocoder/stores/mongo_mapper.rb +13 -0
- data/lib/geocoder/stores/mongoid.rb +13 -0
- data/lib/geocoder/version.rb +3 -0
- data/lib/geocoder.rb +47 -0
- data/lib/hash_recursive_merge.rb +74 -0
- data/lib/maxmind_database.rb +109 -0
- data/lib/oauth_util.rb +112 -0
- data/lib/tasks/geocoder.rake +29 -0
- data/lib/tasks/maxmind.rake +73 -0
- data/test/fixtures/baidu_invalid_key +1 -0
- data/test/fixtures/baidu_ip_202_198_16_3 +19 -0
- data/test/fixtures/baidu_ip_invalid_key +1 -0
- data/test/fixtures/baidu_ip_no_results +1 -0
- data/test/fixtures/baidu_no_results +1 -0
- data/test/fixtures/baidu_reverse +1 -0
- data/test/fixtures/baidu_shanghai_pearl_tower +12 -0
- data/test/fixtures/bing_invalid_key +1 -0
- data/test/fixtures/bing_madison_square_garden +40 -0
- data/test/fixtures/bing_no_results +16 -0
- data/test/fixtures/bing_reverse +42 -0
- data/test/fixtures/cloudmade_invalid_key +1 -0
- data/test/fixtures/cloudmade_madison_square_garden +1 -0
- data/test/fixtures/cloudmade_no_results +1 -0
- data/test/fixtures/esri_madison_square_garden +59 -0
- data/test/fixtures/esri_no_results +8 -0
- data/test/fixtures/esri_reverse +21 -0
- data/test/fixtures/freegeoip_74_200_247_59 +12 -0
- data/test/fixtures/freegeoip_no_results +1 -0
- data/test/fixtures/geocoder_ca_madison_square_garden +1 -0
- data/test/fixtures/geocoder_ca_no_results +1 -0
- data/test/fixtures/geocoder_ca_reverse +34 -0
- data/test/fixtures/geocoder_us_madison_square_garden +1 -0
- data/test/fixtures/geocoder_us_no_results +1 -0
- data/test/fixtures/geocodio_1101_pennsylvania_ave +1 -0
- data/test/fixtures/geocodio_bad_api_key +3 -0
- data/test/fixtures/geocodio_invalid +4 -0
- data/test/fixtures/geocodio_no_results +1 -0
- data/test/fixtures/geocodio_over_query_limit +4 -0
- data/test/fixtures/google_garbage +456 -0
- data/test/fixtures/google_madison_square_garden +57 -0
- data/test/fixtures/google_no_city_data +44 -0
- data/test/fixtures/google_no_locality +51 -0
- data/test/fixtures/google_no_results +4 -0
- data/test/fixtures/google_over_limit +4 -0
- data/test/fixtures/google_places_details_invalid_request +4 -0
- data/test/fixtures/google_places_details_madison_square_garden +120 -0
- data/test/fixtures/google_places_details_no_results +4 -0
- data/test/fixtures/google_places_details_no_reviews +60 -0
- data/test/fixtures/google_places_details_no_types +66 -0
- data/test/fixtures/here_madison_square_garden +72 -0
- data/test/fixtures/here_no_results +8 -0
- data/test/fixtures/mapquest_error +16 -0
- data/test/fixtures/mapquest_invalid_api_key +16 -0
- data/test/fixtures/mapquest_invalid_request +16 -0
- data/test/fixtures/mapquest_madison_square_garden +52 -0
- data/test/fixtures/mapquest_no_results +16 -0
- data/test/fixtures/maxmind_24_24_24_21 +1 -0
- data/test/fixtures/maxmind_24_24_24_22 +1 -0
- data/test/fixtures/maxmind_24_24_24_23 +1 -0
- data/test/fixtures/maxmind_24_24_24_24 +1 -0
- data/test/fixtures/maxmind_74_200_247_59 +1 -0
- data/test/fixtures/maxmind_invalid_key +1 -0
- data/test/fixtures/maxmind_no_results +1 -0
- data/test/fixtures/nominatim_madison_square_garden +150 -0
- data/test/fixtures/nominatim_no_results +1 -0
- data/test/fixtures/nominatim_over_limit +1 -0
- data/test/fixtures/okf_kirstinmaki +67 -0
- data/test/fixtures/okf_no_results +4 -0
- data/test/fixtures/opencagedata_invalid_api_key +25 -0
- data/test/fixtures/opencagedata_invalid_request +26 -0
- data/test/fixtures/opencagedata_madison_square_garden +73 -0
- data/test/fixtures/opencagedata_no_results +29 -0
- data/test/fixtures/opencagedata_over_limit +31 -0
- data/test/fixtures/ovi_madison_square_garden +72 -0
- data/test/fixtures/ovi_no_results +8 -0
- data/test/fixtures/pointpin_10_10_10_10 +1 -0
- data/test/fixtures/pointpin_555_555_555_555 +1 -0
- data/test/fixtures/pointpin_80_111_555_555 +1 -0
- data/test/fixtures/pointpin_no_results +1 -0
- data/test/fixtures/smarty_streets_11211 +1 -0
- data/test/fixtures/smarty_streets_madison_square_garden +47 -0
- data/test/fixtures/smarty_streets_no_results +1 -0
- data/test/fixtures/telize_10_10_10_10 +1 -0
- data/test/fixtures/telize_555_555_555_555 +4 -0
- data/test/fixtures/telize_74_200_247_59 +1 -0
- data/test/fixtures/telize_no_results +1 -0
- data/test/fixtures/yahoo_error +1 -0
- data/test/fixtures/yahoo_invalid_key +2 -0
- data/test/fixtures/yahoo_madison_square_garden +52 -0
- data/test/fixtures/yahoo_no_results +10 -0
- data/test/fixtures/yahoo_over_limit +2 -0
- data/test/fixtures/yandex_canada_rue_dupuis_14 +446 -0
- data/test/fixtures/yandex_invalid_key +1 -0
- data/test/fixtures/yandex_kremlin +48 -0
- data/test/fixtures/yandex_new_york +1 -0
- data/test/fixtures/yandex_no_city_and_town +112 -0
- data/test/fixtures/yandex_no_results +16 -0
- data/test/integration/http_client_test.rb +31 -0
- data/test/mongoid_test_helper.rb +43 -0
- data/test/test_helper.rb +386 -0
- data/test/unit/active_record_test.rb +16 -0
- data/test/unit/cache_test.rb +37 -0
- data/test/unit/calculations_test.rb +220 -0
- data/test/unit/configuration_test.rb +55 -0
- data/test/unit/error_handling_test.rb +56 -0
- data/test/unit/geocoder_test.rb +78 -0
- data/test/unit/https_test.rb +17 -0
- data/test/unit/ip_address_test.rb +27 -0
- data/test/unit/lookup_test.rb +153 -0
- data/test/unit/lookups/bing_test.rb +68 -0
- data/test/unit/lookups/dstk_test.rb +26 -0
- data/test/unit/lookups/esri_test.rb +48 -0
- data/test/unit/lookups/freegeoip_test.rb +27 -0
- data/test/unit/lookups/geocoder_ca_test.rb +17 -0
- data/test/unit/lookups/geocodio_test.rb +55 -0
- data/test/unit/lookups/google_places_details_test.rb +122 -0
- data/test/unit/lookups/google_premier_test.rb +22 -0
- data/test/unit/lookups/google_test.rb +84 -0
- data/test/unit/lookups/mapquest_test.rb +60 -0
- data/test/unit/lookups/maxmind_local_test.rb +28 -0
- data/test/unit/lookups/maxmind_test.rb +63 -0
- data/test/unit/lookups/nominatim_test.rb +31 -0
- data/test/unit/lookups/okf_test.rb +38 -0
- data/test/unit/lookups/opencagedata_test.rb +64 -0
- data/test/unit/lookups/pointpin_test.rb +30 -0
- data/test/unit/lookups/smarty_streets_test.rb +71 -0
- data/test/unit/lookups/telize_test.rb +36 -0
- data/test/unit/lookups/yahoo_test.rb +35 -0
- data/test/unit/method_aliases_test.rb +26 -0
- data/test/unit/model_test.rb +38 -0
- data/test/unit/mongoid_test.rb +47 -0
- data/test/unit/near_test.rb +87 -0
- data/test/unit/oauth_util_test.rb +31 -0
- data/test/unit/proxy_test.rb +37 -0
- data/test/unit/query_test.rb +52 -0
- data/test/unit/rake_task_test.rb +21 -0
- data/test/unit/request_test.rb +35 -0
- data/test/unit/result_test.rb +72 -0
- data/test/unit/test_mode_test.rb +70 -0
- metadata +281 -0
@@ -0,0 +1,446 @@
|
|
1
|
+
{
|
2
|
+
"response":{
|
3
|
+
"Attribution":"",
|
4
|
+
"GeoObjectCollection":{
|
5
|
+
"metaDataProperty":{
|
6
|
+
"GeocoderResponseMetaData":{
|
7
|
+
"request":"canada rue dupuis 14",
|
8
|
+
"found":"52",
|
9
|
+
"results":"10"
|
10
|
+
}
|
11
|
+
},
|
12
|
+
"featureMember":[
|
13
|
+
{
|
14
|
+
"GeoObject":{
|
15
|
+
"metaDataProperty":{
|
16
|
+
"GeocoderMetaData":{
|
17
|
+
"kind":"house",
|
18
|
+
"text":"Canada, Quebec, Beauharnois-Salaberry, Beauharnois, Rue Dupuis, 14",
|
19
|
+
"precision":"exact",
|
20
|
+
"AddressDetails":{
|
21
|
+
"Country":{
|
22
|
+
"AddressLine":"Quebec, Beauharnois-Salaberry, Beauharnois, Rue Dupuis, 14",
|
23
|
+
"CountryNameCode":"CA",
|
24
|
+
"CountryName":"Canada",
|
25
|
+
"AdministrativeArea":{
|
26
|
+
"AdministrativeAreaName":"Quebec",
|
27
|
+
"SubAdministrativeArea":{
|
28
|
+
"SubAdministrativeAreaName":"Beauharnois-Salaberry",
|
29
|
+
"Locality":{
|
30
|
+
"LocalityName":"Beauharnois",
|
31
|
+
"Thoroughfare":{
|
32
|
+
"ThoroughfareName":"Rue Dupuis",
|
33
|
+
"Premise":{
|
34
|
+
"PremiseNumber":"14"
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
},
|
44
|
+
"description":"Beauharnois, Beauharnois-Salaberry, Quebec, Canada",
|
45
|
+
"name":"Rue Dupuis, 14",
|
46
|
+
"boundedBy":{
|
47
|
+
"Envelope":{
|
48
|
+
"lowerCorner":"-73.880377 45.306461",
|
49
|
+
"upperCorner":"-73.876281 45.309351"
|
50
|
+
}
|
51
|
+
},
|
52
|
+
"Point":{
|
53
|
+
"pos":"-73.878329 45.307906"
|
54
|
+
}
|
55
|
+
}
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"GeoObject":{
|
59
|
+
"metaDataProperty":{
|
60
|
+
"GeocoderMetaData":{
|
61
|
+
"kind":"house",
|
62
|
+
"text":"Canada, Quebec, Roussillon, St-Philippe, Rue Dupuis, 14",
|
63
|
+
"precision":"exact",
|
64
|
+
"AddressDetails":{
|
65
|
+
"Country":{
|
66
|
+
"AddressLine":"Quebec, Roussillon, St-Philippe, Rue Dupuis, 14",
|
67
|
+
"CountryNameCode":"CA",
|
68
|
+
"CountryName":"Canada",
|
69
|
+
"AdministrativeArea":{
|
70
|
+
"AdministrativeAreaName":"Quebec",
|
71
|
+
"SubAdministrativeArea":{
|
72
|
+
"SubAdministrativeAreaName":"Roussillon",
|
73
|
+
"Locality":{
|
74
|
+
"LocalityName":"St-Philippe",
|
75
|
+
"Thoroughfare":{
|
76
|
+
"ThoroughfareName":"Rue Dupuis",
|
77
|
+
"Premise":{
|
78
|
+
"PremiseNumber":"14"
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
},
|
88
|
+
"description":"St-Philippe, Roussillon, Quebec, Canada",
|
89
|
+
"name":"Rue Dupuis, 14",
|
90
|
+
"boundedBy":{
|
91
|
+
"Envelope":{
|
92
|
+
"lowerCorner":"-73.491263 45.371702",
|
93
|
+
"upperCorner":"-73.487167 45.374589"
|
94
|
+
}
|
95
|
+
},
|
96
|
+
"Point":{
|
97
|
+
"pos":"-73.489215 45.373146"
|
98
|
+
}
|
99
|
+
}
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"GeoObject":{
|
103
|
+
"metaDataProperty":{
|
104
|
+
"GeocoderMetaData":{
|
105
|
+
"kind":"house",
|
106
|
+
"text":"Canada, Quebec, Témiscamingue, Notre-Dame-du-Nord, Rue Dupuis, 14",
|
107
|
+
"precision":"exact",
|
108
|
+
"AddressDetails":{
|
109
|
+
"Country":{
|
110
|
+
"AddressLine":"Quebec, Témiscamingue, Notre-Dame-du-Nord, Rue Dupuis, 14",
|
111
|
+
"CountryNameCode":"CA",
|
112
|
+
"CountryName":"Canada",
|
113
|
+
"AdministrativeArea":{
|
114
|
+
"AdministrativeAreaName":"Quebec",
|
115
|
+
"SubAdministrativeArea":{
|
116
|
+
"SubAdministrativeAreaName":"Témiscamingue",
|
117
|
+
"Locality":{
|
118
|
+
"LocalityName":"Notre-Dame-du-Nord",
|
119
|
+
"Thoroughfare":{
|
120
|
+
"ThoroughfareName":"Rue Dupuis",
|
121
|
+
"Premise":{
|
122
|
+
"PremiseNumber":"14"
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
},
|
132
|
+
"description":"Notre-Dame-du-Nord, Témiscamingue, Quebec, Canada",
|
133
|
+
"name":"Rue Dupuis, 14",
|
134
|
+
"boundedBy":{
|
135
|
+
"Envelope":{
|
136
|
+
"lowerCorner":"-79.484724 47.596109",
|
137
|
+
"upperCorner":"-79.480628 47.598879"
|
138
|
+
}
|
139
|
+
},
|
140
|
+
"Point":{
|
141
|
+
"pos":"-79.482676 47.597494"
|
142
|
+
}
|
143
|
+
}
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"GeoObject":{
|
147
|
+
"metaDataProperty":{
|
148
|
+
"GeocoderMetaData":{
|
149
|
+
"kind":"house",
|
150
|
+
"text":"Canada, Quebec, Montcalm, St-Jacques, Rue Dupuis, 14",
|
151
|
+
"precision":"exact",
|
152
|
+
"AddressDetails":{
|
153
|
+
"Country":{
|
154
|
+
"AddressLine":"Quebec, Montcalm, St-Jacques, Rue Dupuis, 14",
|
155
|
+
"CountryNameCode":"CA",
|
156
|
+
"CountryName":"Canada",
|
157
|
+
"AdministrativeArea":{
|
158
|
+
"AdministrativeAreaName":"Quebec",
|
159
|
+
"SubAdministrativeArea":{
|
160
|
+
"SubAdministrativeAreaName":"Montcalm",
|
161
|
+
"Locality":{
|
162
|
+
"LocalityName":"St-Jacques",
|
163
|
+
"Thoroughfare":{
|
164
|
+
"ThoroughfareName":"Rue Dupuis",
|
165
|
+
"Premise":{
|
166
|
+
"PremiseNumber":"14"
|
167
|
+
}
|
168
|
+
}
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
}
|
175
|
+
},
|
176
|
+
"description":"St-Jacques, Montcalm, Quebec, Canada",
|
177
|
+
"name":"Rue Dupuis, 14",
|
178
|
+
"boundedBy":{
|
179
|
+
"Envelope":{
|
180
|
+
"lowerCorner":"-73.573136 45.945209",
|
181
|
+
"upperCorner":"-73.569039 45.948066"
|
182
|
+
}
|
183
|
+
},
|
184
|
+
"Point":{
|
185
|
+
"pos":"-73.571088 45.946637"
|
186
|
+
}
|
187
|
+
}
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"GeoObject":{
|
191
|
+
"metaDataProperty":{
|
192
|
+
"GeocoderMetaData":{
|
193
|
+
"kind":"street",
|
194
|
+
"text":"Canada, Quebec, Le Haut-Richelieu, St-Jean-sur-Richelieu, St-Luc, Rue Dupuis",
|
195
|
+
"precision":"street",
|
196
|
+
"AddressDetails":{
|
197
|
+
"Country":{
|
198
|
+
"AddressLine":"Quebec, Le Haut-Richelieu, St-Jean-sur-Richelieu, St-Luc, Rue Dupuis",
|
199
|
+
"CountryNameCode":"CA",
|
200
|
+
"CountryName":"Canada",
|
201
|
+
"AdministrativeArea":{
|
202
|
+
"AdministrativeAreaName":"Quebec",
|
203
|
+
"SubAdministrativeArea":{
|
204
|
+
"SubAdministrativeAreaName":"Le Haut-Richelieu",
|
205
|
+
"Locality":{
|
206
|
+
"LocalityName":"St-Luc",
|
207
|
+
"Thoroughfare":{
|
208
|
+
"ThoroughfareName":"Rue Dupuis"
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
}
|
216
|
+
},
|
217
|
+
"description":"St-Luc, St-Jean-sur-Richelieu, Le Haut-Richelieu, Quebec, Canada",
|
218
|
+
"name":"Rue Dupuis",
|
219
|
+
"boundedBy":{
|
220
|
+
"Envelope":{
|
221
|
+
"lowerCorner":"-73.253767 45.371677",
|
222
|
+
"upperCorner":"-73.249814 45.383244"
|
223
|
+
}
|
224
|
+
},
|
225
|
+
"Point":{
|
226
|
+
"pos":"-73.250829 45.377875"
|
227
|
+
}
|
228
|
+
}
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"GeoObject":{
|
232
|
+
"metaDataProperty":{
|
233
|
+
"GeocoderMetaData":{
|
234
|
+
"kind":"house",
|
235
|
+
"text":"Canada, Quebec, Thérèse-de-Blainville, Blainville, Rue Corinne-Dupuis, 14",
|
236
|
+
"precision":"exact",
|
237
|
+
"AddressDetails":{
|
238
|
+
"Country":{
|
239
|
+
"AddressLine":"Quebec, Thérèse-de-Blainville, Blainville, Rue Corinne-Dupuis, 14",
|
240
|
+
"CountryNameCode":"CA",
|
241
|
+
"CountryName":"Canada",
|
242
|
+
"AdministrativeArea":{
|
243
|
+
"AdministrativeAreaName":"Quebec",
|
244
|
+
"SubAdministrativeArea":{
|
245
|
+
"SubAdministrativeAreaName":"Thérèse-de-Blainville",
|
246
|
+
"Locality":{
|
247
|
+
"LocalityName":"Blainville",
|
248
|
+
"Thoroughfare":{
|
249
|
+
"ThoroughfareName":"Rue Corinne-Dupuis",
|
250
|
+
"Premise":{
|
251
|
+
"PremiseNumber":"14"
|
252
|
+
}
|
253
|
+
}
|
254
|
+
}
|
255
|
+
}
|
256
|
+
}
|
257
|
+
}
|
258
|
+
}
|
259
|
+
}
|
260
|
+
},
|
261
|
+
"description":"Blainville, Thérèse-de-Blainville, Quebec, Canada",
|
262
|
+
"name":"Rue Corinne-Dupuis, 14",
|
263
|
+
"boundedBy":{
|
264
|
+
"Envelope":{
|
265
|
+
"lowerCorner":"-73.907956 45.692721",
|
266
|
+
"upperCorner":"-73.903859 45.695592"
|
267
|
+
}
|
268
|
+
},
|
269
|
+
"Point":{
|
270
|
+
"pos":"-73.905908 45.694157"
|
271
|
+
}
|
272
|
+
}
|
273
|
+
},
|
274
|
+
{
|
275
|
+
"GeoObject":{
|
276
|
+
"metaDataProperty":{
|
277
|
+
"GeocoderMetaData":{
|
278
|
+
"kind":"house",
|
279
|
+
"text":"Canada, Quebec, Gatineau, Hull, Rue Hormidas-Dupuis, 14",
|
280
|
+
"precision":"exact",
|
281
|
+
"AddressDetails":{
|
282
|
+
"Country":{
|
283
|
+
"AddressLine":"Quebec, Gatineau, Hull, Rue Hormidas-Dupuis, 14",
|
284
|
+
"CountryNameCode":"CA",
|
285
|
+
"CountryName":"Canada",
|
286
|
+
"AdministrativeArea":{
|
287
|
+
"AdministrativeAreaName":"Quebec",
|
288
|
+
"SubAdministrativeArea":{
|
289
|
+
"SubAdministrativeAreaName":"Gatineau",
|
290
|
+
"Locality":{
|
291
|
+
"DependentLocality":{
|
292
|
+
"DependentLocalityName":"Hull",
|
293
|
+
"Thoroughfare":{
|
294
|
+
"ThoroughfareName":"Rue Hormidas-Dupuis",
|
295
|
+
"Premise":{
|
296
|
+
"PremiseNumber":"14"
|
297
|
+
}
|
298
|
+
}
|
299
|
+
}
|
300
|
+
}
|
301
|
+
}
|
302
|
+
}
|
303
|
+
}
|
304
|
+
}
|
305
|
+
}
|
306
|
+
},
|
307
|
+
"description":"Hull, Gatineau, Quebec, Canada",
|
308
|
+
"name":"Rue Hormidas-Dupuis, 14",
|
309
|
+
"boundedBy":{
|
310
|
+
"Envelope":{
|
311
|
+
"lowerCorner":"-75.745594 45.421953",
|
312
|
+
"upperCorner":"-75.741498 45.424838"
|
313
|
+
}
|
314
|
+
},
|
315
|
+
"Point":{
|
316
|
+
"pos":"-75.743546 45.423396"
|
317
|
+
}
|
318
|
+
}
|
319
|
+
},
|
320
|
+
{
|
321
|
+
"GeoObject":{
|
322
|
+
"metaDataProperty":{
|
323
|
+
"GeocoderMetaData":{
|
324
|
+
"kind":"street",
|
325
|
+
"text":"Canada, Quebec, Roussillon, Châteauguay, Rue Dupuis",
|
326
|
+
"precision":"street",
|
327
|
+
"AddressDetails":{
|
328
|
+
"Country":{
|
329
|
+
"AddressLine":"Quebec, Roussillon, Châteauguay, Rue Dupuis",
|
330
|
+
"CountryNameCode":"CA",
|
331
|
+
"CountryName":"Canada",
|
332
|
+
"AdministrativeArea":{
|
333
|
+
"AdministrativeAreaName":"Quebec",
|
334
|
+
"SubAdministrativeArea":{
|
335
|
+
"SubAdministrativeAreaName":"Roussillon",
|
336
|
+
"Locality":{
|
337
|
+
"LocalityName":"Châteauguay",
|
338
|
+
"Thoroughfare":{
|
339
|
+
"ThoroughfareName":"Rue Dupuis"
|
340
|
+
}
|
341
|
+
}
|
342
|
+
}
|
343
|
+
}
|
344
|
+
}
|
345
|
+
}
|
346
|
+
}
|
347
|
+
},
|
348
|
+
"description":"Châteauguay, Roussillon, Quebec, Canada",
|
349
|
+
"name":"Rue Dupuis",
|
350
|
+
"boundedBy":{
|
351
|
+
"Envelope":{
|
352
|
+
"lowerCorner":"-73.708691 45.344539",
|
353
|
+
"upperCorner":"-73.703499 45.345287"
|
354
|
+
}
|
355
|
+
},
|
356
|
+
"Point":{
|
357
|
+
"pos":"-73.706086 45.344983"
|
358
|
+
}
|
359
|
+
}
|
360
|
+
},
|
361
|
+
{
|
362
|
+
"GeoObject":{
|
363
|
+
"metaDataProperty":{
|
364
|
+
"GeocoderMetaData":{
|
365
|
+
"kind":"street",
|
366
|
+
"text":"Canada, Quebec, Longueuil, Rue Dupuis",
|
367
|
+
"precision":"street",
|
368
|
+
"AddressDetails":{
|
369
|
+
"Country":{
|
370
|
+
"AddressLine":"Quebec, Longueuil, Rue Dupuis",
|
371
|
+
"CountryNameCode":"CA",
|
372
|
+
"CountryName":"Canada",
|
373
|
+
"AdministrativeArea":{
|
374
|
+
"AdministrativeAreaName":"Quebec",
|
375
|
+
"SubAdministrativeArea":{
|
376
|
+
"SubAdministrativeAreaName":"Longueuil",
|
377
|
+
"Locality":{
|
378
|
+
"LocalityName":"Longueuil",
|
379
|
+
"Thoroughfare":{
|
380
|
+
"ThoroughfareName":"Rue Dupuis"
|
381
|
+
}
|
382
|
+
}
|
383
|
+
}
|
384
|
+
}
|
385
|
+
}
|
386
|
+
}
|
387
|
+
}
|
388
|
+
},
|
389
|
+
"description":"Longueuil, Quebec, Canada",
|
390
|
+
"name":"Rue Dupuis",
|
391
|
+
"boundedBy":{
|
392
|
+
"Envelope":{
|
393
|
+
"lowerCorner":"-73.463631 45.515456",
|
394
|
+
"upperCorner":"-73.459193 45.516568"
|
395
|
+
}
|
396
|
+
},
|
397
|
+
"Point":{
|
398
|
+
"pos":"-73.461385 45.516094"
|
399
|
+
}
|
400
|
+
}
|
401
|
+
},
|
402
|
+
{
|
403
|
+
"GeoObject":{
|
404
|
+
"metaDataProperty":{
|
405
|
+
"GeocoderMetaData":{
|
406
|
+
"kind":"street",
|
407
|
+
"text":"Canada, Quebec, La Vallée-de-l'Or, Val-d'Or, Rue Dupuis",
|
408
|
+
"precision":"street",
|
409
|
+
"AddressDetails":{
|
410
|
+
"Country":{
|
411
|
+
"AddressLine":"Quebec, La Vallée-de-l'Or, Val-d'Or, Rue Dupuis",
|
412
|
+
"CountryNameCode":"CA",
|
413
|
+
"CountryName":"Canada",
|
414
|
+
"AdministrativeArea":{
|
415
|
+
"AdministrativeAreaName":"Quebec",
|
416
|
+
"SubAdministrativeArea":{
|
417
|
+
"SubAdministrativeAreaName":"La Vallée-de-l'Or",
|
418
|
+
"Locality":{
|
419
|
+
"LocalityName":"Val-d'Or",
|
420
|
+
"Thoroughfare":{
|
421
|
+
"ThoroughfareName":"Rue Dupuis"
|
422
|
+
}
|
423
|
+
}
|
424
|
+
}
|
425
|
+
}
|
426
|
+
}
|
427
|
+
}
|
428
|
+
}
|
429
|
+
},
|
430
|
+
"description":"Val-d'Or, La Vallée-de-l'Or, Quebec, Canada",
|
431
|
+
"name":"Rue Dupuis",
|
432
|
+
"boundedBy":{
|
433
|
+
"Envelope":{
|
434
|
+
"lowerCorner":"-77.810408 48.093635",
|
435
|
+
"upperCorner":"-77.807839 48.097637"
|
436
|
+
}
|
437
|
+
},
|
438
|
+
"Point":{
|
439
|
+
"pos":"-77.810390 48.095663"
|
440
|
+
}
|
441
|
+
}
|
442
|
+
}
|
443
|
+
]
|
444
|
+
}
|
445
|
+
}
|
446
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"error":{"status":401,"message":"invalid key"}}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
{
|
2
|
+
"response": {
|
3
|
+
"GeoObjectCollection": {
|
4
|
+
"metaDataProperty": {
|
5
|
+
"GeocoderResponseMetaData": {
|
6
|
+
"request": "Кремль, Moscow, Russia",
|
7
|
+
"found": "1",
|
8
|
+
"results": "10"
|
9
|
+
}
|
10
|
+
},
|
11
|
+
"featureMember": [
|
12
|
+
{
|
13
|
+
"GeoObject": {
|
14
|
+
"metaDataProperty": {
|
15
|
+
"GeocoderMetaData": {
|
16
|
+
"kind": "vegetation",
|
17
|
+
"text": "Россия, Москва, Московский Кремль",
|
18
|
+
"precision": "other",
|
19
|
+
"AddressDetails": {
|
20
|
+
"Country": {
|
21
|
+
"CountryNameCode": "RU",
|
22
|
+
"CountryName": "Россия",
|
23
|
+
"Locality": {
|
24
|
+
"LocalityName": "Москва",
|
25
|
+
"Premise": {
|
26
|
+
"PremiseName": "Московский Кремль"
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"name": "Московский Кремль",
|
34
|
+
"boundedBy": {
|
35
|
+
"Envelope": {
|
36
|
+
"lowerCorner": "37.584182 55.733361",
|
37
|
+
"upperCorner": "37.650064 55.770517"
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"Point": {
|
41
|
+
"pos": "37.617123 55.751943"
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
]
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"response":{"Attribution":"","GeoObjectCollection":{"metaDataProperty":{"GeocoderResponseMetaData":{"request":"New York, NY","found":"21","results":"10"}},"featureMember":[{"GeoObject":{"metaDataProperty":{"GeocoderMetaData":{"kind":"province","text":"United States, New York","precision":"other","AddressDetails":{"Country":{"AddressLine":"New York","CountryNameCode":"US","CountryName":"United States","AdministrativeArea":{"AdministrativeAreaName":"New York"}}}}},"description":"United States","name":"New York","boundedBy":{"Envelope":{"lowerCorner":"-79.762115 40.477414","upperCorner":"-71.668635 45.016078"}},"Point":{"pos":"-74.007112 40.714545"}}},{"GeoObject":{"metaDataProperty":{"GeocoderMetaData":{"kind":"locality","text":"United States, New York, Bronx, New York","precision":"other","AddressDetails":{"Country":{"AddressLine":"New York, Bronx, New York","CountryNameCode":"US","CountryName":"United States","AdministrativeArea":{"AdministrativeAreaName":"New York","SubAdministrativeArea":{"SubAdministrativeAreaName":"Bronx","Locality":{"LocalityName":"New York"}}}}}}},"description":"Bronx, New York, United States","name":"New York","boundedBy":{"Envelope":{"lowerCorner":"-74.258892 40.477414","upperCorner":"-73.700373 40.917616"}},"Point":{"pos":"-74.007112 40.714545"}}},{"GeoObject":{"metaDataProperty":{"GeocoderMetaData":{"kind":"hydro","text":"United States, Upper New York Bay","precision":"other","AddressDetails":{"Country":{"AddressLine":"Upper New York Bay","CountryNameCode":"US","CountryName":"United States","Locality":{"Premise":{"PremiseName":"Upper New York Bay"}}}}}},"description":"United States","name":"Upper New York Bay","boundedBy":{"Envelope":{"lowerCorner":"-74.107633 40.604124","upperCorner":"-73.998434 40.706697"}},"Point":{"pos":"-74.048758 40.660893"}}},{"GeoObject":{"metaDataProperty":{"GeocoderMetaData":{"kind":"locality","text":"United States, New Jersey, Hudson, West New York","precision":"other","AddressDetails":{"Country":{"AddressLine":"New Jersey, Hudson, West New York","CountryNameCode":"US","CountryName":"United States","AdministrativeArea":{"AdministrativeAreaName":"New Jersey","SubAdministrativeArea":{"SubAdministrativeAreaName":"Hudson","Locality":{"LocalityName":"West New York"}}}}}}},"description":"Hudson, New Jersey, United States","name":"West New York","boundedBy":{"Envelope":{"lowerCorner":"-74.023569 40.7746","upperCorner":"-73.992936 40.796565"}},"Point":{"pos":"-74.015260 40.788325"}}},{"GeoObject":{"metaDataProperty":{"GeocoderMetaData":{"kind":"locality","text":"United Kingdom of Great Britain and Northern Ireland, England, Lincolnshire, East Lindsey, New York","precision":"other","AddressDetails":{"Country":{"AddressLine":"England, Lincolnshire, East Lindsey, New York","CountryNameCode":"GB","CountryName":"United Kingdom of Great Britain and Northern Ireland","AdministrativeArea":{"AdministrativeAreaName":"England","SubAdministrativeArea":{"SubAdministrativeAreaName":"Lincolnshire","Locality":{"LocalityName":"New York"}}}}}}},"description":"East Lindsey, Lincolnshire, England, United Kingdom of Great Britain and Northern Ireland","name":"New York","boundedBy":{"Envelope":{"lowerCorner":"-0.205993 53.039103","upperCorner":"-0.074192 53.11847"}},"Point":{"pos":"-0.140092 53.078805"}}},{"GeoObject":{"metaDataProperty":{"GeocoderMetaData":{"kind":"locality","text":"South Africa, North West, Bophirima, Naledi, New York","precision":"other","AddressDetails":{"Country":{"AddressLine":"North West, Bophirima, Naledi, New York","CountryNameCode":"ZA","CountryName":"South Africa","AdministrativeArea":{"AdministrativeAreaName":"North West","SubAdministrativeArea":{"SubAdministrativeAreaName":"Bophirima","Locality":{"LocalityName":"New York"}}}}}}},"description":"Naledi, Bophirima, North West, South Africa","name":"New York","boundedBy":{"Envelope":{"lowerCorner":"24.454037 -26.943742","upperCorner":"24.585838 -26.825556"}},"Point":{"pos":"24.519938 -26.884665"}}},{"GeoObject":{"metaDataProperty":{"GeocoderMetaData":{"kind":"locality","text":"United States, New Mexico, Cibola, New York","precision":"other","AddressDetails":{"Country":{"AddressLine":"New Mexico, Cibola, New York","CountryNameCode":"US","CountryName":"United States","AdministrativeArea":{"AdministrativeAreaName":"New Mexico","SubAdministrativeArea":{"SubAdministrativeAreaName":"Cibola","Locality":{"LocalityName":"New York"}}}}}}},"description":"Cibola, New Mexico, United States","name":"New York","boundedBy":{"Envelope":{"lowerCorner":"-107.592515 35.00522","upperCorner":"-107.460714 35.113594"}},"Point":{"pos":"-107.526615 35.059425"}}},{"GeoObject":{"metaDataProperty":{"GeocoderMetaData":{"kind":"locality","text":"United States, Iowa, Wayne, New York","precision":"other","AddressDetails":{"Country":{"AddressLine":"Iowa, Wayne, New York","CountryNameCode":"US","CountryName":"United States","AdministrativeArea":{"AdministrativeAreaName":"Iowa","SubAdministrativeArea":{"SubAdministrativeAreaName":"Wayne","Locality":{"LocalityName":"New York"}}}}}}},"description":"Wayne, Iowa, United States","name":"New York","boundedBy":{"Envelope":{"lowerCorner":"-93.32337 40.801487","upperCorner":"-93.191569 40.901567"}},"Point":{"pos":"-93.257469 40.851546"}}},{"GeoObject":{"metaDataProperty":{"GeocoderMetaData":{"kind":"locality","text":"United States, Missouri, Caldwell, New York","precision":"other","AddressDetails":{"Country":{"AddressLine":"Missouri, Caldwell, New York","CountryNameCode":"US","CountryName":"United States","AdministrativeArea":{"AdministrativeAreaName":"Missouri","SubAdministrativeArea":{"SubAdministrativeAreaName":"Caldwell","Locality":{"LocalityName":"New York"}}}}}}},"description":"Caldwell, Missouri, United States","name":"New York","boundedBy":{"Envelope":{"lowerCorner":"-93.97525 39.633979","upperCorner":"-93.843449 39.735813"}},"Point":{"pos":"-93.909350 39.684915"}}},{"GeoObject":{"metaDataProperty":{"GeocoderMetaData":{"kind":"locality","text":"United States, Texas, Henderson, New York","precision":"other","AddressDetails":{"Country":{"AddressLine":"Texas, Henderson, New York","CountryNameCode":"US","CountryName":"United States","AdministrativeArea":{"AdministrativeAreaName":"Texas","SubAdministrativeArea":{"SubAdministrativeAreaName":"Henderson","Locality":{"LocalityName":"New York"}}}}}}},"description":"Henderson, Texas, United States","name":"New York","boundedBy":{"Envelope":{"lowerCorner":"-95.735086 32.112428","upperCorner":"-95.603285 32.224535"}},"Point":{"pos":"-95.669185 32.168499"}}}]}}}
|
@@ -0,0 +1,112 @@
|
|
1
|
+
{
|
2
|
+
"response":{
|
3
|
+
"GeoObjectCollection":{
|
4
|
+
"metaDataProperty":{
|
5
|
+
"GeocoderResponseMetaData":{
|
6
|
+
"request":"57.423359,55.892596",
|
7
|
+
"found":"3",
|
8
|
+
"results":"10",
|
9
|
+
"Point":{
|
10
|
+
"pos":"57.423359 55.892596"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
"featureMember":[
|
15
|
+
{
|
16
|
+
"GeoObject":{
|
17
|
+
"metaDataProperty":{
|
18
|
+
"GeocoderMetaData":{
|
19
|
+
"kind":"area",
|
20
|
+
"text":"Россия, республика Башкортостан, Караидельский район",
|
21
|
+
"precision":"other",
|
22
|
+
"AddressDetails":{
|
23
|
+
"Country":{
|
24
|
+
"AddressLine":"республика Башкортостан, Караидельский район",
|
25
|
+
"CountryNameCode":"RU",
|
26
|
+
"CountryName":"Россия",
|
27
|
+
"AdministrativeArea":{
|
28
|
+
"AdministrativeAreaName":"республика Башкортостан",
|
29
|
+
"SubAdministrativeArea":{
|
30
|
+
"SubAdministrativeAreaName":"Караидельский район"
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
},
|
37
|
+
"description":"республика Башкортостан, Россия",
|
38
|
+
"name":"Караидельский район",
|
39
|
+
"boundedBy":{
|
40
|
+
"Envelope":{
|
41
|
+
"lowerCorner":"56.231384 55.462814",
|
42
|
+
"upperCorner":"57.705348 56.076117"
|
43
|
+
}
|
44
|
+
},
|
45
|
+
"Point":{
|
46
|
+
"pos":"57.423359 55.892596"
|
47
|
+
}
|
48
|
+
}
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"GeoObject":{
|
52
|
+
"metaDataProperty":{
|
53
|
+
"GeocoderMetaData":{
|
54
|
+
"kind":"province",
|
55
|
+
"text":"Россия, республика Башкортостан",
|
56
|
+
"precision":"other",
|
57
|
+
"AddressDetails":{
|
58
|
+
"Country":{
|
59
|
+
"AddressLine":"республика Башкортостан",
|
60
|
+
"CountryNameCode":"RU",
|
61
|
+
"CountryName":"Россия",
|
62
|
+
"AdministrativeArea":{
|
63
|
+
"AdministrativeAreaName":"республика Башкортостан"
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
},
|
69
|
+
"description":"Россия",
|
70
|
+
"name":"республика Башкортостан",
|
71
|
+
"boundedBy":{
|
72
|
+
"Envelope":{
|
73
|
+
"lowerCorner":"53.157475 51.571991",
|
74
|
+
"upperCorner":"60.001577 56.533651"
|
75
|
+
}
|
76
|
+
},
|
77
|
+
"Point":{
|
78
|
+
"pos":"56.579526 54.127354"
|
79
|
+
}
|
80
|
+
}
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"GeoObject":{
|
84
|
+
"metaDataProperty":{
|
85
|
+
"GeocoderMetaData":{
|
86
|
+
"kind":"country",
|
87
|
+
"text":"Россия",
|
88
|
+
"precision":"other",
|
89
|
+
"AddressDetails":{
|
90
|
+
"Country":{
|
91
|
+
"CountryNameCode":"RU",
|
92
|
+
"CountryName":"Россия"
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
},
|
97
|
+
"name":"Россия",
|
98
|
+
"boundedBy":{
|
99
|
+
"Envelope":{
|
100
|
+
"lowerCorner":"19.641673 36.84312",
|
101
|
+
"upperCorner":"179.999997 81.848739"
|
102
|
+
}
|
103
|
+
},
|
104
|
+
"Point":{
|
105
|
+
"pos":"37.617761 55.755773"
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
]
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|