public void indexRelations(Entity e, OsmDbAccessorContext ctx) throws SQLException { if (e instanceof Relation && e.getTag(OSMTagKey.ROUTE_MASTER) != null) { ctx.loadEntityRelation((Relation) e); for (Entry<Entity, String> child : ((Relation) e).getMemberEntities().entrySet()) { Entity entity = child.getKey(); masterRoutes.put(entity.getId(), (Relation) e); } } }
public void visitEntityMainStep(Entity e, OsmDbAccessorContext ctx) throws SQLException { if (e instanceof Relation && e.getTag(OSMTagKey.ROUTE) != null) { ctx.loadEntityRelation((Relation) e); TransportRoute route = indexTransportRoute((Relation) e); if (route != null) { insertTransportIntoIndex(route); } } }
@Override public boolean findStreetNode(Entity e) { return addressStreetNodeLocalSet.contains(e.getId()); }
@Override public boolean findBuilding(Entity e) { return addressBuildingLocalSet.contains(e.getId()); }