Crime¶
- class police_api.crime.Crime(api, data={})¶
An individual crime. Uses the outcomes-for-crime API call.
Parameters: - api (PoliceAPI) – The instance of PoliceAPI to use.
- data (dict) – The attributes that will be copied to this instance.
- id¶
Type: int This crime’s unique internal ID (not used elsewhere in the data or API).
- persistent_id¶
Type: str This crime’s persistent ID, which is referenced by the outcomes data and in the CSV files. Not guaranteed to be unique.
- month¶
Type: str The month that this crime was reported in (%m-%d).
- category¶
Type: CrimeCategory The category of this crime.
- location¶
Type: Location The anonymised location that this crime occurred closest to.
- context¶
Type: str Additional data about this crime provided by the reporting force.
- outcome_status¶
Type: Crime.Outcome The latest outcome to have been recorded for this crime.
- outcomes¶
Type: list A list of Outcome objects for this crime.