HERE地图SDK iOS - 当前的道路元素总是零

时间:2017-02-24 11:21:47

标签: ios swift here-api

我们已将高级HERE Maps iOS SDK添加到我们的应用中。特别是,我们正在研究<link href="http://fonts.googleapis.com/css?family=Julius+Sans+One" rel="stylesheet" type="text/css" /> <link href="css/style.css" media="all" rel="stylesheet" type="text/css" /> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <!-- Start Sidebar menu --> <!-- large menu--> <div class="hidden-xs hidden-sm"> <nav class="text1-nav"> <a class="album" href="http://www.littlebearcustomholsters.com/albums/" target="new"> <h1>Album of Holsters</h1> </a> <ul> <li> <h3>Holster Care and Firearms Offered</h3> </li> <li><a class="care" href="care.php">Care For your Holster</a></li> <li><a class="offered" href="offered.php">Firearms Offered</a></li> <li> <h3 class="iwb"><a href="iwb.php">Inside the Waistband</a></h3> </li> <li><a class="sd" href="sd.php">Salty Dad Special (SD Special)</a></li> <li><a class="qdsquared" href="qdsquared.php">QD Squared *NEW*</a></li> <li><a class="hoplite" href="hoplite.php">Hoplite IWB</a></li> <li><a class="wickedaxe" href="wickedaxe.php">Wicked Axe</a></li> <li><a class="aegis" href="aegis.php">Aegis Calypto</a></li> <li> <h3 class="owb"><a href="owb.php">Outside Waistband</a></h3> </li> <li><a class="ippos" href="ippos.php">&#39;Ippos Belt Slide</a></li> <li><a class="swspecial" href="swspecial.php">SW Special</a></li> <li> <h3 class="tsr"><a href="tsr.php">Thigh Rigs and Shoulder Holsters</a></h3> </li> <li><a class="sporran" href="sporran.php">Sporran Holster</a></li> <li><a class="shoulder" href="shoulder.php">Shoulder Holster with Double Mag Carrier</a></li> <li><a class="mbrig" href="mbrig.php">MB Chest Rig</a></li> <li> <h3 class="mcb"><a href="mcb.php">Mag Carriers and Belts</a></h3> </li> <li><a class="beltslide" href="beltslide.php">Belt Slide Mag Carriers</a></li> <li><a class="iwbmag" href="iwbmag.php">IWB Mag Carriers</a></li> <li><a class="shooterbelt" href="shooterbelt.php">Shooters Belt</a></li> <li> <h3 class="custom"><a href="custom.php">Custom Orders</a></h3> </li> <li><a class="exotics" href="/exotics.php">Exotics</a></li> <li><a class="artwork" href="artwork.php">Artwork</a></li> <li> <h3 class="custom"><a href="requests.php">By Request Only</a></h3> </li> <li><a class="mjolnir" href="mjolnir.php">Mjolnir</a></li> <li><a class="csrig" href="csrig.php">CS Thigh rig</a></li> </ul> <div class="vetlogo"> <a href="http://www.veteranownedbusiness.com" target="_blank"><img alt="Veteran Owned Business Directory, Get your free listing, now!" height="180px" src="images/VeteranOwnedBusinessHorizontal.jpg" width="300px " /></a> </div> </nav> </div> <!--mobile menu--> <div class="visible-xs visible-sm hidden-md hidden-lg"><span class="quote" onclick="openNav()"><img src="images/menu.png" /> Main Menu </span> <nav class="sidenav" id="mySidenav"><a class="closebtn" href="javascript:void(0)" onclick="closeNav()">&times;</a> <a class="care" href="care.php">Care For your Holster</a> <a class="offered" href="offered.php">Firearms Offered</a> <a class="album" href="http://www.littlebearcustomholsters.com/albums/" target="new">Album of Holsters</a> <h3 class="iwb">Inside Waistband</h3> <a class="sd" href="sd.php">Salty Dad Special (SD Special)</a> <a class="qdsquared" href="qdsquared.php">QD Squared *coming soon*</a> <a class="hoplite" href="hoplite.php">Hoplite IWB</a> <a class="wickedaxe" href="wickedaxe.php">Wicked Axe</a> <a class="aegis" href="aegis.php">Aegis Calypto</a> <h3 class="owb">Outside Waistband</h3> <a class="ippos" href="ippos.php">&#39;Ippos Belt Slide</a> <a class="swspecial" href="swspecial.php">SW Special</a> <h3 class="tsr">Thigh Rigs and Shoulder Holsters</h3> <a class="sporran" href="sporran.php">Sporran Holster</a> <a class="shoulder" href="shoulder.php">Shoulder Holster with Double Mag Carrier</a> <a class="mbrig" href="mbrig.php">MB Chest Rig</a> <h3 class="mcb">Mag Carriers and Belts</h3> <a class="beltslide" href="beltslide.php">Belt Slide Mag Carriers</a> <a class="iwbmag" href="iwbmag.php">IWB Mag Carriers</a> <a class="shooterbelt" href="shooterbelt.php">Shooters Belt</a> <h3 class="custom">Custom Orders</h3> <a class="exotics" href="/exotics.php">Exotics</a> <a class="artwork" href="artwork.php">Artwork</a> <h3 class="custom">By Request Only</h3> <a class="mjolnir" href="mjolnir.php">Mjolnir</a> <a class="csrig" href="csrig.php">CS Thigh rig</a><br /> <a href="http://www.veteranownedbusiness.com" target="_blank"><img alt="Veteran Owned Business Directory, Get your free listing, now!" height="180px" src="images/VeteranOwnedBusinessHorizontal.jpg" width="300px " /></a> </nav> </div>功能(用户开始驾驶时使用)。

这一切都运作良好一段时间(2天左右),但现在它突然停止工作。我使用与以前相同的代码 - 没有任何改变。我也采取相同的路线。我在观察NMANavigationManager.shared().startTracking(with: .car)  位置变化时的通知。

在那里,我寻找Notification.Name.NMAPositioningManagerDidUpdatePosition,它始终设置为nil(尽管位置正确)。尽管NMAPositioningManager.shared().currentRoadElement()设置为true,但永远不会调用didUpdateSpeedingStatus

我在这里遗漏了什么吗?任何帮助都会得到满足。

1 个答案:

答案 0 :(得分:0)

正如上面的评论中已经提到的,如果SDK处于跟踪模式,则使用HERE Mobile Premium SDK NMAMapLoader界面将离线地图数据下载到设备上是先决条件。