Define the Node and Way classes and build the node graph in readgeodata