How to use the routemap.common.guideposts.NetworkNodes function in routemap

To help you get started, we’ve selected a few routemap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github waymarkedtrails / waymarked-trails-site / db / src / routemap / cycling / db.py View on Github external
self.segment_table.set_num_threads(self.options.numthreads)

        hiertable = osgende.RelationHierarchy(self.db,
                            name=conf.DB_HIERARCHY_TABLE,
                            subset="""SELECT id FROM relations
                                      WHERE %s""" % (conf.TAGS_ROUTE_SUBSET))

        hroutes = hrel.Routes(self.db, self.segment_table, hiertable)
        hroutes.set_num_threads(self.options.numthreads)

        self.data_tables = [
            self.segment_table,
            hiertable,
            hroutes,
            hposts.GuidePosts(self.db, 'bicycle', True),
            hposts.NetworkNodes(self.db)
        ]
        self.style_tables = [
            hstyle.cyclingStyleDefault(self.db)
        ]
github waymarkedtrails / waymarked-trails-site / db / src / routemap / riding / db.py View on Github external
self.segment_table.set_num_threads(self.options.numthreads)

        hiertable = osgende.RelationHierarchy(self.db,
                            name=conf.DB_HIERARCHY_TABLE,
                            subset="""SELECT id FROM relations
                                      WHERE %s""" % (conf.TAGS_ROUTE_SUBSET))

        hroutes = hrel.Routes(self.db, self.segment_table, hiertable)
        hroutes.set_num_threads(self.options.numthreads)

        self.data_tables = [
            self.segment_table,
            hiertable,
            hroutes,
            hposts.GuidePosts(self.db, 'riding', True),
            hposts.NetworkNodes(self.db),
        ]
        self.style_tables = [
            hstyle.RidingStyleDefault(self.db)
        ]
github waymarkedtrails / waymarked-trails-site / db / src / routemap / hiking / db.py View on Github external
# table saving the relation between the routes
        hiertable = osgende.RelationHierarchy(self.db,
                            name=conf.DB_HIERARCHY_TABLE,
                            subset="""SELECT id FROM relations
                                      WHERE %s""" % (conf.TAGS_ROUTE_SUBSET))

        routetable = hrel.Routes(self.db, self.segment_table, hiertable)
        routetable.set_num_threads(self.options.numthreads)

        self.data_tables = [
            self.segment_table,
            hiertable,
            routetable,
            hposts.GuidePosts(self.db, 'hiking'),
            hposts.NetworkNodes(self.db),
        ]
        self.style_tables = [
            hstyle.HikingStyleDefault(self.db)
        ]