5
test/fixtures/geospatial/google_maps/api_key_invalid.json
vendored
Normal file
5
test/fixtures/geospatial/google_maps/api_key_invalid.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"error_message": "The provided API key is invalid.",
|
||||
"results": [],
|
||||
"status": "REQUEST_DENIED"
|
||||
}
|
||||
109
test/fixtures/geospatial/google_maps/geocode.json
vendored
Normal file
109
test/fixtures/geospatial/google_maps/geocode.json
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
{
|
||||
"plus_code": {
|
||||
"compound_code": "QR2V+M2 Lyon, France",
|
||||
"global_code": "8FQ6QR2V+M2"
|
||||
},
|
||||
"results": [
|
||||
{
|
||||
"address_components": [
|
||||
{
|
||||
"long_name": "10bis",
|
||||
"short_name": "10bis",
|
||||
"types": ["street_number"]
|
||||
},
|
||||
{
|
||||
"long_name": "Rue Jangot",
|
||||
"short_name": "Rue Jangot",
|
||||
"types": ["route"]
|
||||
},
|
||||
{
|
||||
"long_name": "Lyon",
|
||||
"short_name": "Lyon",
|
||||
"types": ["locality", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Rhône",
|
||||
"short_name": "Rhône",
|
||||
"types": ["administrative_area_level_2", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Auvergne-Rhône-Alpes",
|
||||
"short_name": "Auvergne-Rhône-Alpes",
|
||||
"types": ["administrative_area_level_1", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "France",
|
||||
"short_name": "FR",
|
||||
"types": ["country", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "69007",
|
||||
"short_name": "69007",
|
||||
"types": ["postal_code"]
|
||||
}
|
||||
],
|
||||
"formatted_address": "10bis Rue Jangot, 69007 Lyon, France",
|
||||
"geometry": {
|
||||
"location": { "lat": 45.751725, "lng": 4.8424966 },
|
||||
"location_type": "ROOFTOP",
|
||||
"viewport": {
|
||||
"northeast": { "lat": 45.7530739802915, "lng": 4.843845580291503 },
|
||||
"southwest": { "lat": 45.7503760197085, "lng": 4.841147619708499 }
|
||||
}
|
||||
},
|
||||
"place_id": "ChIJrW0QikTq9EcR96jk2OnO75w",
|
||||
"plus_code": {
|
||||
"compound_code": "QR2R+MX Lyon, France",
|
||||
"global_code": "8FQ6QR2R+MX"
|
||||
},
|
||||
"types": ["street_address"]
|
||||
},
|
||||
{
|
||||
"address_components": [
|
||||
{ "long_name": "9", "short_name": "9", "types": ["street_number"] },
|
||||
{
|
||||
"long_name": "Rue Jangot",
|
||||
"short_name": "Rue Jangot",
|
||||
"types": ["route"]
|
||||
},
|
||||
{
|
||||
"long_name": "Lyon",
|
||||
"short_name": "Lyon",
|
||||
"types": ["locality", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Rhône",
|
||||
"short_name": "Rhône",
|
||||
"types": ["administrative_area_level_2", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Auvergne-Rhône-Alpes",
|
||||
"short_name": "Auvergne-Rhône-Alpes",
|
||||
"types": ["administrative_area_level_1", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "France",
|
||||
"short_name": "FR",
|
||||
"types": ["country", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "69007",
|
||||
"short_name": "69007",
|
||||
"types": ["postal_code"]
|
||||
}
|
||||
],
|
||||
"formatted_address": "9 Rue Jangot, 69007 Lyon, France",
|
||||
"geometry": {
|
||||
"location": { "lat": 45.7518165, "lng": 4.8427168 },
|
||||
"location_type": "RANGE_INTERPOLATED",
|
||||
"viewport": {
|
||||
"northeast": { "lat": 45.7531654802915, "lng": 4.844065780291502 },
|
||||
"southwest": { "lat": 45.7504675197085, "lng": 4.841367819708497 }
|
||||
}
|
||||
},
|
||||
"place_id": "EiA5IFJ1ZSBKYW5nb3QsIDY5MDA3IEx5b24sIEZyYW5jZSIaEhgKFAoSCR8N2ItE6vRHEW9tyPnhQsUIEAk",
|
||||
"types": ["street_address"]
|
||||
}
|
||||
],
|
||||
"status": "OK"
|
||||
}
|
||||
62
test/fixtures/geospatial/google_maps/geocode_2.json
vendored
Normal file
62
test/fixtures/geospatial/google_maps/geocode_2.json
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"html_attributions": [],
|
||||
"result": {
|
||||
"address_components": [
|
||||
{
|
||||
"long_name": "10bis",
|
||||
"short_name": "10bis",
|
||||
"types": ["street_number"]
|
||||
},
|
||||
{
|
||||
"long_name": "Rue Jangot",
|
||||
"short_name": "Rue Jangot",
|
||||
"types": ["route"]
|
||||
},
|
||||
{
|
||||
"long_name": "Lyon",
|
||||
"short_name": "Lyon",
|
||||
"types": ["locality", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Rhône",
|
||||
"short_name": "Rhône",
|
||||
"types": ["administrative_area_level_2", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Auvergne-Rhône-Alpes",
|
||||
"short_name": "Auvergne-Rhône-Alpes",
|
||||
"types": ["administrative_area_level_1", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "France",
|
||||
"short_name": "FR",
|
||||
"types": ["country", "political"]
|
||||
},
|
||||
{ "long_name": "69007", "short_name": "69007", "types": ["postal_code"] }
|
||||
],
|
||||
"adr_address": "\u003cspan class=\"street-address\"\u003e10bis Rue Jangot\u003c/span\u003e, \u003cspan class=\"postal-code\"\u003e69007\u003c/span\u003e \u003cspan class=\"locality\"\u003eLyon\u003c/span\u003e, \u003cspan class=\"country-name\"\u003eFrance\u003c/span\u003e",
|
||||
"formatted_address": "10bis Rue Jangot, 69007 Lyon, France",
|
||||
"geometry": {
|
||||
"location": { "lat": 45.751725, "lng": 4.8424966 },
|
||||
"viewport": {
|
||||
"northeast": { "lat": 45.7531097802915, "lng": 4.843951380291502 },
|
||||
"southwest": { "lat": 45.7504118197085, "lng": 4.841253419708497 }
|
||||
}
|
||||
},
|
||||
"icon": "https://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png",
|
||||
"id": "4a3482a7a74c6203048adf713b736186c4ace7cd",
|
||||
"name": "10bis Rue Jangot",
|
||||
"place_id": "ChIJrW0QikTq9EcR96jk2OnO75w",
|
||||
"plus_code": {
|
||||
"compound_code": "QR2R+MX Lyon, France",
|
||||
"global_code": "8FQ6QR2R+MX"
|
||||
},
|
||||
"reference": "ChIJrW0QikTq9EcR96jk2OnO75w",
|
||||
"scope": "GOOGLE",
|
||||
"types": ["street_address"],
|
||||
"url": "https://maps.google.com/?q=10bis+Rue+Jangot,+69007+Lyon,+France&ftid=0x47f4ea448a106dad:0x9cefcee9d8e4a8f7",
|
||||
"utc_offset": 120,
|
||||
"vicinity": "Lyon"
|
||||
},
|
||||
"status": "OK"
|
||||
}
|
||||
55
test/fixtures/geospatial/google_maps/search.json
vendored
Normal file
55
test/fixtures/geospatial/google_maps/search.json
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"address_components": [
|
||||
{ "long_name": "10", "short_name": "10", "types": ["street_number"] },
|
||||
{
|
||||
"long_name": "Rue Jangot",
|
||||
"short_name": "Rue Jangot",
|
||||
"types": ["route"]
|
||||
},
|
||||
{
|
||||
"long_name": "Lyon",
|
||||
"short_name": "Lyon",
|
||||
"types": ["locality", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Rhône",
|
||||
"short_name": "Rhône",
|
||||
"types": ["administrative_area_level_2", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Auvergne-Rhône-Alpes",
|
||||
"short_name": "Auvergne-Rhône-Alpes",
|
||||
"types": ["administrative_area_level_1", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "France",
|
||||
"short_name": "FR",
|
||||
"types": ["country", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "69007",
|
||||
"short_name": "69007",
|
||||
"types": ["postal_code"]
|
||||
}
|
||||
],
|
||||
"formatted_address": "10 Rue Jangot, 69007 Lyon, France",
|
||||
"geometry": {
|
||||
"location": { "lat": 45.75164940000001, "lng": 4.8424032 },
|
||||
"location_type": "ROOFTOP",
|
||||
"viewport": {
|
||||
"northeast": { "lat": 45.75299838029151, "lng": 4.843752180291502 },
|
||||
"southwest": { "lat": 45.75030041970851, "lng": 4.841054219708497 }
|
||||
}
|
||||
},
|
||||
"place_id": "ChIJtW0QikTq9EcRLI4Vy6bRx0U",
|
||||
"plus_code": {
|
||||
"compound_code": "QR2R+MX Lyon, France",
|
||||
"global_code": "8FQ6QR2R+MX"
|
||||
},
|
||||
"types": ["street_address"]
|
||||
}
|
||||
],
|
||||
"status": "OK"
|
||||
}
|
||||
58
test/fixtures/geospatial/google_maps/search_2.json
vendored
Normal file
58
test/fixtures/geospatial/google_maps/search_2.json
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"html_attributions": [],
|
||||
"result": {
|
||||
"address_components": [
|
||||
{ "long_name": "10", "short_name": "10", "types": ["street_number"] },
|
||||
{
|
||||
"long_name": "Rue Jangot",
|
||||
"short_name": "Rue Jangot",
|
||||
"types": ["route"]
|
||||
},
|
||||
{
|
||||
"long_name": "Lyon",
|
||||
"short_name": "Lyon",
|
||||
"types": ["locality", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Rhône",
|
||||
"short_name": "Rhône",
|
||||
"types": ["administrative_area_level_2", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "Auvergne-Rhône-Alpes",
|
||||
"short_name": "Auvergne-Rhône-Alpes",
|
||||
"types": ["administrative_area_level_1", "political"]
|
||||
},
|
||||
{
|
||||
"long_name": "France",
|
||||
"short_name": "FR",
|
||||
"types": ["country", "political"]
|
||||
},
|
||||
{ "long_name": "69007", "short_name": "69007", "types": ["postal_code"] }
|
||||
],
|
||||
"adr_address": "\u003cspan class=\"street-address\"\u003e10 Rue Jangot\u003c/span\u003e, \u003cspan class=\"postal-code\"\u003e69007\u003c/span\u003e \u003cspan class=\"locality\"\u003eLyon\u003c/span\u003e, \u003cspan class=\"country-name\"\u003eFrance\u003c/span\u003e",
|
||||
"formatted_address": "10 Rue Jangot, 69007 Lyon, France",
|
||||
"geometry": {
|
||||
"location": { "lat": 45.75164940000001, "lng": 4.842403200000001 },
|
||||
"viewport": {
|
||||
"northeast": { "lat": 45.7530412802915, "lng": 4.843668630291503 },
|
||||
"southwest": { "lat": 45.75034331970851, "lng": 4.840970669708498 }
|
||||
}
|
||||
},
|
||||
"icon": "https://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png",
|
||||
"id": "61b9418d092d2ed05ddd65a55dddefda5b9628cc",
|
||||
"name": "10 Rue Jangot",
|
||||
"place_id": "ChIJtW0QikTq9EcRLI4Vy6bRx0U",
|
||||
"plus_code": {
|
||||
"compound_code": "QR2R+MX Lyon, France",
|
||||
"global_code": "8FQ6QR2R+MX"
|
||||
},
|
||||
"reference": "ChIJtW0QikTq9EcRLI4Vy6bRx0U",
|
||||
"scope": "GOOGLE",
|
||||
"types": ["street_address"],
|
||||
"url": "https://maps.google.com/?q=10+Rue+Jangot,+69007+Lyon,+France&ftid=0x47f4ea448a106db5:0x45c7d1a6cb158e2c",
|
||||
"utc_offset": 120,
|
||||
"vicinity": "Lyon"
|
||||
},
|
||||
"status": "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user