ralfhortt/geodata
最新稳定版本:0.3.5
Composer 安装命令:
composer require ralfhortt/geodata
包简介
A composer package to retrieve geodata
README 文档
README
Installation
composer require ralfhortt/geodata
Example
<?php require 'vendor/autoload.php'; use RalfHortt\GeoData\Address; $address = new Address('Mainzer Str. 37, 66111 Saarbrücken, Deutschland'); ?> <dl> <dt>Straße</dt> <dd><?= $address->getStreet() ?></dd> <dt>Hausnummer</dt> <dd><?= $address->getStreetNumber() ?></dd> <dt>PLZ</dt> <dd><?= $address->getPostCode() ?></dd> <dt>Stadt</dt> <dd><?= $address->getCity() ?></dd> <dt>Land</dt> <dd><?= $address->getCountry() ?></dd> <dt>Latitude</dt> <dd><?= $address->getLatitude() ?></dd> <dt>Longitude</dt> <dd><?= $address->getLongitude() ?></dd> </dl>
统计信息
- 总下载量: 359
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2020-07-19