geocoder 1.2.6 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +189 -1
- data/LICENSE +1 -1
- data/README.md +387 -755
- data/examples/autoexpire_cache_redis.rb +5 -3
- data/examples/reverse_geocode_job.rb +40 -0
- data/lib/generators/geocoder/config/templates/initializer.rb +17 -16
- data/lib/generators/geocoder/maxmind/geolite_city_generator.rb +2 -0
- data/lib/generators/geocoder/maxmind/geolite_country_generator.rb +2 -0
- data/lib/generators/geocoder/maxmind/templates/migration/geolite_city.rb +1 -1
- data/lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb +1 -1
- data/lib/generators/geocoder/migration_version.rb +15 -0
- data/lib/geocoder/cache.rb +6 -2
- data/lib/geocoder/calculations.rb +30 -38
- data/lib/geocoder/cli.rb +2 -2
- data/lib/geocoder/configuration.rb +18 -5
- data/lib/geocoder/esri_token.rb +38 -0
- data/lib/geocoder/exceptions.rb +19 -0
- data/lib/geocoder/ip_address.rb +16 -11
- data/lib/geocoder/kernel_logger.rb +25 -0
- data/lib/geocoder/logger.rb +47 -0
- data/lib/geocoder/lookup.rb +31 -12
- data/lib/geocoder/lookups/amap.rb +63 -0
- data/lib/geocoder/lookups/baidu.rb +17 -9
- data/lib/geocoder/lookups/baidu_ip.rb +7 -31
- data/lib/geocoder/lookups/ban_data_gouv_fr.rb +143 -0
- data/lib/geocoder/lookups/base.rb +73 -25
- data/lib/geocoder/lookups/bing.rb +38 -15
- data/lib/geocoder/lookups/db_ip_com.rb +52 -0
- data/lib/geocoder/lookups/dstk.rb +4 -2
- data/lib/geocoder/lookups/esri.rb +55 -8
- data/lib/geocoder/lookups/freegeoip.rb +18 -5
- data/lib/geocoder/lookups/geocoder_ca.rb +5 -6
- data/lib/geocoder/lookups/geocodio.rb +8 -8
- data/lib/geocoder/lookups/geoip2.rb +10 -5
- data/lib/geocoder/lookups/geoportail_lu.rb +65 -0
- data/lib/geocoder/lookups/google.rb +37 -9
- data/lib/geocoder/lookups/google_places_details.rb +9 -9
- data/lib/geocoder/lookups/google_places_search.rb +33 -0
- data/lib/geocoder/lookups/google_premier.rb +11 -1
- data/lib/geocoder/lookups/here.rb +29 -23
- data/lib/geocoder/lookups/ip2location.rb +67 -0
- data/lib/geocoder/lookups/ipapi_com.rb +82 -0
- data/lib/geocoder/lookups/ipdata_co.rb +62 -0
- data/lib/geocoder/lookups/ipgeolocation.rb +51 -0
- data/lib/geocoder/lookups/ipinfo_io.rb +44 -0
- data/lib/geocoder/lookups/ipregistry.rb +68 -0
- data/lib/geocoder/lookups/ipstack.rb +63 -0
- data/lib/geocoder/lookups/latlon.rb +59 -0
- data/lib/geocoder/lookups/location_iq.rb +50 -0
- data/lib/geocoder/lookups/mapbox.rb +59 -0
- data/lib/geocoder/lookups/mapquest.rb +7 -9
- data/lib/geocoder/lookups/maxmind.rb +7 -7
- data/lib/geocoder/lookups/maxmind_geoip2.rb +70 -0
- data/lib/geocoder/lookups/maxmind_local.rb +9 -2
- data/lib/geocoder/lookups/nominatim.rb +18 -6
- data/lib/geocoder/lookups/opencagedata.rb +16 -9
- data/lib/geocoder/lookups/osmnames.rb +57 -0
- data/lib/geocoder/lookups/pelias.rb +63 -0
- data/lib/geocoder/lookups/pickpoint.rb +41 -0
- data/lib/geocoder/lookups/pointpin.rb +14 -13
- data/lib/geocoder/lookups/postcode_anywhere_uk.rb +7 -8
- data/lib/geocoder/lookups/postcodes_io.rb +31 -0
- data/lib/geocoder/lookups/smarty_streets.rb +23 -5
- data/lib/geocoder/lookups/telize.rb +42 -7
- data/lib/geocoder/lookups/tencent.rb +59 -0
- data/lib/geocoder/lookups/yandex.rb +17 -9
- data/lib/geocoder/models/active_record.rb +4 -3
- data/lib/geocoder/models/mongo_base.rb +0 -2
- data/lib/geocoder/query.rb +15 -1
- data/lib/geocoder/railtie.rb +1 -1
- data/lib/geocoder/request.rb +103 -14
- data/lib/geocoder/results/amap.rb +87 -0
- data/lib/geocoder/results/baidu.rb +10 -14
- data/lib/geocoder/results/ban_data_gouv_fr.rb +257 -0
- data/lib/geocoder/results/base.rb +13 -1
- data/lib/geocoder/results/bing.rb +5 -1
- data/lib/geocoder/results/db_ip_com.rb +58 -0
- data/lib/geocoder/results/esri.rb +30 -6
- data/lib/geocoder/results/freegeoip.rb +2 -7
- data/lib/geocoder/results/geocoder_ca.rb +3 -3
- data/lib/geocoder/results/geocodio.rb +15 -3
- data/lib/geocoder/results/geoip2.rb +37 -25
- data/lib/geocoder/results/geoportail_lu.rb +71 -0
- data/lib/geocoder/results/google.rb +26 -0
- data/lib/geocoder/results/google_places_details.rb +4 -0
- data/lib/geocoder/results/google_places_search.rb +52 -0
- data/lib/geocoder/results/here.rb +21 -1
- data/lib/geocoder/results/ip2location.rb +22 -0
- data/lib/geocoder/results/ipapi_com.rb +45 -0
- data/lib/geocoder/results/ipdata_co.rb +40 -0
- data/lib/geocoder/results/ipgeolocation.rb +59 -0
- data/lib/geocoder/results/ipinfo_io.rb +48 -0
- data/lib/geocoder/results/ipregistry.rb +308 -0
- data/lib/geocoder/results/ipstack.rb +60 -0
- data/lib/geocoder/results/latlon.rb +71 -0
- data/lib/geocoder/results/location_iq.rb +6 -0
- data/lib/geocoder/results/mapbox.rb +57 -0
- data/lib/geocoder/results/mapquest.rb +5 -8
- data/lib/geocoder/results/maxmind.rb +0 -5
- data/lib/geocoder/results/maxmind_geoip2.rb +9 -0
- data/lib/geocoder/results/maxmind_local.rb +0 -5
- data/lib/geocoder/results/nominatim.rb +18 -3
- data/lib/geocoder/results/opencagedata.rb +20 -2
- data/lib/geocoder/results/osmnames.rb +56 -0
- data/lib/geocoder/results/pelias.rb +58 -0
- data/lib/geocoder/results/pickpoint.rb +6 -0
- data/lib/geocoder/results/pointpin.rb +0 -4
- data/lib/geocoder/results/postcodes_io.rb +40 -0
- data/lib/geocoder/results/smarty_streets.rb +55 -19
- data/lib/geocoder/results/telize.rb +0 -5
- data/lib/geocoder/results/tencent.rb +72 -0
- data/lib/geocoder/results/test.rb +1 -1
- data/lib/geocoder/results/yandex.rb +57 -7
- data/lib/geocoder/sql.rb +9 -6
- data/lib/geocoder/stores/active_record.rb +49 -10
- data/lib/geocoder/stores/base.rb +2 -14
- data/lib/geocoder/stores/mongo_base.rb +0 -31
- data/lib/geocoder/version.rb +1 -1
- data/lib/geocoder.rb +2 -1
- data/lib/hash_recursive_merge.rb +1 -2
- data/lib/maxmind_database.rb +4 -4
- data/lib/tasks/geocoder.rake +29 -4
- metadata +56 -159
- data/.gitignore +0 -6
- data/.travis.yml +0 -31
- data/Rakefile +0 -25
- data/gemfiles/Gemfile.mongoid-2.4.x +0 -16
- data/lib/geocoder/lookups/geocoder_us.rb +0 -39
- data/lib/geocoder/lookups/okf.rb +0 -43
- data/lib/geocoder/lookups/ovi.rb +0 -62
- data/lib/geocoder/lookups/yahoo.rb +0 -88
- data/lib/geocoder/results/geocoder_us.rb +0 -39
- data/lib/geocoder/results/okf.rb +0 -106
- data/lib/geocoder/results/ovi.rb +0 -62
- data/lib/geocoder/results/yahoo.rb +0 -55
- data/lib/oauth_util.rb +0 -112
- data/test/fixtures/baidu_invalid_key +0 -1
- data/test/fixtures/baidu_ip_202_198_16_3 +0 -19
- data/test/fixtures/baidu_ip_invalid_key +0 -1
- data/test/fixtures/baidu_ip_no_results +0 -1
- data/test/fixtures/baidu_no_results +0 -1
- data/test/fixtures/baidu_reverse +0 -1
- data/test/fixtures/baidu_shanghai_pearl_tower +0 -12
- data/test/fixtures/bing_invalid_key +0 -1
- data/test/fixtures/bing_madison_square_garden +0 -40
- data/test/fixtures/bing_no_results +0 -16
- data/test/fixtures/bing_reverse +0 -42
- data/test/fixtures/cloudmade_invalid_key +0 -1
- data/test/fixtures/cloudmade_madison_square_garden +0 -1
- data/test/fixtures/cloudmade_no_results +0 -1
- data/test/fixtures/esri_madison_square_garden +0 -59
- data/test/fixtures/esri_no_results +0 -8
- data/test/fixtures/esri_reverse +0 -21
- data/test/fixtures/freegeoip_74_200_247_59 +0 -12
- data/test/fixtures/freegeoip_no_results +0 -1
- data/test/fixtures/geocoder_ca_madison_square_garden +0 -1
- data/test/fixtures/geocoder_ca_no_results +0 -1
- data/test/fixtures/geocoder_ca_reverse +0 -34
- data/test/fixtures/geocoder_us_madison_square_garden +0 -1
- data/test/fixtures/geocoder_us_no_results +0 -1
- data/test/fixtures/geocodio_1101_pennsylvania_ave +0 -1
- data/test/fixtures/geocodio_bad_api_key +0 -3
- data/test/fixtures/geocodio_invalid +0 -4
- data/test/fixtures/geocodio_no_results +0 -1
- data/test/fixtures/geocodio_over_query_limit +0 -4
- data/test/fixtures/google_garbage +0 -456
- data/test/fixtures/google_madison_square_garden +0 -57
- data/test/fixtures/google_no_city_data +0 -44
- data/test/fixtures/google_no_locality +0 -51
- data/test/fixtures/google_no_results +0 -4
- data/test/fixtures/google_over_limit +0 -4
- data/test/fixtures/google_places_details_invalid_request +0 -4
- data/test/fixtures/google_places_details_madison_square_garden +0 -120
- data/test/fixtures/google_places_details_no_results +0 -4
- data/test/fixtures/google_places_details_no_reviews +0 -60
- data/test/fixtures/google_places_details_no_types +0 -66
- data/test/fixtures/here_madison_square_garden +0 -72
- data/test/fixtures/here_no_results +0 -8
- data/test/fixtures/mapquest_error +0 -16
- data/test/fixtures/mapquest_invalid_api_key +0 -16
- data/test/fixtures/mapquest_invalid_request +0 -16
- data/test/fixtures/mapquest_madison_square_garden +0 -52
- data/test/fixtures/mapquest_no_results +0 -16
- data/test/fixtures/maxmind_24_24_24_21 +0 -1
- data/test/fixtures/maxmind_24_24_24_22 +0 -1
- data/test/fixtures/maxmind_24_24_24_23 +0 -1
- data/test/fixtures/maxmind_24_24_24_24 +0 -1
- data/test/fixtures/maxmind_74_200_247_59 +0 -1
- data/test/fixtures/maxmind_invalid_key +0 -1
- data/test/fixtures/maxmind_no_results +0 -1
- data/test/fixtures/nominatim_madison_square_garden +0 -150
- data/test/fixtures/nominatim_no_results +0 -1
- data/test/fixtures/nominatim_over_limit +0 -1
- data/test/fixtures/okf_kirstinmaki +0 -67
- data/test/fixtures/okf_no_results +0 -4
- data/test/fixtures/opencagedata_invalid_api_key +0 -25
- data/test/fixtures/opencagedata_invalid_request +0 -26
- data/test/fixtures/opencagedata_madison_square_garden +0 -73
- data/test/fixtures/opencagedata_no_results +0 -29
- data/test/fixtures/opencagedata_over_limit +0 -31
- data/test/fixtures/ovi_madison_square_garden +0 -72
- data/test/fixtures/ovi_no_results +0 -8
- data/test/fixtures/pointpin_10_10_10_10 +0 -1
- data/test/fixtures/pointpin_555_555_555_555 +0 -1
- data/test/fixtures/pointpin_80_111_555_555 +0 -1
- data/test/fixtures/pointpin_no_results +0 -1
- data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_WR26NJ +0 -1
- data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_generic_error +0 -1
- data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_hampshire +0 -1
- data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_key_limit_exceeded +0 -1
- data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_no_results +0 -1
- data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_romsey +0 -1
- data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_unknown_key +0 -1
- data/test/fixtures/smarty_streets_11211 +0 -1
- data/test/fixtures/smarty_streets_madison_square_garden +0 -47
- data/test/fixtures/smarty_streets_no_results +0 -1
- data/test/fixtures/telize_10_10_10_10 +0 -1
- data/test/fixtures/telize_555_555_555_555 +0 -4
- data/test/fixtures/telize_74_200_247_59 +0 -1
- data/test/fixtures/telize_no_results +0 -1
- data/test/fixtures/yahoo_error +0 -1
- data/test/fixtures/yahoo_invalid_key +0 -2
- data/test/fixtures/yahoo_madison_square_garden +0 -52
- data/test/fixtures/yahoo_no_results +0 -10
- data/test/fixtures/yahoo_over_limit +0 -2
- data/test/fixtures/yandex_canada_rue_dupuis_14 +0 -446
- data/test/fixtures/yandex_invalid_key +0 -1
- data/test/fixtures/yandex_kremlin +0 -48
- data/test/fixtures/yandex_new_york +0 -1
- data/test/fixtures/yandex_no_city_and_town +0 -112
- data/test/fixtures/yandex_no_results +0 -16
- data/test/integration/http_client_test.rb +0 -31
- data/test/mongoid_test_helper.rb +0 -43
- data/test/test_helper.rb +0 -416
- data/test/unit/active_record_test.rb +0 -16
- data/test/unit/cache_test.rb +0 -37
- data/test/unit/calculations_test.rb +0 -220
- data/test/unit/configuration_test.rb +0 -55
- data/test/unit/error_handling_test.rb +0 -56
- data/test/unit/geocoder_test.rb +0 -78
- data/test/unit/https_test.rb +0 -17
- data/test/unit/ip_address_test.rb +0 -27
- data/test/unit/lookup_test.rb +0 -153
- data/test/unit/lookups/bing_test.rb +0 -68
- data/test/unit/lookups/dstk_test.rb +0 -26
- data/test/unit/lookups/esri_test.rb +0 -48
- data/test/unit/lookups/freegeoip_test.rb +0 -27
- data/test/unit/lookups/geocoder_ca_test.rb +0 -17
- data/test/unit/lookups/geocodio_test.rb +0 -55
- data/test/unit/lookups/geoip2_test.rb +0 -27
- data/test/unit/lookups/google_places_details_test.rb +0 -122
- data/test/unit/lookups/google_premier_test.rb +0 -22
- data/test/unit/lookups/google_test.rb +0 -84
- data/test/unit/lookups/mapquest_test.rb +0 -60
- data/test/unit/lookups/maxmind_local_test.rb +0 -28
- data/test/unit/lookups/maxmind_test.rb +0 -63
- data/test/unit/lookups/nominatim_test.rb +0 -31
- data/test/unit/lookups/okf_test.rb +0 -38
- data/test/unit/lookups/opencagedata_test.rb +0 -64
- data/test/unit/lookups/pointpin_test.rb +0 -30
- data/test/unit/lookups/postcode_anywhere_uk_test.rb +0 -70
- data/test/unit/lookups/smarty_streets_test.rb +0 -71
- data/test/unit/lookups/telize_test.rb +0 -36
- data/test/unit/lookups/yahoo_test.rb +0 -35
- data/test/unit/method_aliases_test.rb +0 -26
- data/test/unit/model_test.rb +0 -38
- data/test/unit/mongoid_test.rb +0 -47
- data/test/unit/near_test.rb +0 -87
- data/test/unit/oauth_util_test.rb +0 -31
- data/test/unit/proxy_test.rb +0 -37
- data/test/unit/query_test.rb +0 -52
- data/test/unit/rake_task_test.rb +0 -21
- data/test/unit/request_test.rb +0 -35
- data/test/unit/result_test.rb +0 -72
- data/test/unit/test_mode_test.rb +0 -70
@@ -1,150 +0,0 @@
|
|
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
|
-
]
|
@@ -1 +0,0 @@
|
|
1
|
-
[ ]
|
@@ -1 +0,0 @@
|
|
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
|
@@ -1,67 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"status" : "OK",
|
3
|
-
"results" : [
|
4
|
-
{
|
5
|
-
"formatted_address" : "Kirstinmäki 1, 02760 Espoo, Suomi",
|
6
|
-
"sources" : [
|
7
|
-
{
|
8
|
-
"name" : "National Land Survey of Finland - Topographic Dataset (2013-03-08)",
|
9
|
-
"terms_of_use" : "National Land Survey open data licence - version 1.0 - 1 May 2012\nhttp://www.maanmittauslaitos.fi/en/NLS_open_data_licence_version1_20120501"
|
10
|
-
},
|
11
|
-
{
|
12
|
-
"name" : "Itella perusosoitteisto (2014-02-01)",
|
13
|
-
"terms_of_use" : "http://www.itella.fi/liitteet/palvelutjatuotteet/yhteystietopalvelut/Postinumeropalvelut-Palvelukuvausjakayttoehdot.pdf"
|
14
|
-
}
|
15
|
-
],
|
16
|
-
"types" : [
|
17
|
-
"street_address"
|
18
|
-
],
|
19
|
-
"address_components" : [
|
20
|
-
{
|
21
|
-
"types" : [
|
22
|
-
"street_number"
|
23
|
-
],
|
24
|
-
"short_name" : "1",
|
25
|
-
"long_name" : "1"
|
26
|
-
},
|
27
|
-
{
|
28
|
-
"types" : [
|
29
|
-
"route"
|
30
|
-
],
|
31
|
-
"short_name" : "Kirstinmäki",
|
32
|
-
"long_name" : "Kirstinmäki"
|
33
|
-
},
|
34
|
-
{
|
35
|
-
"types" : [
|
36
|
-
"administrative_area_level_3",
|
37
|
-
"political"
|
38
|
-
],
|
39
|
-
"short_name" : "Espoo",
|
40
|
-
"long_name" : "Espoo"
|
41
|
-
},
|
42
|
-
{
|
43
|
-
"types" : [
|
44
|
-
"postal_code"
|
45
|
-
],
|
46
|
-
"short_name" : "02760",
|
47
|
-
"long_name" : "02760"
|
48
|
-
},
|
49
|
-
{
|
50
|
-
"types" : [
|
51
|
-
"country",
|
52
|
-
"political"
|
53
|
-
],
|
54
|
-
"short_name" : "FI",
|
55
|
-
"long_name" : "Suomi"
|
56
|
-
}
|
57
|
-
],
|
58
|
-
"geometry" : {
|
59
|
-
"location" : {
|
60
|
-
"lat" : 60.2015185792087,
|
61
|
-
"lng" : 24.6667520050026
|
62
|
-
},
|
63
|
-
"location_type" : "RANGE_INTERPOLATED"
|
64
|
-
}
|
65
|
-
}
|
66
|
-
]
|
67
|
-
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"licenses": [
|
3
|
-
{
|
4
|
-
"name": "CC-BY-SA",
|
5
|
-
"url": "http://creativecommons.org/licenses/by-sa/3.0/"
|
6
|
-
},
|
7
|
-
{
|
8
|
-
"name": "ODbL",
|
9
|
-
"url": "http://opendatacommons.org/licenses/odbl/summary/"
|
10
|
-
}
|
11
|
-
],
|
12
|
-
"results": [ ],
|
13
|
-
"status": {
|
14
|
-
"code": 403,
|
15
|
-
"message": "invalid API key"
|
16
|
-
},
|
17
|
-
"thanks": "For using an OpenCage Data API",
|
18
|
-
"timestamp": {
|
19
|
-
"created_http": "Thu, 07 Aug 2014 14:26:28 GMT",
|
20
|
-
"created_unix": 1407421588
|
21
|
-
},
|
22
|
-
"total_results": 0,
|
23
|
-
"we_are_hiring": "http://lokku.com/#jobs"
|
24
|
-
|
25
|
-
}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
{
|
2
|
-
|
3
|
-
"licenses": [
|
4
|
-
{
|
5
|
-
"name": "CC-BY-SA",
|
6
|
-
"url": "http://creativecommons.org/licenses/by-sa/3.0/"
|
7
|
-
},
|
8
|
-
{
|
9
|
-
"name": "ODbL",
|
10
|
-
"url": "http://opendatacommons.org/licenses/odbl/summary/"
|
11
|
-
}
|
12
|
-
],
|
13
|
-
"results": [ ],
|
14
|
-
"status": {
|
15
|
-
"code": 400,
|
16
|
-
"message": "Attribute (format) does not pass the type constraint because: not a valid format"
|
17
|
-
},
|
18
|
-
"thanks": "For using an OpenCage Data API",
|
19
|
-
"timestamp": {
|
20
|
-
"created_http": "Thu, 07 Aug 2014 14:27:29 GMT",
|
21
|
-
"created_unix": 1407421649
|
22
|
-
},
|
23
|
-
"total_results": 0,
|
24
|
-
"we_are_hiring": "http://lokku.com/#jobs"
|
25
|
-
|
26
|
-
}
|
@@ -1,73 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"licenses" : [
|
3
|
-
{
|
4
|
-
"name" : "CC-BY-SA",
|
5
|
-
"url" : "http://creativecommons.org/licenses/by-sa/3.0/"
|
6
|
-
},
|
7
|
-
{
|
8
|
-
"name" : "ODbL",
|
9
|
-
"url" : "http://opendatacommons.org/licenses/odbl/summary/"
|
10
|
-
}
|
11
|
-
],
|
12
|
-
"rate" : {
|
13
|
-
"limit" : 2500,
|
14
|
-
"remaining" : 2488,
|
15
|
-
"reset" : 1407369600
|
16
|
-
},
|
17
|
-
"results" : [
|
18
|
-
{
|
19
|
-
"annotations" : {
|
20
|
-
"OSM" : {
|
21
|
-
"url" : "http://www.openstreetmap.org/?mlat=40.75052&mlon=-73.99355#map=17/40.75052/-73.99355"
|
22
|
-
},
|
23
|
-
"timezone" : {
|
24
|
-
"name" : "America/New_York",
|
25
|
-
"now_in_dst" : 1,
|
26
|
-
"offset_sec" : -14400,
|
27
|
-
"offset_string" : -400,
|
28
|
-
"short_name" : "EDT"
|
29
|
-
}
|
30
|
-
},
|
31
|
-
"bounds" : {
|
32
|
-
"northeast" : {
|
33
|
-
"lat" : 40.751161,
|
34
|
-
"lng" : -73.9925922
|
35
|
-
},
|
36
|
-
"southwest" : {
|
37
|
-
"lat" : 40.7498531,
|
38
|
-
"lng" : -73.9944444
|
39
|
-
}
|
40
|
-
},
|
41
|
-
"components" : {
|
42
|
-
"country" : "United States of America",
|
43
|
-
"country_code" : "US",
|
44
|
-
"county" : "New York County",
|
45
|
-
"house_number" : 46,
|
46
|
-
"neighbourhood" : "Koreatown",
|
47
|
-
"postcode" : 10011,
|
48
|
-
"road" : "West 31st Street",
|
49
|
-
"city": "New York City",
|
50
|
-
"stadium" : "Madison Square Garden",
|
51
|
-
"state" : "New York",
|
52
|
-
"state_district" : "New York City"
|
53
|
-
},
|
54
|
-
"confidence" : 10,
|
55
|
-
"formatted" : "46, West 31st Street, Koreatown, New York County, 10011, New York City, New York, United States of America, Madison Square Garden",
|
56
|
-
"geometry" : {
|
57
|
-
"lat" : 40.7505247,
|
58
|
-
"lng" : -73.9935500942432
|
59
|
-
}
|
60
|
-
}
|
61
|
-
],
|
62
|
-
"status" : {
|
63
|
-
"code" : 200,
|
64
|
-
"message" : "OK"
|
65
|
-
},
|
66
|
-
"thanks" : "For using an OpenCage Data API",
|
67
|
-
"timestamp" : {
|
68
|
-
"created_http" : "Wed, 06 Aug 2014 12:53:59 GMT",
|
69
|
-
"created_unix" : 1407329639
|
70
|
-
},
|
71
|
-
"total_results" : 1,
|
72
|
-
"we_are_hiring" : "http://lokku.com/#jobs"
|
73
|
-
}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"licenses" : [
|
3
|
-
{
|
4
|
-
"name" : "CC-BY-SA",
|
5
|
-
"url" : "http://creativecommons.org/licenses/by-sa/3.0/"
|
6
|
-
},
|
7
|
-
{
|
8
|
-
"name" : "ODbL",
|
9
|
-
"url" : "http://opendatacommons.org/licenses/odbl/summary/"
|
10
|
-
}
|
11
|
-
],
|
12
|
-
"rate" : {
|
13
|
-
"limit" : 2500,
|
14
|
-
"remaining" : 2487,
|
15
|
-
"reset" : 1407369600
|
16
|
-
},
|
17
|
-
"results" : [],
|
18
|
-
"status" : {
|
19
|
-
"code" : 200,
|
20
|
-
"message" : "OK"
|
21
|
-
},
|
22
|
-
"thanks" : "For using an OpenCage Data API",
|
23
|
-
"timestamp" : {
|
24
|
-
"created_http" : "Wed, 06 Aug 2014 12:56:03 GMT",
|
25
|
-
"created_unix" : 1407329763
|
26
|
-
},
|
27
|
-
"total_results" : 0,
|
28
|
-
"we_are_hiring" : "http://lokku.com/#jobs"
|
29
|
-
}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
{
|
2
|
-
|
3
|
-
"licenses": [
|
4
|
-
{
|
5
|
-
"name": "CC-BY-SA",
|
6
|
-
"url": "http://creativecommons.org/licenses/by-sa/3.0/"
|
7
|
-
},
|
8
|
-
{
|
9
|
-
"name": "ODbL",
|
10
|
-
"url": "http://opendatacommons.org/licenses/odbl/summary/"
|
11
|
-
}
|
12
|
-
],
|
13
|
-
"rate": {
|
14
|
-
"limit": 1,
|
15
|
-
"remaining": 0,
|
16
|
-
"reset": null
|
17
|
-
},
|
18
|
-
"results": [ ],
|
19
|
-
"status": {
|
20
|
-
"code": 402,
|
21
|
-
"message": "quota exceeded"
|
22
|
-
},
|
23
|
-
"thanks": "For using an OpenCage Data API",
|
24
|
-
"timestamp": {
|
25
|
-
"created_http": "Thu, 07 Aug 2014 13:59:19 GMT",
|
26
|
-
"created_unix": 1407419959
|
27
|
-
},
|
28
|
-
"total_results": 0,
|
29
|
-
"we_are_hiring": "http://lokku.com/#jobs"
|
30
|
-
|
31
|
-
}
|
@@ -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 +0,0 @@
|
|
1
|
-
{"error":"Address not found"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"error":"Invalid IP address"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"ip":"80.111.555.555","continent_code":"EU","country_code":"IE","country_name":"Ireland","region_name":"Dublin City","region_code":"D8","city_name":"Dublin","postcode":"8","latitude":53.3331,"longitude":-6.2489,"time_zone":"Europe/Dublin"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"error":"Address not found"}
|
@@ -1 +0,0 @@
|
|
1
|
-
[{"Location":"Moseley Road, Hallow, Worcester","Easting":"381676","Northing":"259425","Latitude":"52.2327","Longitude":"-2.2697","OsGrid":"SO 81676 59425","Accuracy":"Standard"}]
|
@@ -1 +0,0 @@
|
|
1
|
-
[{"Error":"9999","Description":"A generic error","Cause":"A generic error occured.","Resolution":"Fix the unknown error."}]
|
@@ -1 +0,0 @@
|
|
1
|
-
[{"Location":"Hampshire","Easting":"448701","Northing":"126642","Latitude":"51.037","Longitude":"-1.3068","OsGrid":"SU 48701 26642","Accuracy":"Standard"}]
|
@@ -1 +0,0 @@
|
|
1
|
-
[{"Error":"8","Description":"Key daily limit exceeded","Cause":"The daily limit on the key has been exceeded.","Resolution":"Alter the daily limit on the key. Check the usage details first to see if usage is normal."}]
|
@@ -1 +0,0 @@
|
|
1
|
-
[]
|
@@ -1 +0,0 @@
|
|
1
|
-
[{"Location":"Romsey, Hampshire","Easting":"435270","Northing":"121182","Latitude":"50.9889","Longitude":"-1.4989","OsGrid":"SU 35270 21182","Accuracy":"Standard"}]
|
@@ -1 +0,0 @@
|
|
1
|
-
[{"Error":"2","Description":"Unknown key","Cause":"The key you are using to access the service was not found.","Resolution":"Please check that the key is correct. It should be in the form AA11-AA11-AA11-AA11."}]
|
@@ -1 +0,0 @@
|
|
1
|
-
[{"input_index":0,"city_states":[{"city":"Brooklyn","state_abbreviation":"NY","state":"New York"}],"zipcodes":[{"zipcode":"11211","zipcode_type":"S","county_fips":"36047","county_name":"Kings","latitude":40.71184,"longitude":-73.95288}]}]
|
@@ -1,47 +0,0 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"input_index": 0,
|
4
|
-
"candidate_index": 0,
|
5
|
-
"addressee": "Madison Sq Garden",
|
6
|
-
"delivery_line_1": "2 Penn Plz Fl 15",
|
7
|
-
"last_line": "New York NY 10121-1703",
|
8
|
-
"delivery_point_barcode": "101211703022",
|
9
|
-
"components": {
|
10
|
-
"primary_number": "2",
|
11
|
-
"street_name": "Penn",
|
12
|
-
"street_suffix": "Plz",
|
13
|
-
"secondary_number": "15",
|
14
|
-
"secondary_designator": "Fl",
|
15
|
-
"city_name": "New York",
|
16
|
-
"state_abbreviation": "NY",
|
17
|
-
"zipcode": "10121",
|
18
|
-
"plus4_code": "1703",
|
19
|
-
"delivery_point": "02",
|
20
|
-
"delivery_point_check_digit": "2"
|
21
|
-
},
|
22
|
-
"metadata": {
|
23
|
-
"record_type": "F",
|
24
|
-
"zip_type": "Standard",
|
25
|
-
"county_fips": "36061",
|
26
|
-
"county_name": "New York",
|
27
|
-
"carrier_route": "C038",
|
28
|
-
"congressional_district": "12",
|
29
|
-
"rdi": "Commercial",
|
30
|
-
"elot_sequence": "0035",
|
31
|
-
"elot_sort": "A",
|
32
|
-
"latitude": 40.74959,
|
33
|
-
"longitude": -73.99251,
|
34
|
-
"precision": "Zip7",
|
35
|
-
"time_zone": "Eastern",
|
36
|
-
"utc_offset": -5.0,
|
37
|
-
"dst": true
|
38
|
-
},
|
39
|
-
"analysis": {
|
40
|
-
"dpv_match_code": "Y",
|
41
|
-
"dpv_footnotes": "AABB",
|
42
|
-
"dpv_cmra": "N",
|
43
|
-
"dpv_vacant": "N",
|
44
|
-
"active": "Y"
|
45
|
-
}
|
46
|
-
}
|
47
|
-
]
|
@@ -1 +0,0 @@
|
|
1
|
-
[]
|
@@ -1 +0,0 @@
|
|
1
|
-
{"ip":"10.10.10.10"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"timezone":"America\/Chicago","isp":"Layered Technologies, Inc.","region_code":"TX","country":"United States","dma_code":"0","area_code":"0","region":"Texas","ip":"74.200.247.59","asn":"AS22576","continent_code":"NA","city":"Plano","postal_code":"75093","longitude":-96.8134,"latitude":33.0347,"country_code":"US","country_code3":"USA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"ip":"10.10.10.10"}
|
data/test/fixtures/yahoo_error
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"bossresponse":{"responsecode":"6000","reason":"internal error"}}
|