Skip to content

Commit

Permalink
Update predict.php
Browse files Browse the repository at this point in the history
  • Loading branch information
k1ttyf authored Sep 11, 2024
1 parent 2b0cb87 commit d0a680c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/predict.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
$GeoSpy = new k1ttyf\GeoSpy\API("YOUR_API_KEY");

try {
$result = $GeoSpy->predict(file_get_contents($image));
$result = $GeoSpy->predict($image);
foreach($result["geo_predictions"] as $value){
echo "Latitude: " . $value["coordinates"][0] . PHP_EOL;
echo "Longitude: " . $value["coordinates"][1] . PHP_EOL;
Expand Down

0 comments on commit d0a680c

Please sign in to comment.