このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

Address Geocoder

説明

The Address Geocoder plugin lets you attach coordinates to your posts, pages, and custom post types. On your edit screens, simply enter an address into the metabox and hit “Geocode”.

This plugin uses Google Maps API v3 to translate an address to lat/lng coordinates. A Google Maps API key is required.

Fequently Asked Questions

How do I retrieve the coordinates?

Access your data in the loop using the following functions, with the post ID passed as a parameter. For the full coordinates (in brackets):

<?php echo get_geocode_latlng( $post->ID ); ?>

For the Latitude:

<?php echo get_geocode_lat( $post->ID ); ?>

For the Longitude:

<?php echo get_geocode_lng( $post->ID ); ?>

For the Address:

<?php echo get_geocode_address( $post->ID ); ?>

スクリーンショット

  • The meta box before clicking "Geocode"
  • The meta box after clicking "Geocode"
  • The settings page

インストール

  1. Activate the plugin
  2. Go to Settings > Address Geocoder to set your Google Maps API key and choose desired post types
  3. Done! You’ll see a “Geocoder” meta box on your edit screens.

評価

2020年11月16日
It is a very useful plugin to use with Facetwp and the map plugin
2016年9月3日
does what it says very well. awesome contribution!
2016年9月3日
Light weight and allows us to select which post types the box should appear on. Great! Thanks for providing us with this plugin for free.
7件のレビューをすべて表示

貢献者と開発者

Address Geocoder はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Address Geocoder” は1ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Address Geocoder” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.0.1

  • Tested compatibility against WP 5.1

1.0

  • Better meta box handling (props @burkeshartsis)
  • Draggable marker (props @burkeshartsis)
  • Various fixes and improvements

0.9.2

  • Minor cleanup
  • Added new icon and banner to wordpress.org plugins page

0.9.1

  • Tested compatibility against WP 4.4

0.9

  • A Google Maps API key is now required. Go to Settings > Address Geocoder to set your Google Maps API key.