places2be/position

处理地址和坐标

2.0.0 2022-12-22 07:35 UTC

This package is auto-updated.

Last update: 2024-09-22 11:19:16 UTC


README

PHP from Packagist Codacy Badge Latest Stable Version Total Downloads License

Places2Be Position

处理地址和坐标。

安装

此库是为与 Composer 一起使用而制作的。通过运行 $ composer require places2be/position 将其添加到您的项目中。

用法

设置地址如下

<?php 

use Places2Be\Position\Address;

$address = new Address(
    'Überkinger Straße', 
    '4', 
    '70372', 
    'Stuttgart', 
    'Deutschland'
);

设置坐标如下

<?php 

use Places2Be\Position\Coordinates;

$coordinates = new Coordinates(48.806032, 9.213567);

帮助

如果您有任何问题,请随时通过 hello@bitandblack.com 联系我们。

有关 Bit&Black 的更多信息,请访问 www.bitandblack.com