We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4815c93 + 257ece1 commit 6108274Copy full SHA for 6108274
js/google_geocoder.js
@@ -70,9 +70,14 @@ function callBacker(selector) {
70
// outputDiv.innerHTML = '';
71
// origins[i] + ' to ' + destinations[j]
72
var results = response.rows[0].elements;
73
- outputDiv.html(', or via roads: '
74
- + results[0].distance.text.split(' ').join(' ') + ' in '
75
- + results[0].duration.text.split(' ').join(' ') + ' cycling');
+ if (results[0].status === "ZERO_RESULTS"){
+ // zip
+ }
76
+ else{
77
+ outputDiv.html('Via roads: '
78
+ + results[0].distance.text.split(' ').join(' ') + ' in '
79
+ + results[0].duration.text.split(' ').join(' ') + ' cycling');
80
81
}
82
};
83
0 commit comments