Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions poke.io.js
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,10 @@ function Pokeio() {
geocoder.geocode(locationName, function (err, data) {
if (err || data.status === 'ZERO_RESULTS') {
return callback(new Error('location not found'));
};

if (data.status == 'REQUEST_DENIED'){
return callback(new Error(data.error_message))
}

var _data$results$0$geome = data.results[0].geometry.location;
Expand Down