Module

mapService

Methods

# static getMappedComplaintData(complaintData) → {Object}

Returns the complaint data formatted for the google-map-react library to produce a heatmap.

Parameters:
Name Type Description
complaintData array

Information about noise complaints and complaints about public inorder

View Source services/mapService.js, line 61

formatted heatmap data containing the position and graphic settings or an empty Object if complaintData is not available

Object

# static getMappedCrimeData(crimeData) → {Object}

Returns the crime data formatted for the google-map-react library to produce a heatmap.

Parameters:
Name Type Description
crimeData array

Information about crime locations

View Source services/mapService.js, line 14

formatted heatmap data containing the position and graphic settings or an empty Object if crimeData is not available

Object

# static getMappedRodentData(rodentData) → {Object}

Returns the rodent data formatted for the google-map-react library to produce a heatmap.

Parameters:
Name Type Description
rodentData array

Information about rodent encounter locations

View Source services/mapService.js, line 37

formatted heatmap data containing the position and graphic settings or an empty Object if rodentData is not available

Object