Latest0.3
Homepagehttps://github.com/bigfish24/RealmSFRestaurantData
LicenseMIT
Platformsios 7.0, osx 10.9, requires ARC
DependenciesRealm
Authors

Prebuilt Realm dataset composed of San Francisco restaurant scores

Data Source

Data Model

RLMObject subclasses corresponding to the data model are included in the objects folder.

Data model structure:

  • ABFRestaurantObject
    • businessId: NSString (primary key)
    • name: NSString
    • address: NSString
    • city: NSString
    • state: NSString
    • postalCode: NSString
    • latitude: CLLocationDegrees
    • longitude: CLLocationDegrees
    • phoneNumber: NSString
    • violations: RLMArray<ABFViolationObject>
    • inspections: RLMArray<ABFInspectionObject>
  • ABFInspectionObject
    • restaurant: ABFRestaurantObject
    • score: NSInteger
    • date: NSDate
    • type: ABFInspectionType
  • ABFViolationObject
    • restaurant: ABFRestaurantObject
    • date: NSDate
    • violationDescription: NSString

Installation

RealmSFRestaurantData is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "RealmSFRestaurantData"

From your project:

#import <RealmSFRestaurantData/SFRestaurantScores.h>
...
RLMRealm *restaurantRealm = [RLMRealm realmWithPath:ABFRestaurantScoresPath()];

RLMResults *restaurants = [ABFRestaurantObject allObjectsInRealm:restaurantRealm];

Demo

An example project that uses RealmSFRestaurantData is provided in the ABFRealmSearchViewController repo. To install follow the instructions provided.

Latest podspec

{
    "name": "RealmSFRestaurantData",
    "version": "0.3",
    "summary": "San Francisco Restaurant Score Data In Realm",
    "description": "Prebuilt Realm dataset composed of San Francisco restaurant scores",
    "homepage": "https://github.com/bigfish24/RealmSFRestaurantData",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Adam Fish": "[email protected]"
    },
    "platforms": {
        "ios": "7.0",
        "osx": "10.9"
    },
    "source": {
        "git": "https://github.com/bigfish24/RealmSFRestaurantData.git",
        "tag": "v0.3"
    },
    "source_files": [
        "SFRestaurantScores.h",
        "objects/*.{h,m}"
    ],
    "requires_arc": true,
    "dependencies": {
        "Realm": [
            ">=0.96"
        ]
    },
    "resources": "SFRestaurantScores.realm"
}

Pin It on Pinterest

Share This