0% found this document useful (0 votes)
39 views

How To Use The Crime Map API

This API documentation provides summaries of services that retrieve crime data including locations and boundaries, police station information, and offence data for a given location and date range. The services return data like geographic coordinates, names, addresses, and crime statistics in JSON or other formats. Parameters include a location type, name, and start and end dates. Location types align crime data to geographic boundaries like suburbs, postal codes, or police divisions.

Uploaded by

Bucky
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

How To Use The Crime Map API

This API documentation provides summaries of services that retrieve crime data including locations and boundaries, police station information, and offence data for a given location and date range. The services return data like geographic coordinates, names, addresses, and crime statistics in JSON or other formats. Parameters include a location type, name, and start and end dates. Location types align crime data to geographic boundaries like suburbs, postal codes, or police divisions.

Uploaded by

Bucky
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

API documentation—crime locations last 5 years

This Service retrieves a list of Boundary Names and Location Types that can be passed to
other services in this document.

Look up Geographies

https://a5c7zwf7e5.execute-api.ap-southeast-2.amazonaws.com/dev/lut

Returns
Key Data type Accepted Format
objectid integer Unique ID
searchlookup string Name of the Boundary that can be passed to other
Service Call.
class string The type of Location or Boundary. Can be referenced to
align to locationType in the Offence Service. (see
Below)

Description:

 searchlookup

This field contains the names of boundaries that are referenced in the Offence data. These
names can be used as input parameters in the Offence service.

 class

This field contains boundary types. When performing a search in other service calls a
boundary type (locationType) parameter can be useful. The below table is the link between
class values and locationType values.

LUT Service Call Geographic Boundaries Offence

(class) locationType Search

QPS Division QPS Division Division

Suburb SUBURB SUBURB

POSTCODE POSTCODE POSTCODE

QPS District QPS District District

QPS Patrol Group QPS Patrol Group PATROLGROUP

Neighbourhood Watch Neighbourhood Watch NHW

Local Government Area Local Government Area LGA

QPS Region QPS Region REGION


Return Geographies

These services return spatial coordinates of features that form a boundary or the location of
a Police Station.

Get Police Stations List

This service retrieves a list of Police Stations containing the following attributes.

Example

https://4w0qhtalkj.execute-api.ap-southeast-2.amazonaws.com/dev/pst

Returns
Key Data type Accepted Format
feature string Geographic Coordinates
name string Police Station Name
address string Address Description
suburb string Suburb
pcode string PostCode
phonenumber string Phone Number
Get Boundary Geographies

This service returns the spatial coordinates that form geographical boundaries.

Example

https://a5c7zwf7e5.execute-api.ap-southeast-2.amazonaws.com/dev/locations?
locationType=SUBURB&locationName=West%20End%20-%20Brisbane

Parameters
Key Data type Accepted Format
locationType string The Type of the Boundary being searched

locationName string The Name of the Boundary being searched

Description:

 locationType

This field requires the type of boundary. List is as follows. POSTCODE is not included as
this is not an open data dataset.

locationType

QPS Division

SUBURB

QPS District

QPS Patrol Group

Neighbourhood Watch

Local Government Area

QPS Region

 locationName

Use this parameter to search boundary names.

Returns
Key Data type Accepted Format
feature string Geographic Coordinates
name string Name of the boundary
type string Boundary Type

Search for Offences by boundary type and name


This API retrieves a list of offences that match a specified name or name fragment. The limit
is currently 100,000. The location types should be used and are described below.

Example

https://a5c7zwf7e5.execute-api.ap-southeast-2.amazonaws.com/dev/offences?
locationType=Lga&startDate=06-26-2019&locationName=Brisbane&endDate=08-26-
2019&format=JSON

Parameters
Key Data type Accepted Format
locationType string Boundary Type. Must be either SUBURB, LGA, DIVISION,
REGION, DISTRICT, NHW, POSTCODE, PATROLGROUP
(Case Sensitive)
startDate string 06-26-2019 (mm-dd-yyyy)
locationName string Name of search boundary
endDate string 06-26-2019 (mm-dd-yyyy)
format string XML, JSON,SQL,JSONP

Description:

 locationType

The locationType is the type of boundary that is being queried.

SUBURB is a suburb boundary

LGA is a Local Government Area

DIVISION is a Police Division

REGION is a Police Region

DISTRICT is a Police District

NHW is a Neighbourhood Watch Area

POSTCODE is a Post Code

PATROLGROUP is a Police Patrol Group Area

 startDate and endDate

Must be presented in this format 06-26-2019 (mm-dd-yyyy)

 locationName

The name of the boundary containing the offences

Results
Key Data Description
type
Type string Type of Crime
Date string Date "2019-06-26 00:00:00"
Postcode string Post Code
Area of string Name of the requested area
Interest
ABS string Australian Bureau of Statistics mesh block code that links to all
Meshblock other ABS Statistical Areas -
https://www.abs.gov.au/AUSSTATS/[email protected]/DetailsPage/1270.0.
55.001July%202016?OpenDocument

Offence Type List

Offence List

Arson

Assault

Drug Offences

Fraud

Gaming Racing & Betting Offences

Good Order Offences

Handling Stolen Goods

Homicide (Murder)

Liquor (excl. Drunkenness)

Miscellaneous Offences

Other Homicide

Other Offences Against the Person

Other Property Damage

Other Theft (excl. Unlawful Entry)

Prostitution Offences

Robbery

Stock Related Offences

Traffic and Related Offences

Trespassing and Vagrancy

Unlawful Entry

Unlawful Use of Motor Vehicle


Weapons Act Offences

You might also like