Custom Routing

I’m doing a project for school where I will be applying a crime model of Minneapolis onto the city and hope to be able to create an application that would return the “safest route” that the user could travel along to get from point A to point B. I was originally going to make a node for each neighborhood and have a greedy algorithm connect the nodes until the destination was reached, but he was not satisfied with this generalization.
I found the shape files for the neighborhoods and have the crime stats, example below, but I do not know where to go from here. How do I get this shape file onto the map, and what algorithms exist that will know how to traverse this information? My teacher specifically was not excited with me write this from scratch, but all I’ve found is APIs with built in routing functions, not an ability to model your own.

Crime stats:

The end goal is to create a system where users could add their own points or polygons, either positive or negative.
Thanks for any advise.

Well, all information about frameworks that are able to work with OSM data are listes at

So you have to digg a bit deeper on your own to find anythimg that firs your needs.


I think that the fastest way to try custom routing on your own computer would be to use the spatialite_osm_net tool For custom routing update the weight field according to the safety factor and re-calculate the routing network. With the command line tool it is possible to compute several different routing strategies into the same database: shortest, fastest, safest, day-time, at night etc.