boosboos /charta
用于为地址添加地理位置的命令行工具
v0.1.0
2015-04-24 08:49 UTC
Requires
- php: >=5.4.0
- ext-curl: *
- symfony/console: ~2.6
Requires (Dev)
This package is not auto-updated.
Last update: 2024-09-28 17:28:09 UTC
README
Charta 是一个用于将地理位置添加到地址的命令行工具。
安装
安装依赖项
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
使用方法
$ bin/carta convert <input file> <output file>
目前仅支持CSV文件作为<输入文件>
,以及JSON文件作为<输出文件>
。
CSV文件格式
<Name>;<Street>;<Postal code>;<City>
JSON文件格式
{ "Name": "<Name>", "Address": { "Street": "<Street>", "PostalCode": "<Postal code>", "City": "<City>", "Geo": { "Lat": 123, "Lng": 456 } } }
许可证
Charta 在MIT许可证下发布。