SKMaps / Skobbler 地图服务器停机

Posted

技术标签:

【中文标题】SKMaps / Skobbler 地图服务器停机【英文标题】:SKMaps / Skobbler Map Server Down 【发布时间】:2016-09-21 18:23:55 【问题描述】:

自 2 天前起,一个或部分 SKMaps/Skobbler 地图服务器似乎已关闭。这只是我还是更多的人正在经历这种情况?如果只有我能帮助我解决这个问题,我们将不胜感激。

我正在将我的 ios 应用程序从 SKMaps Framework 版本 2.5.1 更新到 3.0。其中还包括更新的地图。我的应用程序使用 3.0.然后我也开始将我的应用程序更新到 Swift 3.0 并更新到 Xcode 8.0。从那以后一直无法让它工作。它运行,但地图服务器似乎无法访问。我不确定对 Swift3/Xcode8 的更新是否是原因。

** 更新: 我现在尝试不更新地图版本(所以继续使用 201504 地图),一切正常。所以它似乎与更新到 Swift3/Xcode8 无关。似乎 201604 地图的地图服务器正在运行。 **

上周确认了一些地图服务器问题,但they were resolved 。不确定该问题是否再次出现?

基本上我的应用程序此时无用。无法下载元数据、无法检索/显示在线地图图块、无法下载离线地图包、无法搜索、无法使用在线路线计算等。

这是最能说明问题的控制台日志。我在尝试使用离线地图区域下载 JSON 时得到了这个:

[AnyHashable("Content-Type"): application/xml, AnyHashable("Connection"): keep-alive, AnyHashable("Date"): Wed, 21 Sep 2016 17:51:58 GMT, AnyHashable("X-Amz-Cf-Id"): zBW5kFdCN-9fhZnpj8WyeL7CCx2eEEixO9BPIDGbyJHxqAuFa8gf9Q==, AnyHashable("Transfer-Encoding"): Identity, AnyHashable("Server"): AmazonS3, AnyHashable("Via"): 1.1 01448657fc099ab201797422a6a02be2.cloudfront.net (CloudFront), AnyHashable("X-Cache"): Error from cloudfront]

在框架初始化时尝试下载元文件时,我得到了这个:

the resource not found: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/roads
offline mode, the resource cannot be downloaded: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/roads
the resource not found: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/attributes
offline mode, the resource cannot be downloaded: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/attributes
the resource not found: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/elevations
offline mode, the resource cannot be downloaded: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/elevations
the resource not found: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/version.txt
offline mode, the resource cannot be downloaded: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/version.txt
the resource not found: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/bikeAttributes
offline mode, the resource cannot be downloaded: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/bikeAttributes
the resource not found: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/shapes
offline mode, the resource cannot be downloaded: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/shapes
the resource not found: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/pois
offline mode, the resource cannot be downloaded: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/pois

我确定我有连接并且我确定我处于在线模式,因为这是我的框架初始化代码:

let initSettings: SKMapsInitSettings = SKMapsInitSettings()
initSettings.mapDetailLevel = SKMapDetailLevel.Light    // Same thing if I change this to .Full
initSettings.connectivityMode = SKConnectivityMode.Online
initSettings.showConsoleLogs = true
SKMapsService.sharedInstance().initializeSKMapsWithAPIKey(SKMapsAPIKey, settings: initSettings)

【问题讨论】:

【参考方案1】:

找到了。这很可能是 Skobbler 的 'light/v1/20160426' API 端点。

如果我将 3.0 演示项目切换到“灯光”地图,它也不起作用(没有下载元数据、没有可见的在线地图、没有下载离线地图 json 等) 如果我将应用切换到“完整”地图,一切正常。

已与 Skobbler 的开发人员联系,并认为他们会很快解决此问题。

【讨论】:

3.0 版本还没有“灯光”贴图——这就是导致问题的原因。请切换到使用“完整”地图

以上是关于SKMaps / Skobbler 地图服务器停机的主要内容,如果未能解决你的问题,请参考以下文章

带有按钮的 skobbler (skmaps) 注释

iOS SKMaps 下载的地图包未在离线模式下显示

加载 skobbler 地图时遇到问题

SKRouteManager.getInstance().calculateRoute(route);在 SKMaps SDK 2.4 中返回空指针异常

SKMaps - 上传到 iTunes Connect 的应用程序错误 - 无效的二进制文件 - 段对齐 - 加密

将离线地图作为应用内购买出售