dimsog/php-geo-image

一个非常小的库,用于从图像中提取地理坐标(经度和纬度)

1.0.0 2020-10-16 08:53 UTC

This package is not auto-updated.

Last update: 2024-09-29 02:59:07 UTC


README

一个非常小的库,用于从图像中提取地理坐标(纬度和经度)

支持的PHP版本

  • PHP 5.4
  • PHP 5.5
  • PHP 5.6
  • PHP 7.0
  • PHP 7.1
  • PHP 7.2
  • PHP 7.3
  • PHP 7.4
  • PHP 8.0
  • PHP 8.1

安装

composer require dimsog/php-geo-image

示例

use Dimsog\Geoimage\Coordinates;

$coordinates = Coordinates::extract(__DIR__ . '/image.jpg');

// $coordinates is:
// [
//      53.144123 (Latitude),
//      35.369734 (Longitude)
// ]

如果未找到坐标,则此方法返回null