| @@ 520-526 (lines=7) @@ | ||
| 517 | * |
|
| 518 | * @api |
|
| 519 | */ |
|
| 520 | public function getUvi($query, $appid = '') |
|
| 521 | { |
|
| 522 | $answer = $this->getRawUviData($query, $appid); |
|
| 523 | $json = $this->parseJson($answer); |
|
| 524 | ||
| 525 | return new CurrentUvi($json); |
|
| 526 | } |
|
| 527 | ||
| 528 | /** |
|
| 529 | * Returns the history uvi at the location you specified. |
|
| @@ 545-551 (lines=7) @@ | ||
| 542 | * |
|
| 543 | * @api |
|
| 544 | */ |
|
| 545 | public function getUviHistory($query, $appid = '') |
|
| 546 | { |
|
| 547 | $answer = $this->getRawUviHistory($query, $appid); |
|
| 548 | $json = $this->parseJson($answer); |
|
| 549 | ||
| 550 | return new CurrentUvi($json); |
|
| 551 | } |
|
| 552 | ||
| 553 | /** |
|
| 554 | * Returns whether or not the last result was fetched from the cache. |
|