We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1aba178 commit 2e318c5Copy full SHA for 2e318c5
tests/predict.php
@@ -5,7 +5,7 @@
5
$GeoSpy = new k1ttyf\GeoSpy\API("YOUR_API_KEY");
6
7
try {
8
- $result = $GeoSpy->predict($image);
+ $result = $GeoSpy->predict(file_get_contents($image));
9
foreach($result["geo_predictions"] as $value){
10
echo "Latitude: " . $value["coordinates"][0] . PHP_EOL;
11
echo "Longitude: " . $value["coordinates"][1] . PHP_EOL;
0 commit comments