geocoder-kb 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +6 -0
- data/.travis.yml +31 -0
- data/CHANGELOG.md +384 -0
- data/LICENSE +20 -0
- data/README.md +1085 -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/examples/sidekiq_worker.rb +16 -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.rb +47 -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 +102 -0
- data/lib/geocoder/lookups/amap.rb +55 -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/geoip2.rb +40 -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/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/postcode_anywhere_uk.rb +51 -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/amap.rb +85 -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/geoip2.rb +64 -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/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/postcode_anywhere_uk.rb +42 -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 +289 -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/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/postcode_anywhere_uk_geocode_v2_00_WR26NJ +1 -0
- data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_generic_error +1 -0
- data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_hampshire +1 -0
- data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_key_limit_exceeded +1 -0
- data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_no_results +1 -0
- data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_romsey +1 -0
- data/test/fixtures/postcode_anywhere_uk_geocode_v2_00_unknown_key +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 +416 -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/geoip2_test.rb +27 -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/postcode_anywhere_uk_test.rb +70 -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 +294 -0
@@ -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
|
@@ -0,0 +1,67 @@
|
|
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
|
+
}
|
@@ -0,0 +1,25 @@
|
|
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
|
+
}
|
@@ -0,0 +1,26 @@
|
|
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
|
+
}
|
@@ -0,0 +1,73 @@
|
|
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
|
+
}
|