Set coordinates

@param \Geocoder\Model\Address $coordinates
@return Geo
514382
private function setCoordinates(\Geocoder\Model\Address $coordinates) {

        $this->coordinates = [
            'latitude'      => $coordinates->getLatitude(),
            'longtitude'    => $coordinates->getLongitude()
        ];

        return $this;
    }
1043209
public function setY(float $y): self {
        $this->coordinates[self::Y] = $this->gf
                ->getPrecisionModel()
                ->makePrecise($y);
        return $this;
    }
170307
public function getAddresses(CoordinatesInterface $coordinates) : AddressCollection
    {
        $url = $this->coordinatesQuery($coordinates);
        $json = $this->fetchUrl($url);

        // convert google data to address collection
        $results = [];
        foreach ($json->results as $result) {
            $address = AddressBuild::create($result);
            $address->setCoordinates($coordinates);
            $results[] = $address;
        }

        return new AddressCollection($results);
    }
674021
public function setAddress(array $address)
    {
        if (!empty($address) && is_array($address)) {
            $this->address = $address;
        }

        return $this;
    }
982625
public function setLongitude(float $longitude): self
    {
        $this->_longitude = $longitude;
        $this->_locationType = self::LOCATION_TYPE_LATLON;

        return $this;
    }
632926
public function setAddressType($addressType)
    {
        if (!in_array($addressType,
            array(
                AF_INET,
                AF_INET6,
                AF_UNIX
            )
        )) {
            throw new \DomainException('Unsupported address type');
        }

        $this->addressType = $addressType;
        return $this;
    }
45034
public function setCoordinate(Coordinate $coordinate): self
    {
        $this->options['coordX'] = $coordinate->getLatitude();
        $this->options['coordY'] = $coordinate->getLongitude();

        return $this;
    }
257246
public function geocodeAddress($address)
	{
		$uri = new Uri('https://maps.googleapis.com/maps/api/geocode/json');

		$uri->setVar('address', urlencode($address));

		if (($key = $this->getKey()))
		{
			$uri->setVar('key', $key);
		}

		$response = $this->http->get($uri->toString());

		if ($response->code < 200 || $response->code >= 300)
		{
			throw new RuntimeException('Error code ' . $response->code . ' received geocoding address: ' . $response->body . '.');
		}

		$data = json_decode($response->body, true);

		if (!$data)
		{
			throw new RuntimeException('Invalid json received geocoding address: ' . $response->body . '.');
		}

		if ($data['status'] != 'OK')
		{
			return;
		}

		return $data['results'][0];
	}
752757
public function geocode($address, array $params = []) {
		$this->_buildGeocoder();

		try {
			$result = $this->geocoder->geocode($address);
		} catch (NoResult $e) {
			throw new InconclusiveException(sprintf('Inconclusive result (total of %s)', 0));
		}

		if (!$this->_config['allowInconclusive'] && !$this->isConclusive($result)) {
			throw new InconclusiveException(sprintf('Inconclusive result (total of %s)', $result->count()));
		}
		if ($this->_config['minAccuracy'] && !$this->containsAccurateEnough($result)) {
			throw new NotAccurateEnoughException('Result is not accurate enough');
		}

		return $result;
	}
290770
public function getCoordinatesByObject(AddressInterface $address) : CoordinatesInterface
    {
        $url = $this->addressQuery($address->getFormattedAddress());
        $json = $this->fetchUrl($url);

        // convert google data to coordinates
        $coordinates = CoordinatesBuild::create($json->results[0]);

        return $coordinates;
    }
754356
public function setLocation($location) {
    $c = http_response_code();
    $this->_setHeader('Location',$location);
    http_response_code($c);
    return $this;
  }
481533
public static function geocode($address)
	{
		if(!is_string($address)) return array();
		
		$query = new Dm_Geocoder_Query($address);
		$finded = Dm_Geocoder_GISCSV_Finder::find($query);
		
		return $finded;
		
	}
575923
public function offsetSet($name, $address)
    {
        if (!$address instanceof Address) {
            $address = new Address($address);
        }
        return $this->_data[$address->email()] = $address;
    }
528733
public function setAddress($address)
    {
        if (null === $address) {
            $this->address = null;
        } elseif ('' == $address) {
            $this->address = '';
        } else {
            $this->assertValidAddress($address);
            $this->address = $address;
        }
        $this->setCachedValue(null);
    }
895291
public function setAddressAddOn($addressAddOn): Hybrid
    {
        self::validateSetLength('addressAddOn', $addressAddOn);
        $this->data['addressAddOn'] = $addressAddOn;

        return $this;
    }
716035
public function setReplyToAddress(string $address, array $variables = []): self
    {
        $this->addRecipient('h:reply-to', $address, $variables);

        return $this;
    }
206217
public function setAddressOrigin(\Core\Entity\Address $address_origin = null) {
        $this->address_origin = $address_origin;

        return $this;
    }