Results 1 to 9 of 9

Thread: Crash when using offline geocoding on IOS 8.4 Swift

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Neuer skobbler
    Join Date
    14.07.2015
    Posts
    9

    Crash when using offline geocoding on IOS 8.4 Swift

    Hi,

    I am using the latest SKMaps SDK(downloaded from here http://developer.skobbler.com/support#download) with IOS 8.4 and Swift.

    I try to implement an offline geocoding in New York city but when I add the code as shown in the documentation:
    SKSearchService.sharedInstance().searchServiceDele gate = self
    SKSearchService.sharedInstance().searchResultsNumb er = 500
    SKMapsService.sharedInstance().connectivityMode = SKConnectivityMode.Offline;

    self.listLevel = SKListLevel.CityList

    let multiStepSearchObject = SKMultiStepSearchSettings()
    multiStepSearchObject.listLevel = self.listLevel
    multiStepSearchObject.offlinePackageCode = "USNYCITY01"
    multiStepSearchObject.searchTerm = address
    multiStepSearchObject.parentIndex = 0
    SKSearchService.sharedInstance().startMultiStepSea rchWithSettings(multiStepSearchObject)

    When I run the code in the simulator, it crashes after the search begins.

    crash_offline_geocoding_ios.jpg

    From the look of it there is an issue with the search areas.
    I have downloaded the USNYCITY01 package and I am able to display the map of NY and even display things on it

    skmaps_usnycity_package.jpg


    I also tried the code with listlevel being a countryList I have the same error.

    Could you please advise and tell me what I might be doing wrong?

    Thanks in advance,
    Regards,

  2. #2
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    Hi gtonye,

    The issue was reported to our dev team-we'll get back to you with an answer as soon as possible

  3. #3
    Neuer skobbler
    Join Date
    14.07.2015
    Posts
    9
    Quote Originally Posted by Adela_Silvia View Post
    Hi gtonye,

    The issue was reported to our dev team-we'll get back to you with an answer as soon as possible
    Hi Adela_Silvia,

    Many thanks for your quick reply, let me know if the dev team needs any additional information to investigate the issue.

    Regards,
    --

  4. #4
    Neuer skobbler
    Join Date
    14.07.2015
    Posts
    9
    Quote Originally Posted by gtonye View Post
    Hi Adela_Silvia,

    Many thanks for your quick reply, let me know if the dev team needs any additional information to investigate the issue.

    Regards,
    --
    Hi,

    Any update?

    -- Regards

  5. #5
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    Sorry, but not yet. I'll try to push this request.

  6. #6
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    Hi Gtonye,

    Here is the solution straight from our developers:

    "The problem is with the parentIndex.
    For searchObjects which don't have parents please set -1 for the parent index. This will be fixed in the next release of the SDK.
    Also you can test this feature with the following steps using the demo project:
    1. Map JSON & download -> North America -> United states -> New York -> New York city -> Download
    2. Address search - Offline -> USNCITY01 -> The list of streets will appear"

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •