Results 1 to 6 of 6

Thread: In your GPS Navigation app in iTunes you have 'Local Search'

  1. #1
    Etablierter skobbler
    Join Date
    29.08.2014
    Posts
    18

    In your GPS Navigation app in iTunes you have 'Local Search'

    Hi
    is this local search available in the sdk?

  2. #2
    Dev platform evangelist dandronic's Avatar
    Join Date
    31.03.2014
    Posts
    177
    In the GPS Nav app the local search feature is connected to Apple's local search feature.

    You can replicate the same behaviour with our POI search functionality: on Android http://developer.skobbler.com/gettin...android#sec020 and on iOS http://developer.skobbler.com/getting-started/ios#sec21. The demo projects also contain samples on how to run these queries.

    Note: the query will happen on the POIs present in OpenStreetMap, so the better the data there, the better the search results.

  3. #3
    Etablierter skobbler
    Join Date
    29.08.2014
    Posts
    18
    Thanks, great support.

    is it possible to do different coloured routes?

  4. #4
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    Hi.

    If you refer to change the route color dynamically or style route segments differently, right now is not possible.
    But, you can edit the style JSON files from the SKMaps.zip archive that stores the resources. In the demo these JSON files are daystyle.json, grayscalestyle.json, nightstyle.json and outdoorstyle.json

    There is a detailed answer about this scenario for the Android platform on StackOverflow: http://stackoverflow.com/questions/2...te-in-skobbler

  5. #5
    Etablierter skobbler
    Join Date
    29.08.2014
    Posts
    18
    Thanks, I was talking about the colour of the routes. We intend to show several routes and need them to be different colours representing different users.

  6. #6
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    You can color various road segments along the route provided that you draw them separately. Retrieve the route information by calling routeCoordinatesForRouteWithId

    NSArray *locations = [[SKRoutingService sharedInstance] routeCoordinatesForRouteWithId:routeInformation.ro uteID];

    Note: make sure you have set requestExtendedRoutePointsInfo to true for SKRouteSetttings before calling calculate route. And then you'll have access to the road segments, which you can draw on the map as colored Polylines.
    Last edited by Adela_Silvia; 01.09.2014 at 11:06.

Posting Permissions

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