ride/app-orm-geo
Composer 安装命令:
composer require ride/app-orm-geo
包简介
Geo location model for the Ride ORM.
README 文档
README
This module adds a geo location model to the ORM. This model can be used to store geographic locations like continents, countries, regions, cities, ...
Import your data
By default all continents and countries are provided as the regions of some countries. To add the cities, download your country archive from http://download.geonames.org/export/zip. Extract the the country text file from the archive to data/geo/geonames in your application directory (or in a module).
You can now call ride\service\GeoImportService->import() to import the continents and countries.
To import the cities, call ride\service\GeoImportService->importCities('country-code').
This can take some time depending on the size of the country.
Related Modules
Installation
You can use Composer to install this application.
composer require ride/app-orm-geo
统计信息
- 总下载量: 397
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-03