<?php
namespace SabaiApps\Directories\Component\Map\FieldType;

use SabaiApps\Directories\Component\Field\IField;
use SabaiApps\Directories\Component\Entity\Type\IEntity;

interface ICoordinates {

	/**
	 * @param IField $field
	 * @return array [lat_column => string, lng_column => string]
	 */
	public function mapCoordinatesInfo( IField $field );
	/**
	 * @param IField  $field
	 * @param IEntity $entity
	 * @return array [lat => float, lng => float]
	 */
	public function mapCoordinates( IField $field, IEntity $entity );
}
