@@ 42-54 (lines=13) @@ | ||
39 | $this->realProvider = $realProvider; |
|
40 | } |
|
41 | ||
42 | public function geocodeQuery(GeocodeQuery $query): Collection |
|
43 | { |
|
44 | $startTime = microtime(true); |
|
45 | try { |
|
46 | $result = $this->realProvider->geocodeQuery($query); |
|
47 | } finally { |
|
48 | $duration = (microtime(true) - $startTime) * 1000; |
|
49 | ||
50 | $this->logQuery($query, $duration, $result); |
|
51 | } |
|
52 | ||
53 | return $result; |
|
54 | } |
|
55 | ||
56 | public function reverseQuery(ReverseQuery $query): Collection |
|
57 | { |
|
@@ 56-68 (lines=13) @@ | ||
53 | return $result; |
|
54 | } |
|
55 | ||
56 | public function reverseQuery(ReverseQuery $query): Collection |
|
57 | { |
|
58 | $startTime = microtime(true); |
|
59 | try { |
|
60 | $result = $this->realProvider->reverseQuery($query); |
|
61 | } finally { |
|
62 | $duration = (microtime(true) - $startTime) * 1000; |
|
63 | ||
64 | $this->logQuery($query, $duration, $result); |
|
65 | } |
|
66 | ||
67 | return $result; |
|
68 | } |
|
69 | ||
70 | /** |
|
71 | * @param GeocodeQuery|ReverseQuery $query |