Search code examples
iosdictionaryskmapsskobbler-maps

iOS: How to show nearby hospitals in skobbler maps?


I am creating a app in which it shows nearby hospitals,so am not able program it please if you know how to do that?


Solution

  •  SKNearbySearchSettings* searchObject = [SKNearbySearchSettings nearbySearchSettings];
            searchObject.coordinate = CLLocationCoordinate2DMake(currentLocation.coordinate.latitude, currentLocation.coordinate.longitude);
            searchObject.searchTerm=@""; //search for all POIs
            searchObject.radius = 5000;
            searchObject.searchMode=SKSearchHybrid;
            searchObject.searchResultSortType=SKProximitySort;
            searchObject.searchCategories = @[ @(SKPOICategoryHospital)];
            [[SKSearchService sharedInstance] setSearchResultsNumber:10000];
            [[SKSearchService sharedInstance]startNearbySearchWithSettings:searchObject];
    

    Use this code for finding nearby hospitals.