-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
35 lines (23 loc) · 877 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
require 'vendor/autoload.php';
use Location\Coordinate;
use Location\Distance\Vincenty;
$coord1 = new Coordinate(49.378518, 32.152849);
$coord2 = new Coordinate(49.426007, 32.094617);
$calculator = new Vincenty();
echo '<h1> Дом <--------> Geekhub </h1>';
echo '<br>';
echo '<br>';
echo 'Растояние между двумя кординатами : ', $calculator->getDistance($coord1, $coord2), ' метров';
//=====================================================
echo '<br>';
echo '<br>';
echo '<br>';
echo '<=====================================================================>';
echo '<br>';
echo '<br>';
use Temperature\Factory\DefaultFactory as TemperatureFactory;
$factory = new TemperatureFactory();
$temper = $factory->build(88, 'F');
echo 'Температура в: ', $temper, ' = ', $temper->convert('C')->setPrecision(2);
?>