Representation Learning on Spatial Networks