CINXE.COM

Search for routes/timetables|Tokyu Bus

<!DOCTYPE html> <html lang="en"> <head> <link rel="canonical" href="https://transfer.navitime.biz/tokyubus-eng/pc/map/Top"> <title> Search for routes/timetables|Tokyu Bus</title> <meta name="DESCRIPTION" content=""> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="format-detection" content="telephone=no"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Style-Type" content="text/css"/> <meta http-equiv="Content-Script-Type" content="text/javascript"/> <meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="Cache-Control" content="no-cache"/> <meta http-equiv="Expires" content="0"/> <link rel="icon" href="/blt-storage/pc/img/tokyubus-eng/favicon.ico?v=3.7.5" /> <link rel="apple-touch-icon" href="/blt-storage/sp/img/tokyubus-eng/apple-touch-icon.png?v=2.23.1.2" /> <link rel="stylesheet" type="text/css" media="all" href="/blt-storage/sp/css/default/top/topstyle.20230627.css"> <link rel="stylesheet" type="text/css" media="all" href="/blt-storage/sp/css/tokyubus-eng/min/tokyubus-eng.min.css?v=3.9.24.2"> <script type="text/javascript" charset="utf-8"><!-- //スクリプト内の文言差し替え var INFO_00011 = ''; var INFO_00033 = 'DPT'; var INFO_00088 = 'search results'; var INFO_00139 = 'There is no history.'; var INFO_30003 = 'Station'; var INFO_30004 = 'Bus stops'; var INFO_30009 = 'Search for timetables'; var INFO_30060 = 'station/bus stop name'; var INFO_30060_1 = '???INFO_30060_1???'; var INFO_30063 = 'No search histories'; var INFO_30141 = 'Show all'; var INFO_30142 = 'Close'; var INFO_30211 = '???INFO_30211???'; var INFO_30212 = 'Enter a search word.'; var INFO_30213 = '???INFO_30213???'; var INFO_30214 = 'See on map'; var INFO_30215 = 'the around'; var INFO_30216 = 'was not found'; var INFO_30217 = 'could not be obtained.'; var INFO_30218 = 'does not exist, or there is a possibility that the GPS function of the terminal is not enabled. Please check the settings of the terminal to be used.'; var INFO_30219 = 'Station & Bus stops'; var INFO_30220 = '???INFO_30220???'; var INFO_30233 = 'Search failed. From at a time, please re-search again.'; var INFO_30245 = '???INFO_30245???'; var INFO_30246 = '???INFO_30246???'; var INFO_30247 = 'It looks like it can not get your location in your browser settings. Check on the setting, please try again.'; var INFO_30248 = '???INFO_30248???'; var INFO_30249 = '???INFO_30249???'; var INFO_30250 = 'bus stop'; var INFO_30251 = 'station'; var INFO_30252 = '???INFO_30252???'; var INFO_30253 = ''; var INFO_30254 = 'not found.'; var INFO_30255 = 'cannot get.'; var INFO_30256 = 'does not exist, there is a possibility that the GPS of your smartphone is not enabled. Please use, review the settings of the smartphone.'; var INFO_30261 = '???INFO_30261???'; var INFO_30262 = '???INFO_30262???'; var INFO_30263 = '???INFO_30263???'; var INFO_00085 = 'Delete all history'; var INFO_00086 = 'Do you delete all the histories?'; var INFO_30027 = 'station/bus stop name'; var INFO_30028 = 'station/bus stop name'; var INFO_30224 = 'More'; var INFO_10378 = 'Station/Bus stop'; var INFO_30274 = '&nbsp;Station'; var INFO_30292 = 'station/bus stop name'; var INFO_31037 = '???INFO_31037???'; var INFO_00039 = 'DPT place'; var INFO_10172 = 'ARV'; var INFO_10374 = 'Via location'; var INFO_30307 = ''; var INFO_30308 = ''; var INFO_30309 = ''; var INFO_30352 = ''; var INFO_30370 = '???INFO_30370???'; var INFO_30371 = '???INFO_30371???'; var INFO_30372 = '???INFO_30372???'; var INFO_31024 = 'Search by reading'; var INFO_31030 = 'Choose from routes'; var INFO_30771 = '???INFO_30771???'; var INFO_30772 = '???INFO_30772???'; var INFO_30773 = '???INFO_30773???'; var INFO_30774 = '???INFO_30774???'; var INFO_30775 = '???INFO_30775???'; var INFO_30776 = '???INFO_30776???'; var INFO_30777 = '???INFO_30777???'; var INFO_30778 = '???INFO_30778???'; var INFO_30779 = '???INFO_30779???'; var INFO_30790 = '???INFO_30790???'; var INFO_30791 = '???INFO_30791???'; var ERROR_00039 = 'Bus stop name has not been input.'; var ERROR_00066 = '出発地にバス停を指定してください'; var ERROR_00067 = '到着地にバス停を指定してください'; var ERROR_00068 = 'Please turn on the positional information service of the browser'; var ERROR_00069 = 'It can not decide the device location'; var ERROR_00070 = 'Timed out'; //--></script> <script type="text/javascript" src="/blt-storage/sp/lib/top/topscript.20240404.js"></script> <script type="text/javascript" src="/blt-storage/sp/lib/common/min/jquery.carouFredSel-6.0.4-packed.js"></script> <script type="text/javascript" src="/blt-storage/sp/lib/common/jquery.bxslider.min.js"></script> </head> <body> <div id="content-body"> <div id="company-id" data-base="tokyubus-eng"></div> <header id="main-header"> <div class="header-img-tokyubus-eng"> <a href="/tokyubus-eng/smart/top/Top" target="_top" title="Tokyu Bus" class="header-link"> </a> </div> <div id="language-switch-button"> <a href="javascript:void(0);" onclick="location.href = location.href.replace('tokyubus-eng/', 'tokyubus/');return false;" >JPN</a> <a href="javascript:void(0);" onclick="location.href = location.href.replace('tokyubus/', 'tokyubus-eng/');return false;" class="checked">ENG</a> </div> <a href="javascript:void(0);" class="drawer-btn"> <img src="/blt-storage/sp/img/common/menu.png" alt="メニュー" /> </a> </header> <div id="drawer-area"> <div class="title">Menu</div> <ul class="drawer-area"> <li class="menu"><a href="/tokyubus-eng/smart/top/Top?window=transfer">Fare/Route</a></li> <li class="menu"><a href="/tokyubus-eng/smart/top/Top?window=diagram">Bus stop Search</a></li> <li class="menu"><a href="/tokyubus-eng/smart/top/Top?window=depArrTimeList">Timetable</a></li> <li class="menu"><a href="/tokyubus-eng/smart/top/Top?window=busLocation">Bus location</a></li> </ul> </div> <div class="bus-app-link-header-area"> <a href="https://static.cld.navitime.jp/smartstorage/android_bus/html/dl/link.html"> <img src="/blt-storage/sp/img/tokyubus-eng/app/bus_navitime.png" alt="BUS NAVITIME"/> </a> </div> <div id="top-page"> <div class="info-content-area" id="information"> </div> <div id="top-menu-container"> <menu id="top-menu" role="heading" aria-level="1"> <li id="tab-transfer" role="heading" aria-level="1"> <a href="javascript:void(0);"> <div>Fare/Route</div> </a> </li> <li id="tab-diagram" role="heading" aria-level="1"> <a href="javascript:void(0);" > <div>Bus stop Search</div> </a> </li> <li id="tab-busLocation" role="heading" aria-level="1"> <a href="javascript:void(0);" > <div>Bus location</div> </a> </li> <li id="tab-depArrTimeList" role="heading" aria-level="1"> <a href="javascript:void(0);" > <div>Timetable</div> </a> </li> </menu> </div> <div class="tab-content-area"> <div class="transfer"></div> <div class="diagram" style="display: none;"></div> <div class="depArrTimeList" style="display: none;"></div> <div class="busLocation" style="display: none;"></div> </div> <img src="/blt-storage/counter/tokyubus-eng/null.gif?p=smart.top.top&amp;window=busLocation&amp;t=1732393550386" width="0" height="0" style="display: none;" alt=""/> <!-- 全社共通で入れるNAVITIME管理のGA4タグ (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-ERE9M72P1S"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-ERE9M72P1S'); </script> <!-- NAVITIME管理のUAタグ(TODO:2023年7月以降に消す) --> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', "UA-31915090-1"]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <div id="use-link"> <a href="/tokyubus-eng/smart/disclaimer/DisclaimerInformation" class="box-left"> <div class="arrow-right-icon"></div> <div style="padding-left: 4px;">Terms of use</div> </a> </div> <div id="induce-pc-site-link"> <a href="javascript:void(0);" onclick="navitime.blt.util.redirect.sendOtherDevice('pc', '/pc/map/Top', true);">PC Site</a> </div> <div id="company-top-link"> <a href="https://tokyu.bus-location.jp/blsys/navis" class="box-left"> <div class="footer-link-title">Tokyu Bus-navi</div> </a> <a href="https://www.tokyubus.co.jp/" class="box-left"> <div class="footer-link-title">Tokyu Bus Corporation</div> </a> <a href="https://www.tokyubus.co.jp/route/routemap/" class="box-left"> <div class="footer-link-title">route map</div> </a> </div> <script src="/blt-storage/sp/lib/common/redirect.js"></script> </div> </div> <div id="popup-area"> <header id="popup-header"> <div class="inner-class"> <div style="width: 75%; position: relative;"> <input id="suggest-keyword" name="keyword" type="text" value="" placeholder="station/bus stop name" autocomplete="off" /> <input type="reset" value="リセット" class="reset" onclick="Suggest.refresh();"> <input name="keyword" type="hidden" value="" /> </div> <div class="close-popup-btn" onclick="Suggest.refresh();Popup.close();">Cancel</div> </div> </header> <div class="suggest-area"></div> <footer id="popup-footer"> <div class="landmark-link landmark-link-suggest"> <div class="landmark-icon"></div> <div class="landmark-text">Search by the landmark, map.</div> </div> </footer> </div> <div id="modal-overlay"> <div id="commentaryModal"> </div> </div> <div id="service-id" data-service-id="tokyubus-eng"></div> <div id="train-location-api" data-train-location-api="https://yokohama.train-location.transfer.navitime.biz"></div> <input type="hidden" id="actionWindow" value="busLocation"> <input type="hidden" id="paramFrom" value=""> <input type="hidden" id="paramType" value=""> <input type="hidden" id="actionTransferErrId" value=""> <input type="hidden" id="paramOrvCode" value=""> <input type="hidden" id="paramTransferOrvName" value=""> <input type="hidden" id="paramOrvPosType" value=""> <input type="hidden" id="paramDnvCode" value=""> <input type="hidden" id="paramTransferDnvName" value=""> <input type="hidden" id="paramDnvPosType" value=""> <input type="hidden" id="paramVia1Code" value=""> <input type="hidden" id="paramVia1Name" value=""> <input type="hidden" id="paramVia1PosType" value=""> <input type="hidden" id="paramVia2Code" value=""> <input type="hidden" id="paramVia2Name" value=""> <input type="hidden" id="paramVia2PosType" value=""> <input type="hidden" id="paramVia3Code" value=""> <input type="hidden" id="paramVia3Name" value=""> <input type="hidden" id="paramVia3PosType" value=""> <input type="hidden" id="paramBasis" value=""> <input type="hidden" id="paramDay" value=""> <input type="hidden" id="paramHour" value=""> <input type="hidden" id="paramMinute" value=""> <input type="hidden" id="paramMethod" value=""> <input type="hidden" id="paramSort" value=""> <input type="hidden" id="paramUtrexprs" value=""> <input type="hidden" id="paramWspeed" value=""> <input type="hidden" id="paramUseRomancecar" value="false"> <input type="hidden" id="unuse" value=""> <input type="hidden" id="actionDiagramErrId" value=""> <input type="hidden" id="paramDiagramOrvCode" value=""> <input type="hidden" id="paramDiagramDnvCode" value=""> <input type="hidden" id="actionDiagramOrvName" value=""> <input type="hidden" id="actionDiagramDnvName" value=""> <input type="hidden" id="paramDiagramOrvPosType" value=""> <input type="hidden" id="paramDiagramDnvPosType" value=""> <input type="hidden" id="smartBusLocationArrUseFlag" value="false"> <input type="hidden" id="paramNiigatabrtMethod" value=""> <input type="hidden" id="initialLineForTrainLocation" value=""> <input type="hidden" id="initialNodeIdForTrainLocation" value=""> <input type="hidden" id="transferId" value="tokyubus-eng"> <input type="hidden" id="busNavitimeDlBannerDiagramTopImageUrl" value=''> <input type="hidden" id="busNavitimeDlBannerDiagramTopUrl" value=''> <input type="hidden" id="busNavitimeDlBannerApproachingTopImageUrl" value=''> <input type="hidden" id="busNavitimeDlBannerApproachingTopUrl" value=''> <input type="hidden" id="busNavitimeDlBannerDirectTimetableTopImageUrl" value=''> <input type="hidden" id="busNavitimeDlBannerDirectTimetableTopUrl" value=''> <input type="hidden" id="busNavitimeDlBannerRouteTopImageUrl" value=''> <input type="hidden" id="busNavitimeDlBannerRouteTopUrl" value=''> <input type="hidden" id="useConfirm" value="true"> <input type="hidden" id="smartBusLocationMapSearchUseFlag" value="true"> <input type="hidden" id="ntjStartId" value=""> <input type="hidden" id="ntjStartName" value=""> <input type="hidden" id="ntjGoalId" value=""> <input type="hidden" id="ntjGoalName" value=""> <input type="hidden" id="parentUrl" value=""> </body> <script type="text/javascript"> window.addEventListener("load", function(){setTimeout(function(){if(window.pageYOffset===0){window.scrollTo(0,1);}}, 100);}, false); var $ntCtl = new $.NT_TOUCH_CTL({'hideAddressBar' : false}); // 共通 var localStorageCtl = new LOCAL_STORAGE_CTL(); // Top画面 var topUiCtl = new TOP_UI_CTL({'pageId':'top-page'}); // 地点設定画面を表示した場合 $("#top-page").live("hide",function(){ topUiCtl.hideMenu(); //メニューの非表示 }); // 地点設定画面の閉じた場合 $("#top-page").live("show",function(){ topUiCtl.showMenu(); //メニューの非表示 }); var $swipeTabsContainer = $("#top-menu"); var tabnum = $swipeTabsContainer.find('li').length; var slickMenu = null; if (tabnum > 3) { if(false){ slickMenu = $swipeTabsContainer.slick({ slidesToShow: tabnum, slidesToScroll: 1, arrows: false, infinite: false, swipeToSlide: true, edgeFriction: 0.1, responsive: [ { // iPhoneSE横幅未満の場合、3.5タブ表示 breakpoint: 320, settings: { slidesToShow: 3.5, } } ] }); }else{ slickMenu = $swipeTabsContainer.slick({ slidesToShow: tabnum, slidesToScroll: 1, arrows: false, infinite: false, swipeToSlide: true, edgeFriction: 0.1, responsive: [ { // iPhoneSE横幅未満の場合、3.5タブ表示 breakpoint: 568, settings: { slidesToShow: 3.5, } } ] }); } } var Suggest = null; var Popup = null; var $topPage = $("#top-page"); var currentTab = null; $(function(){ $(window).load(function () { var transferId = $("#company-id").data('base'); Popup = new navitime.blt.top.Popup("popup-area","content-body",slickMenu); Suggest = new navitime.blt.top.Suggest({'id':transferId, 'popupAreaId':'popup-area'}); $(".landmark-top-link").show(); if("tokyubus-eng" === "meitetsu-transfer-touch" && $("#paramFrom").val() !== "easy"){ _clearCookie(); } }); //「ランドマーク・地図から探す」リンクをbind // 画面上部のランドマークリンク var event = 'ontouchstart' in window ? 'touchstart' : 'click'; if($(".landmark-link").size() !== 0){ $(".landmark-link").bind(event,function(){ var tab = $("menu#top-menu li.active").attr("id").split("-"); var url = '/tokyubus-eng/smart/searchmap/Top?from=' + tab[1]; var i = 1; for( ; i<=3; i++) { if(!$("#via"+i+"StationCode").val() && !$("#via"+i).val()) { break; } } url += "&viaTarget=" + i; location.href = url; }); } // サジェスト画面下部のランドマークリンク $(".landmark-link-suggest").bind(event,function(){ Suggest.addSearchmapLink('tokyubus-eng'); }); //異なるサービスを開いた場合にはcookieをリセットする var transferIdCookie = _getCookie("transferId"); if(!_getCookie("transferId") ||_getCookie("transferId").indexOf("tokyubus-eng") == -1){ _clearCookie(); } setCookie( "transferId", "tokyubus-eng" ,"","/","","" ); // サービスメニューのタブ切り替え $topPage.find("> div > menu li").click(function(event){ if(!$(this).is(".active")){ var func = (function(self){ return function(){ var $li = $topPage.find("> div > menu li"); $li.removeClass("active"); var tabIndex = $li.index(self); $li.eq(tabIndex).addClass("active"); var selectTab = self.id.split("-")[1]; // ポップアップ表示 var targetStr = window.location.search.match(/target=(.+?)&/); if ((!targetStr || targetStr.length === 0 )) { try { if(!currentTab) { transferPosSettingListCtl.showNoticeModal(selectTab); } else { transferPosSettingListCtl.commentaryShowOperationModal(selectTab); } } catch (error) { // transferPosSettingListCtl がまだオブジェクとして生成前の場合にエラーになりここに入る。その場合は処理を無視します。 } } currentTab = selectTab; if(storageAvailable('sessionStorage')){ // WebStorageAPIが利用できる場合のみ、直近アクティブタブを保存 sessionStorage.setItem("lastUsedTabIndex", tabIndex); sessionStorage.setItem("lastUsedTabName", selectTab); } var $content = $topPage.find("> .tab-content-area > div"); $content.hide(); if (selectTab === "busLocation" || selectTab === "depArrTimeList") { $content.filter(".transfer").show(); } else { //名鉄touchは、「乗換検索」タブ非表示でtabIndexがズレるため if("tokyubus-eng" === "meitetsu-transfer-touch") { $content.filter("." + selectTab).show(); } else { $content.eq(tabIndex).show(); } } if ("tokyubus-eng".match("meitetsu-transfer")) { if (selectTab === "depArrTimeList") { $("#route-history").hide(); } else { $("#route-history").show(); } } // タブのビュー切り替え switchContents(selectTab, true); // お知らせタブ // TODO // TopServiceImpl.javaから取得する乗換案内と時刻表のお知らせタブを統一する // 影響範囲: SQL, Java, info.jsp, top.jsp // <経緯> // お知らせ情報が乗換案内、時刻表でDB上2種類あり,参照するデータが微妙に異なる。 // これを統一すると、修正範囲が大きくなるため BLT-2364では対応見送りとした。 // カラム: t_information/transfer_top_flg と diagram_top_flg var $infocontent = $topPage.find("> .info-content-area > div"); $infocontent.hide(); $topPage.find('.message-detail').hide(); if (tabIndex === 0){ // 0:乗換案内用 お知らせ $infocontent.eq(0).show(); } else { // 1:時刻表用 お知らせ $infocontent.eq(1).show(); } // アクティブタブを全面表示するためにスライドさせる if (tabnum > 3) { $swipeTabsContainer.slick('slickGoTo', tabIndex, false); if ("".indexOf("depArrTimeList") > -1 && tabIndex === 3){ //初期表示タブを発着時刻表にしている会社の場合、tabIndexが3以外をスライドさせます。 if(tabIndex !== 3){ $swipeTabsContainer.slick('slickNext'); } } else if(tabIndex !== 0){ $swipeTabsContainer.slick('slickNext'); } } } })(this); setTimeout(func,300); } }); // アクティブタブの設定 if( document.getElementById('paramFrom').value === "easy"){ // カンタン入力から再表示する場合、直近アクティブだったタブを表示する if(storageAvailable('sessionStorage')){ $topPage.find("> div > menu li").eq(sessionStorage.getItem("lastUsedTabIndex")).trigger("click"); } else { // WebStorageAPIが利用できない場合 パラメータ'window'を基にタブをアクティブにする。 // 注意: 発着時刻表タブはwindow=transferであるため、乗換案内がアクティブになってしまう。 topUiCtl.openWindow({'window':document.getElementById('actionWindow').value}); } } else { topUiCtl.openWindow({'window':document.getElementById('actionWindow').value}); } var ntjGoalId = document.getElementById('ntjGoalId').value; var ntjGoalName = document.getElementById('ntjGoalName').value; var ntjGoalValue = (ntjGoalId && ntjGoalName) ? "0.0." + ntjGoalId + "." + ntjGoalName : undefined; var ntjStartId = document.getElementById('ntjStartId').value; var ntjStartName = document.getElementById('ntjStartName').value; var ntjStartValue = (ntjStartId && ntjStartName) ? "0.0." + ntjStartId + "." + ntjStartName : undefined; // 乗換Topページの取得 $.when( $.ajax({ dataType: 'html', cache: false, url: '/tokyubus-eng/smart/transfer/TransferTop', data: { 'pathType' :'body', 'type' : document.getElementById('paramType').value, 'transferErrId' : document.getElementById('actionTransferErrId').value, 'orvCode' : document.getElementById('paramOrvCode').value, 'orvName' : document.getElementById('paramTransferOrvName').value, 'orvPosType' : document.getElementById('paramOrvPosType').value, 'dnvCode' : document.getElementById('paramDnvCode').value, 'dnvName' : document.getElementById('paramTransferDnvName').value, 'dnvPosType' : document.getElementById('paramDnvPosType').value, 'via1Code' : document.getElementById('paramVia1Code').value, 'via1Name' : document.getElementById('paramVia1Name').value, 'via1PosType' : document.getElementById('paramVia1PosType').value, 'via2Code' : document.getElementById('paramVia2Code').value, 'via2Name' : document.getElementById('paramVia2Name').value, 'via2PosType' : document.getElementById('paramVia2PosType').value, 'via3Code' : document.getElementById('paramVia3Code').value, 'via3Name' : document.getElementById('paramVia3Name').value, 'via3PosType' : document.getElementById('paramVia3PosType').value, 'basis' : document.getElementById('paramBasis').value, 'day' : document.getElementById('paramDay').value, 'hour' : document.getElementById('paramHour').value, 'minute' : document.getElementById('paramMinute').value, 'method' : document.getElementById('paramMethod').value, 'sort' : document.getElementById('paramSort').value, 'utrexprs' : document.getElementById('paramUtrexprs').value, 'wspeed' : document.getElementById('paramWspeed').value, 'useRomancecar' : document.getElementById('paramUseRomancecar').value, 'unuse' : document.getElementById('unuse').value, 'ntjStartName' : document.getElementById('ntjStartName').value, 'ntjStartValue' : ntjStartValue, 'ntjGoalName' : document.getElementById('ntjGoalName').value, 'ntjGoalValue' : ntjGoalValue, 'parentUrl' : document.getElementById('parentUrl').value, 'niigatabrtMethod' : document.getElementById('paramNiigatabrtMethod').value }, success: function(data, dataType){ $("#top-page .tab-content-area .transfer").append(data); transferPosSettingListCtl = new TRANSFER_POS_SETTING_LIST_CTL({ 'localStorageCtl':localStorageCtl, 'geolocationCtl' :_location, 'pageType' :'transfer', 'offset' :0, 'limit' :10, 'serviceId' :'tokyubus-eng', 'searchType' :'all', }); transferCtl = new NT_TRANSFER({ "year" :"", "month" :"", "day" :"", "hour" :"", "minute" :"", "dayTarget" :"dayTarget", "hourTarget" :"hourTarget", "minuteTarget" :"minuteTarget", "addMinuteTarget" :"addMinuteTarget", "errorFrame" :"errorFrame", "unInputErrorMessage" :"Bus stop name has not been input.", "straightPointErrorMessage" :"Have been set the same point continuously.", "sameErrorMessage" :"DPT and ARV places are the same.", "diagramExcludeNodeErrorMessage":"is not covered by timetable search" }); //地点設定画面のタブ切り替え(カンタン検索) var $subPage = $("#transfer-sub-page"); if($subPage.find("menu li").size()>0){ $subPage.find("menu li").click(function(event){ if(!$(this).is(".active")){ var func = (function(self){ return function(){ var $li = $subPage.find("menu li"); $li.removeClass("active"); var num = $li.index(self); $li.eq(num).addClass("active"); var $content = $subPage.find(".pos-setting-tab-content-area > div"); $content.hide(); $content.eq(num).show(); } })(this); setTimeout(func,200); } event.preventDefault(); }); //バスロケタブ表示設定を保持しているユーザーはバスロケ関連の履歴を表示します。 if ($('#busLocation-history-deparr')){ transferPosSettingListCtl.showBusLocationHistoryList(); } if ($('#busLocation-history-course')){ transferPosSettingListCtl.showBusOperationHistoryList(); } } // 発着時刻表タブ・バスロケタブと乗換案内タブのビュー切り替え // リクエストパラメーターのwindowの指定が最優先。設定で初期タブ指定がある場合は次点で優先する。 if ( window.location.search.indexOf("depArrTimeList") > -1) { switchContents("depArrTimeList"); transferPosSettingListCtl.showNoticeModal("depArrTimeList"); }else if ( window.location.search.indexOf("busLocation") > -1) { switchContents("busLocation"); transferPosSettingListCtl.showNoticeModal("busLocation"); }else if ( window.location.search.indexOf("transfer") === -1 && "".indexOf("depArrTimeList") > -1) { switchContents(""); transferPosSettingListCtl.showNoticeModal(""); } else { switchContents("transfer"); transferPosSettingListCtl.showNoticeModal("transfer"); } // 出発地、到着地、経由地の入力欄をリセットする // ※以降の処理でcookieから再度設定する var $transfer_main_page = $("#transfer-main-page"); $transfer_main_page.find("input[name=startName]").val(""); $transfer_main_page.find("input[name=goalName]" ).val(""); $transfer_main_page.find("input[name=via1Name]" ).val(""); $transfer_main_page.find("input[name=via2Name]" ).val(""); $transfer_main_page.find("input[name=via3Name]" ).val(""); // 乗換案内タブを初期表示する際の処理 // 補足: URLパラメータに"transfer"が含まれなくても乗換案内タブを // 初期表示する場合(再検索など)があるため、下記条件としている。 if(window.location.search.indexOf("diagram") == -1){ // リクエストパラメータ取得 var targetParam = window.location.search.match(/target=(.+?)&/); var target = ""; if(targetParam && targetParam.length > 1) { if(targetParam[1] === "orv") { target = "start"; } else if(targetParam[1] === "dnv") { target = "goal"; } else if(targetParam[1].lastIndexOf("via",0) === 0) { target = targetParam[1]; } } // 遷移元に応じた処理分岐 if(window.location.search.indexOf("type=poi") != -1){ var targetForm; if(window.location.search.indexOf("orv") != -1) { targetForm = "orv"; } else if(window.location.search.indexOf("dnv") != -1) { targetForm = "dnv"; } else if(window.location.search.match(/via\d/).length > 0) { targetForm = window.location.search.match(/via\d/)[0]; } var codeValue = $transfer_main_page.find("input[name=" + targetForm +"Code]").val(); //JSON作成 var array = codeValue.split(','); var obj = { "lat" : array[0], "lon" : array[1] , "name" : array[3] , "spot" : array[4] }; var JsonValue = JSON.stringify(obj, null, ""); setCookie(target, JsonValue, "","/","",""); setCookie(target + "PosType", $transfer_main_page.find("input[name=" + targetForm +"PosType]").val(), "","/","",""); }else if(window.location.search.indexOf("from=research") != -1){ //再検索の場合 console.log("research"); var orvCodeValue = $transfer_main_page.find("input[name=orvCode]").val(); var dnvCodeValue = $transfer_main_page.find("input[name=dnvCode]").val(); setCookie( "start", orvCodeValue ,"","/","","" ); setCookie( "goal", dnvCodeValue ,"","/","","" ); setCookie( "startPosType", $transfer_main_page.find("input[name=orvPosType]").val() ,"","/","","" ); setCookie( "goalPosType", $transfer_main_page.find("input[name=dnvPosType]").val() ,"","/","","" ); }else if (ntjGoalValue || ntjStartValue){ // 外部からIDと名称を指定して遷移してきた場合 if (ntjStartValue) { var orvCodeValue = $transfer_main_page.find("input[name=orvCode]").val(); setCookie( "start", orvCodeValue ,"","/","","" ); setCookie( "startPosType", $transfer_main_page.find("input[name=orvPosType]").val() ,"","/","","" ); } if (ntjGoalValue) { var dnvCodeValue = $transfer_main_page.find("input[name=dnvCode]").val(); setCookie("goal", dnvCodeValue, "", "/", "", ""); setCookie("goalPosType", $transfer_main_page.find("input[name=dnvPosType]").val(), "", "/", "", ""); } } else { // それ以外(地図画面から遷移する場合など) var tempCodeVal = $transfer_main_page.find("#" + target + "StationCode").val(); if (tempCodeVal) { var CookieVal = tempCodeVal.split("."); <!--「F.B.T」のように停留場名に「.」が含まれる場合正常に動作しないため修正 --> if (CookieVal.length > 3) { var copy = CookieVal.slice(); var jointStopName = ""; for (var i = 3; i < copy.length; i++) { jointStopName += CookieVal[i]; if (i != CookieVal.length - 1) { jointStopName += "."; } } CookieVal = tempCodeVal.split(".", 3); CookieVal.push(jointStopName); } setCookie(target + "PosType", $transfer_main_page.find("#" + target + "PosType").val(), "", "/", "", ""); } setCookie(target, tempCodeVal, "", "/", "", ""); } // 再検索以外に検索結果から遷移した場合、保持していたパラメータを捨てる if (document.referrer.indexOf("TransferSearch") != -1 && window.location.search.indexOf("from=research") == -1) { setCookie("start", "", "", "/", "-1", ""); setCookie("goal", "", "", "/", "-1", ""); setCookie("startPosType", "", "", "/", "-1", ""); setCookie("goalPosType", "", "", "/", "-1", ""); } //Cookieから取得した値を元にinputに入れる名称を設定 var startCookieValue = _getCookiePerfectMatching("start"); var via1CookieValue = _getCookiePerfectMatching("via1"); var via2CookieValue = _getCookiePerfectMatching("via2"); var via3CookieValue = _getCookiePerfectMatching("via3"); var goalCookieValue = _getCookiePerfectMatching("goal"); var startPosTypeCookieValue = _getCookiePerfectMatching("startPosType"); var goalPosTypeCookieValue = _getCookiePerfectMatching("goalPosType"); var displayOrvName = _getDisplayName(startCookieValue); var via1PosTypeCookieValue = _getCookiePerfectMatching("via1PosType"); var via2PosTypeCookieValue = _getCookiePerfectMatching("via2PosType"); var via3PosTypeCookieValue = _getCookiePerfectMatching("via3PosType"); var displayVia1Name = _getDisplayName(via1CookieValue); var displayVia2Name = _getDisplayName(via2CookieValue); var displayVia3Name = _getDisplayName(via3CookieValue); var displayDnvName = _getDisplayName(goalCookieValue); var $startName = $transfer_main_page.find("input[name=startName]"); var $via1Name = $transfer_main_page.find("input[name=via1Name]"); var $via2Name = $transfer_main_page.find("input[name=via2Name]"); var $via3Name = $transfer_main_page.find("input[name=via3Name]"); var $goalName = $transfer_main_page.find("input[name=goalName]"); var $orvPosType = $transfer_main_page.find("input[name=orvPosType]"); var $dnvPosType = $transfer_main_page.find("input[name=dnvPosType]"); var $via1PosType = $transfer_main_page.find("input[name=via1PosType]"); var $via2PosType = $transfer_main_page.find("input[name=via2PosType]"); var $via3PosType = $transfer_main_page.find("input[name=via3PosType]"); $startName.val(displayOrvName); $via1Name.val(displayVia1Name); $via2Name.val(displayVia2Name); $via3Name.val(displayVia3Name); $goalName.val(displayDnvName); $orvPosType.val(startPosTypeCookieValue); $dnvPosType.val(goalPosTypeCookieValue); $via1PosType.val(via1PosTypeCookieValue); $via2PosType.val(via2PosTypeCookieValue); $via3PosType.val(via3PosTypeCookieValue); if ("" != $startName.val() && "" != $goalName.val()) { $("#transfer-search-btn").addClass("transfer-search-btn-active"); $("#depArrTimeList-search-btn").addClass("depArrTimeList-search-btn-active"); $("#busLocation-search-btn").addClass("busLocation-search-btn-active"); } else if ("" != $startName.val()) { $("#transfer-search-btn").removeClass("transfer-search-btn-active"); $("#depArrTimeList-search-btn").removeClass("depArrTimeList-search-btn-active"); $("#busLocation-search-btn").addClass("busLocation-search-btn-active"); } else { $("#transfer-search-btn").removeClass("transfer-search-btn-active"); $("#depArrTimeList-search-btn").removeClass("depArrTimeList-search-btn-active"); $("#busLocation-search-btn").removeClass("busLocation-search-btn-active"); } _checkJsonValue(); } setBoxColor($("#orvStationName"), "start"); setBoxColor($("#via1StationName"), "via1"); setBoxColor($("#via2StationName"), "via2"); setBoxColor($("#via3StationName"), "via3"); setBoxColor($("#dnvStationName"), "goal"); if(via2CookieValue) { $("#transferVia1StationBox").show(); } if(via3CookieValue) { $("#transferVia1StationBox").show(); $("#transferVia2StationBox").show(); } if($("#transferVia1StationBox").is(":visible") && $("#transferVia2StationBox").is(":visible") && $("#transferVia3StationBox").is(":visible")) { $("#add-via-button-area").hide(); } } }), // 時刻表Topページの取得 $.ajax({ dataType: 'html', cache: false, url: '/tokyubus-eng/smart/diagram/DiagramTop', data: { 'pathType' : 'body', 'diagramErrId' : document.getElementById('actionDiagramErrId').value, 'diagramOrvCode' : document.getElementById('paramDiagramOrvCode').value, 'diagramDnvCode' : document.getElementById('paramDiagramDnvCode').value, 'diagramOrvName' : document.getElementById('actionDiagramOrvName').value, 'diagramDnvName' : document.getElementById('actionDiagramDnvName').value, 'diagramOrvPosType' : document.getElementById('paramDiagramOrvPosType').value, 'diagramDnvPosType' : document.getElementById('paramDiagramDnvPosType').value }, success: function(data, dataType){ $("#top-page .tab-content-area .diagram").append(data); diagramPosSettingListCtl = new DIAGRAM_POS_SETTING_LIST_CTL({ 'localStorageCtl': localStorageCtl, 'geolocationCtl' : _location, 'pageType' : 'diagram', 'offset' : 0, 'limit' : 10, 'serviceId' : 'tokyubus-eng', 'searchType' : 'all', "diagramExcludeNodeErrorMessage":"Station not covered by timetable search" }); // 地点設定画面のタブ切り替え(カンタン検索) var $subPage = $("#diagram-sub-page"); if($subPage.find("menu li").size()>0){ $subPage.find("menu li").click(function(event){ if(!$(this).is(".active")){ var func = (function(self){ return function(){ var $li = $subPage.find("menu li"); $li.removeClass("active"); var num = $li.index(self); $li.eq(num).addClass("active"); var $content = $subPage.find(".pos-setting-tab-content-area > div"); $content.hide(); $content.eq(num).show(); } })(this); setTimeout(func,200); } event.preventDefault(); }); } if(window.location.search.indexOf("diagram") != -1){ var $diagram_main_page = $("#diagram-main-page"); var target = (window.location.search.indexOf('orv') != -1) ? "orv" : "dnv"; var codeCookieName = (target === "orv") ? "diagramOrvCode" : "diagramDnvCode"; var posTypeCookieName = (target === "orv") ? "diagramOrvPosType" : "diagramDnvPosType"; var codeCookieVal = $("#diagram-main-page").find("input[name=" + target + "Code]").val(); var posTypeCookieVal = $("#diagram-main-page").find("input[name=" + target + "PosType]").val(); setCookie( codeCookieName, codeCookieVal ,"","/","","" ); setCookie( posTypeCookieName, posTypeCookieVal ,"","/","","" ); var displayOrvName, displayDnvName; var orvCookieVal = _getCookie("diagramOrvCode") var dnvCookieVal = _getCookie("diagramDnvCode") var orvPosTypeCookieVal = _getCookie("diagramOrvPosType"); var dnvPosTyoeCookieVal = _getCookie("diagramDnvPosType"); if( _isNull(orvCookieVal) ){ displayOrvName = ""; }else{ displayOrvName = _getPosName(orvCookieVal); $diagram_main_page.find("input[name=orvCode]").val(orvCookieVal); $diagram_main_page.find("input[name=orvName]").val(displayOrvName); $diagram_main_page.find("input[name=orvPosType]").val(orvPosTypeCookieVal); } if( _isNull(_getCookie("diagramDnvCode")) ){ displayDnvName = ""; }else{ displayDnvName = _getPosName(dnvCookieVal); $diagram_main_page.find("input[name=dnvCode]").val(dnvCookieVal); $diagram_main_page.find("input[name=dnvName]").val(displayDnvName); $diagram_main_page.find("input[name=dnvPosType]").val(dnvPosTyoeCookieVal); } setCookie( "start", "" ,"","/","","" ); setCookie( "goal", "" ,"","/","","" ); setCookie( "startPosType", "" ,"","/","-1","" ); setCookie( "goalPosType", "" ,"","/","-1","" ); var $startName = $diagram_main_page.find("input[name=orvName]"); if ("" != $startName.val()){ $("#diagram-kwsearch-btn").addClass("diagram-kwsearch-btn-active"); } else { $("#diagram-kwsearch-btn").removeClass("diagram-kwsearch-btn-active"); } var $goalName = $diagram_main_page.find("input[name=dnvName]"); if ("" != $goalName.val()){ diagramPosSettingListCtl.showGoalBusstop(); } } } }) ).done(function(){ $.ajax({ type : "GET", dataType : "json", url : "/" + 'tokyubus-eng' + "/smart/common/node/DiagramExcludeNode", cache : true, success: function(result, status){ if(result) { diagramPosSettingListCtl.diagramExcludeNodes = result.items; transferCtl.diagramExcludeNodes = result.items; } }, beforeSend : function( xhr ){ xhr.setRequestHeader("If-Modified-Since", "Thu, 01 Jun 1970 00:00:00 GMT"); }, }); }); }); </script> </html>

Pages: 1 2 3 4 5 6 7 8 9 10