def test_routingFacade (self): ''' ''' print "testing route" # result = RoutingFacade.findRoute ( -1.0001, 51.0001 , -0.900000, 51.900001 ) result = RoutingFacade.findRoute ( -0.881398612739, 51.6060585561, 0.41067037805, 51.6029081682 )
def getRoute(request, fromX, fromY, toX, toY): print "in get route : %s, %s " % (fromX, toX) JSON_Result = RoutingFacade.findRoute(fromX, fromY, toX, toY) return HttpResponse(JSON_Result)
def getRoute (request, fromX, fromY, toX, toY ): print "in get route : %s, %s " %(fromX, toX) JSON_Result = RoutingFacade.findRoute (fromX, fromY, toX, toY ) return HttpResponse (JSON_Result)