Exemple #1
0
    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 )
Exemple #2
0
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)
Exemple #3
0
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)