Skip to content

Commit 6659fce

Browse files
author
Daniel Garcia Briseno
committed
Change event_time -> coord_time
1 parent c59b0ef commit 6659fce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Coordinator/Coordinator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private static function Get(string $url) {
3535
*/
3636
public static function HPC(float $x, float $y, string $event_time, ?string $target = null) {
3737
$target = $target ?? $event_time;
38-
$result = Coordinator::Get(HV_COORDINATOR_URL . "/hpc?x=" . $x . "&y=" . $y . "&event_time=" . urlencode($event_time) . "&target=" . urlencode($target));
38+
$result = Coordinator::Get(HV_COORDINATOR_URL . "/hpc?x=" . $x . "&y=" . $y . "&coord_time=" . urlencode($event_time) . "&target=" . urlencode($target));
3939
$response = json_decode($result, true);
4040
return array("x" => $response["x"], "y" => $response["y"]);
4141
}
@@ -50,8 +50,8 @@ public static function HPC(float $x, float $y, string $event_time, ?string $targ
5050
*/
5151
public static function Hgs2Hpc(float $latitude, float $longitude, string $event_time, ?string $target = null) {
5252
$target = $target ?? $event_time;
53-
$result = Coordinator::Get(HV_COORDINATOR_URL . "/hgs2hpc?lat=" . $latitude . "&lon=" . $longitude . "&event_time=" . urlencode($event_time) . "&target=" . urlencode($target));
53+
$result = Coordinator::Get(HV_COORDINATOR_URL . "/hgs2hpc?lat=" . $latitude . "&lon=" . $longitude . "&coord_time=" . urlencode($event_time) . "&target=" . urlencode($target));
5454
$response = json_decode($result, true);
5555
return array("x" => $response["x"], "y" => $response["y"]);
5656
}
57-
}
57+
}

0 commit comments

Comments
 (0)