Added methods for converting objects to GeoJSON.