|
|
@ -27,7 +27,7 @@ $.ajax({ |
|
|
|
dataType: "json", |
|
|
|
dataType: "json", |
|
|
|
data: { |
|
|
|
data: { |
|
|
|
"text": "London, UK", |
|
|
|
"text": "London, UK", |
|
|
|
"api_key": "search-EEgHGcM" |
|
|
|
"api_key": "mapzen-xxxxxx" |
|
|
|
}, |
|
|
|
}, |
|
|
|
success: function( data, status, jqxhr ){ |
|
|
|
success: function( data, status, jqxhr ){ |
|
|
|
console.log( "Request received:", data ); |
|
|
|
console.log( "Request received:", data ); |
|
|
@ -49,7 +49,7 @@ $http({ |
|
|
|
headers: { "Accept": "application/json" }, |
|
|
|
headers: { "Accept": "application/json" }, |
|
|
|
params: { |
|
|
|
params: { |
|
|
|
"text": "London, UK", |
|
|
|
"text": "London, UK", |
|
|
|
"api_key": "api_key=mapzen-xxxxxx" |
|
|
|
"api_key": "mapzen-xxxxxx" |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
.success(function( data, status ) { |
|
|
|
.success(function( data, status ) { |
|
|
|