Skip to content

Commit 2e318c5

Browse files
authored
Update predict.php
1 parent 1aba178 commit 2e318c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/predict.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
$GeoSpy = new k1ttyf\GeoSpy\API("YOUR_API_KEY");
66

77
try {
8-
$result = $GeoSpy->predict($image);
8+
$result = $GeoSpy->predict(file_get_contents($image));
99
foreach($result["geo_predictions"] as $value){
1010
echo "Latitude: " . $value["coordinates"][0] . PHP_EOL;
1111
echo "Longitude: " . $value["coordinates"][1] . PHP_EOL;

0 commit comments

Comments
 (0)