Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/m/o/modrana-HEAD/modules/mod_route/routing_providers.py   modrana(Download)
                return RoutingResult(route,
                                     lookupDuration=time.time() - routingStart)
            elif result.type == result.LOAD_FAILED:
        # to modRana Way object
        if directions is not None:
            returnCode = constants.ROUTING_SUCCESS
            route = way.fromGoogleDirectionsResult(directions)

src/m/o/modrana-HEAD/modules/mod_route/mod_route.py   modrana(Download)
    def _handleRoutingResultCB(self, result):
        # remove any previous route description
        self.text = None
        if result.route and result.returnCode == constants.ROUTING_SUCCESS:
            # process and save routing results