You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Utilize the Google Maps Directions API to determine an optimal path.
First pass at the pathfinding algorithm:
Define a cost algorithm for a path
This includes the length of the path and the concentration of crime along the path.
Define the crime density function [(lat, long) -> intensity] to be the sum of Gaussian curves centered on each crime datapoint
Generate a polyline which approximates a safe path
Limit pathfinding algorithm to the circle which includes the starting and ending points on the diameter. This limits the path to pi times as long as the direct path (approximately)
Determine the cost of the polyline
Weighted sum of the length of the polyline and line integral of the crime density function
Weights of the sum are partially set in advance for good performance, but can be adjusted based on the user's tolerance for risk of crime
Utilize the Google Maps Directions API to determine an optimal path.
First pass at the pathfinding algorithm:
The text was updated successfully, but these errors were encountered: