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,120 @@
|
|
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
|
+
}
|
@@ -0,0 +1,60 @@
|
|
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
|
+
}
|
@@ -0,0 +1,66 @@
|
|
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
|
+
}
|
@@ -0,0 +1,72 @@
|
|
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
|
+
}
|
@@ -0,0 +1,16 @@
|
|
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
|
+
}
|
@@ -0,0 +1,16 @@
|
|
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
|
+
}
|
@@ -0,0 +1,16 @@
|
|
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
|
+
}
|
@@ -0,0 +1,52 @@
|
|
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|¢er=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
|
+
}
|
@@ -0,0 +1,16 @@
|
|
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
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
US
|
@@ -0,0 +1 @@
|
|
1
|
+
US,NY,Jamaica,40.6915,-73.8057
|
@@ -0,0 +1 @@
|
|
1
|
+
US,NY,Jamaica,,40.6915,-73.8057,501,718,"Road Runner","Road Runner"
|
@@ -0,0 +1 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
1
|
+
US,TX,Plano,75093,33.034698,-96.813400,623,972,"Layered Technologies , US","Layered Technologies , US",
|
@@ -0,0 +1 @@
|
|
1
|
+
,,,,,,,,,,INVALID_LICENSE_KEY
|
@@ -0,0 +1 @@
|
|
1
|
+
,,,,,,,,,,IP_NOT_FOUND
|
@@ -0,0 +1,150 @@
|
|
1
|
+
[
|
2
|
+
|
3
|
+
{
|
4
|
+
"place_id": "30632629",
|
5
|
+
"licence": "Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0.",
|
6
|
+
"osm_type": "way",
|
7
|
+
"osm_id": "24801588",
|
8
|
+
"boundingbox": [
|
9
|
+
"40.749828338623",
|
10
|
+
"40.7511596679688",
|
11
|
+
"-73.9943389892578",
|
12
|
+
"-73.9926528930664"
|
13
|
+
],
|
14
|
+
"polygonpoints": [
|
15
|
+
[
|
16
|
+
"-73.9943346",
|
17
|
+
"40.7503638"
|
18
|
+
],
|
19
|
+
[
|
20
|
+
"-73.9942745",
|
21
|
+
"40.7504158"
|
22
|
+
],
|
23
|
+
[
|
24
|
+
"-73.9942593",
|
25
|
+
"40.750629"
|
26
|
+
],
|
27
|
+
[
|
28
|
+
"-73.9941343",
|
29
|
+
"40.7508432"
|
30
|
+
],
|
31
|
+
[
|
32
|
+
"-73.9939794",
|
33
|
+
"40.7509703"
|
34
|
+
],
|
35
|
+
[
|
36
|
+
"-73.9938042",
|
37
|
+
"40.7510532"
|
38
|
+
],
|
39
|
+
[
|
40
|
+
"-73.9938025",
|
41
|
+
"40.7511311"
|
42
|
+
],
|
43
|
+
[
|
44
|
+
"-73.9936051",
|
45
|
+
"40.7511571"
|
46
|
+
],
|
47
|
+
[
|
48
|
+
"-73.9935673",
|
49
|
+
"40.751105"
|
50
|
+
],
|
51
|
+
[
|
52
|
+
"-73.9934095",
|
53
|
+
"40.7511089"
|
54
|
+
],
|
55
|
+
[
|
56
|
+
"-73.9931235",
|
57
|
+
"40.7510548"
|
58
|
+
],
|
59
|
+
[
|
60
|
+
"-73.9928863",
|
61
|
+
"40.7509311"
|
62
|
+
],
|
63
|
+
[
|
64
|
+
"-73.9928068",
|
65
|
+
"40.750949"
|
66
|
+
],
|
67
|
+
[
|
68
|
+
"-73.992721",
|
69
|
+
"40.7508515"
|
70
|
+
],
|
71
|
+
[
|
72
|
+
"-73.9927444",
|
73
|
+
"40.7507889"
|
74
|
+
],
|
75
|
+
[
|
76
|
+
"-73.9926693",
|
77
|
+
"40.7506457"
|
78
|
+
],
|
79
|
+
[
|
80
|
+
"-73.9926597",
|
81
|
+
"40.7503657"
|
82
|
+
],
|
83
|
+
[
|
84
|
+
"-73.9928305",
|
85
|
+
"40.7500953"
|
86
|
+
],
|
87
|
+
[
|
88
|
+
"-73.9929757",
|
89
|
+
"40.7499911"
|
90
|
+
],
|
91
|
+
[
|
92
|
+
"-73.9931281",
|
93
|
+
"40.7499238"
|
94
|
+
],
|
95
|
+
[
|
96
|
+
"-73.993133",
|
97
|
+
"40.7498631"
|
98
|
+
],
|
99
|
+
[
|
100
|
+
"-73.9932961",
|
101
|
+
"40.7498306"
|
102
|
+
],
|
103
|
+
[
|
104
|
+
"-73.9933664",
|
105
|
+
"40.7498742"
|
106
|
+
],
|
107
|
+
[
|
108
|
+
"-73.993471",
|
109
|
+
"40.7498701"
|
110
|
+
],
|
111
|
+
[
|
112
|
+
"-73.9938023",
|
113
|
+
"40.7499263"
|
114
|
+
],
|
115
|
+
[
|
116
|
+
"-73.9940703",
|
117
|
+
"40.7500756"
|
118
|
+
],
|
119
|
+
[
|
120
|
+
"-73.9941876",
|
121
|
+
"40.7502038"
|
122
|
+
],
|
123
|
+
[
|
124
|
+
"-73.9942831",
|
125
|
+
"40.7502142"
|
126
|
+
],
|
127
|
+
[
|
128
|
+
"-73.9943346",
|
129
|
+
"40.7503638"
|
130
|
+
]
|
131
|
+
],
|
132
|
+
"lat": "40.7504928941818",
|
133
|
+
"lon": "-73.993466492276",
|
134
|
+
"display_name": "Madison Square Garden, West 31st Street, Long Island City, New York City, New York, 10001, United States of America",
|
135
|
+
"class": "leisure",
|
136
|
+
"type": "stadium",
|
137
|
+
"address": {
|
138
|
+
"stadium": "Madison Square Garden",
|
139
|
+
"road": "West 31st Street",
|
140
|
+
"suburb": "Long Island City",
|
141
|
+
"city": "New York City",
|
142
|
+
"county": "New York",
|
143
|
+
"state": "New York",
|
144
|
+
"postcode": "10001",
|
145
|
+
"country": "United States of America",
|
146
|
+
"country_code": "us"
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
]
|
@@ -0,0 +1 @@
|
|
1
|
+
[ ]
|
@@ -0,0 +1 @@
|
|
1
|
+
<html>\n<head>\n<title>Bandwidth limit exceeded</title>\n</head>\n<body>\n<h1>Bandwidth limit exceeded</h1>\n\n<p>You have been temporarily blocked because you have been overusing OSM's geocoding service or because you have not provided sufficient identification of your application. This block will be automatically lifted after a while. Please take the time and adapt your scripts to reduce the number of requests and make sure that you send a valid UserAgent or Referer.</p>\n\n<p>For more information, consult the <a href=\"http://wiki.openstreetmap.org/wiki/Nominatim_usage_policy\">usage policy</a> for the OSM Nominatim server.\n</body>\n</head>\n
|