Latest0.5
Homepagehttps://github.com/bigfish24/RealmSwiftSFRestaurantData
LicenseMIT
Platformsios 8.0, osx 10.9, requires ARC
DependenciesRealmSwift
Authors

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

Installation

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)

Demo

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": "https://github.com/bigfish24/RealmSwiftSFRestaurantData",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Adam Fish": "[email protected]"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.9"
    },
    "source": {
        "git": "https://github.com/bigfish24/RealmSwiftSFRestaurantData.git",
        "tag": "v0.5"
    },
    "source_files": "SFRestaurantScores.swift",
    "requires_arc": true,
    "dependencies": {
        "RealmSwift": [
            ">=0.96"
        ]
    },
    "resources": "SFRestaurantScores.realm"
}

Pin It on Pinterest

Share This