定制 michaellindahl/php-h3 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

michaellindahl/php-h3

最新稳定版本:2.1.0

Composer 安装命令:

composer require michaellindahl/php-h3

包简介

H3: The hexagonal hierarchical geospatial indexing system system rewritten in PHP.

README 文档

README

This project provides a PHP implementation of the H3 system. The goal of this library is to minimize the complexity and requires for using the H3 library in PHP. All functions are rewritten in PHP so that there are no dependencies.

Use

The test are a great place to look to see each of the supported methods in action. Currently, not all methods of the library are supported, but please feel free to PR any missing methods that you may need.

$h3 = new MichaelLindahl\H3\H3(H3::DYLIB); $h3Index = $h3->latLngToCell(40.689421843699, -74.044431399909, 10); // $h3Index: '8a2a1072b59ffff' 

Structure

This package is structed with H3.php as the main entry point and shared location for any constants used throughout the library. Each section of the API Reference is given it's own Trait and Test file to help maintain organization.

Building the bin directory

In order to build the bin directory on macOS a cross-compiler that is capable of generating Linux objects must be used, e.g.:

brew install FiloSottile/musl-cross/musl-cross 

Contributions

Contributions are welcomed. Please be kind, both in reviewing and contributing. Follow the project goals. And include tests.

Alternatives

统计信息

  • 总下载量: 23.77k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04