interface YMKNaviControllerDelegate
YMKNaviControllerからルート案内結果の通知を受け取るプロトコルクラスです。
タスク
案内通知
naviController:didUpdateUserLocation:
naviController:didFailToLocateUserWithError:
naviControllerAccuracyBad:didUpdateUserLocation:
naviControllerRouteOut:didUpdateUserLocation:
naviControllerOnGoal:didUpdateUserLocation:
メソッド
naviController:didUpdateUserLocation:
現在位置が更新された際にデリゲートに通知されます。
-(void)naviController:(YMKNaviController*)naviController didUpdateUserLocation:(YMKUserLocation *)userLocation
引数 | 説明 |
---|---|
naviController | YMKNaviControllerインスタンス |
userLocation | 現在位置の緯度経度 |
naviController:didFailToLocateUserWithError:
現在位置が取得できなかった際にデリゲートに通知されます。
-(void)naviController:(YMKNaviController*)naviController didFailToLocateUserWithError:(NSError *)error
引数 | 説明 |
---|---|
naviController | YMKNaviControllerインスタンス |
error | GPSからのエラーコード |
naviControllerAccuracyBad:didUpdateUserLocation:
現在位置の精度が悪いと判断された場合にデリゲートに通知されます。
-(void)naviControllerAccuracyBad:(YMKNaviController*)naviController didUpdateUserLocation:(YMKUserLocation *)userLocation
引数 | 説明 |
---|---|
naviController | YMKNaviControllerインスタンス |
userLocation | 現在位置の緯度経度 |
naviControllerRouteOut:didUpdateUserLocation:
現在位置がルートから外れたと判断された場合にデリゲートに通知されます。
-(void)naviControllerRouteOut:(YMKNaviController*)naviController didUpdateUserLocation:(YMKUserLocation *)userLocation
引数 | 説明 |
---|---|
naviController | YMKNaviControllerインスタンス |
userLocation | 現在位置の緯度経度 |
naviControllerOnGoal:didUpdateUserLocation:
目的地に着いたと判断された場合にデリゲートに通知されます。
-(void)naviControllerOnGoal:(YMKNaviController*)naviController didUpdateUserLocation:(YMKUserLocation *)userLocation
引数 | 説明 |
---|---|
naviController | YMKNaviControllerインスタンス |
userLocation | 現在位置の緯度経度 |