8000 Use numbered administrative level instead of named one by giosh94mhz · Pull Request #398 · geocoder-php/Geocoder · GitHub
[go: up one dir, main page]

Skip to content

Use numbered administrative level instead of named one #398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Feb 13, 2015
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
TomTom provider: handle "Developer Inactive" error
  • Loading branch information
giosh94mhz committed Feb 11, 2015
commit 813b2701bf706922363117a95ab81c2a1f7f5f1c
4 changes: 4 additions & 0 deletions src/Geocoder/Provider/TomTom.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ private function executeQuery($query)

$content = (string) $this->getAdapter()->get($query)->getBody();

if (false !== stripos($content, "Developer Inactive")) {
throw new InvalidCredentials('Map API Key provided is not valid.');
}

try {
$xml = new \SimpleXmlElement($content);
} catch (\Exception $e) {
Expand Down
0