Adding method to serialize network to GeoJSON.