Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions kolhapur_crime_zones.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,8 @@
"radius": 360,
"crime_types": ["assault", "harassment", "kidnapping"],
"description": "Area near water body with reported assault and harassment incidents, unsafe for women travelling alone at night."
},
{
"_note": "This file contains sample crime zone data for Kolhapur, India. Replace the entries (excluding this one) with real data for your deployment region. Each zone needs id, name, latitude, longitude, risk, radius, crime_types, and description."
}
]
2 changes: 1 addition & 1 deletion screens/JourneyScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
SECURITY_PASSWORD_DESCRIPTION,
verifySecurityPassword,
} from '../services/securityPassword';
import crimeZones from '../kolhapur_crime_zones.json';
import crimeZones from '../default_crime_zones.json';

const { width } = Dimensions.get('window');

Expand Down
2 changes: 1 addition & 1 deletion services/riskAssessment.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import crimeZones from '../kolhapur_crime_zones.json';
import crimeZones from '../default_crime_zones.json';

/**
* Calculate distance between two coordinates using Haversine formula
Expand Down