Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
demouth committed Feb 2, 2014
1 parent 4e712be commit 7db3ba5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#DmGeocorder

[![License](https://poser.pugx.org/demouth/dmgeocoder/license.png)](https://packagist.org/packages/demouth/dmgeocoder)
[![Latest Stable Version](https://poser.pugx.org/demouth/dmgeocoder/v/stable.png)](https://packagist.org/packages/demouth/dmgeocoder)
[![Latest Unstable Version](https://poser.pugx.org/demouth/dmgeocoder/v/unstable.png)](https://packagist.org/packages/demouth/dmgeocoder)

PHP製の日本国内用ジオコーディングライブラリです。
住所から緯度経度を調べたり(ジオコーディング)、緯度経度から住所を調べたりすること(逆ジオコーディング)が可能です。

Expand All @@ -16,7 +20,7 @@ PHP製の日本国内用ジオコーディングライブラリです。

##使い方

###住所名から緯度経度を取得する
####使い方1 住所名から緯度経度を取得する

住所文字列をDm_Geocoder::geocode()の第一引数に渡すと、引数を元に住所検索を行い、詳細な住所情報を返します。
この住所情報には緯度経度情報を含みます。
Expand Down Expand Up @@ -85,7 +89,7 @@ $addresses = Dm_Geocoder::geocode('愛媛県');
echo count($addresses); // 2439
```

###緯度経度から該当する住所を検索する
####使い方2 緯度経度から該当する住所を検索する

Dm_Geocoder::reverseGeocode(緯度,軽度)と渡すと、その緯度経度から近い順に住所情報を複数返します。
```php
Expand Down Expand Up @@ -133,6 +137,8 @@ echo count($addresses); // 10

####手動でファイルをrequireする場合

ソースをダウンロードして、下記のようにsrcディレクトリ以下のソースを読み込んでください。

```php
//autoloaderを使わず、Classファイルを手動で読み込む場合は下記ファイルをすべて読み込んでください
$LIB_DIR = realpath(dirname(__FILE__).'/../src/').'/';
Expand Down

0 comments on commit 7db3ba5

Please sign in to comment.