<?php

class LocationTransformer extends Transformer
{

	/**
	 * Tranform an area
	 *
	 * @param $location
	 * @return array
	 */
	public function transform($location)
	{
		return [
			'id' => (int)$location['id'],
			'geolat' => (float)$location['geolat'],
			'geolng' => (float)$location['geolng']
		];
	}

}