Platformsios 8.0, osx 10.9, requires ARC

Prebuilt Realm dataset composed of San Francisco restaurant scores for Realm Swift

Data Source

Data Model

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

Data model structure:

  • ABFRestaurantObject
    • businessId: String (primary key)
    • name: String
    • address: String
    • city: String
    • state: String
    • postalCode: String
    • latitude: Double
    • longitude: Double
    • phoneNumber: String
    • violations: List<ABFViolationObject>()
    • inspections: List<ABFInspectionObject>()
  • ABFInspectionObject
    • restaurant: ABFRestaurantObject
    • score: Int
    • date: NSDate
    • type: ABFInspectionType
  • ABFViolationObject
    • restaurant: ABFRestaurantObject
    • date: NSDate
    • violationDescription: String


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

pod "RealmSwiftSFRestaurantData"

From your project:

let realm = Realm(path: ABFRestaurantScoresPath())

let restaurants = realm.objects(ABFRestaurantObject)


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

Latest podspec

    "name": "RealmSwiftSFRestaurantData",
    "version": "0.5",
    "summary": "San Francisco Restaurant Score Data In Realm",
    "description": "Prebuilt Realm dataset composed of San Francisco restaurant scores for Realm Swift",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Adam Fish": "[email protected]"
    "platforms": {
        "ios": "8.0",
        "osx": "10.9"
    "source": {
        "git": "",
        "tag": "v0.5"
    "source_files": "SFRestaurantScores.swift",
    "requires_arc": true,
    "dependencies": {
        "RealmSwift": [
    "resources": "SFRestaurantScores.realm"

Pin It on Pinterest

Share This