Google Developers Consoleで登録をして、「Google Maps Embed API」を有効にする
それからAPIキーを取得
Google Developers Console
https://console.developers.google.com/
$key = "APIキー";
$name = "住所";
$q = rawurlencode($name);
$url = "https://www.google.com/maps/embed/v1/place?key={$key}&q={$q}";
//地図を出力
echo "<iframe src=\"{$url}\" width=\"350%\" height=\"350\" ></iframe>";
youtube動画情報の取得
$videoId = "tA****gQQw"; //(ビデオID)
$feedURL = "http://gdata.youtube.com/feeds/api/videos/".$videoId;
//サルネイム取得
$thumbnail0 = $xml->children('http://search.yahoo.com/mrss/')->group->thumbnail[0]->attributes()->url;
$thumbnail1 = $xml->children('http://search.yahoo.com/mrss/')->group->thumbnail[1]->attributes()->url;
$thumbnail2 = $xml->children('http://search.yahoo.com/mrss/')->group->thumbnail[2]->attributes()->url;
//動画タイトル
$title = (string)$sxml->title;
http://nplll.com/archives/2009/02/api_php.php
参考URL
Google Maps APIのおさらい
http://lopan.jp/google-maps-api/
Google Maps Embed APIの使い方まとめ
http://syncer.jp/google-maps-embed-api-matome
【PHP】 APIを使って動画のサムネイルを取得するまとめ 【2009年版】
http://nplll.com/archives/2009/02/api_php.php