app/views/collection_objects/geo_json.json.jbuilder
#json.extract! @collection_object, :id, :total, :type, :preparation_type_id, :repository_id, :created_by_id, :updated_by_id, :project_id, :created_at, :updated_at
json.success true
json.result do
json.id @collection_object.id
json.type @collection_object.type
json.geo_json @collection_object.try(:collecting_event).to_geo_json_feature if @geo_json
end
# curl 'http://localhost:3000/api/v1/collection_objects/3/geo_json?token=FindYourOwnToken&project_id=1'
# wget "http://localhost:3000/api/v1/collection_objects/3/geo_json?token=FindYourOwnToken&project_id=1" -O tmp/test.json