Google Maps API

11/10 5:44追記
Google Groupの該当URL(元ネタ)を貼り付けるのを忘れてました。
http://groups.google.com/group/Google-Maps-API-Japan/browse_thread/thread/d0ce529ce20edc4d/285aac6e0d3497a1

先ほどGoogleのChris AtenasioからGoogle GroupのGoogle Maps API グループに加入しているユーザ向けにメッセージが届いた。
自分用のメモとしてここに引用しておく。

Google Maps APIをご利用の皆様、

Google Maps APIで日本の地図を表示されている方へ、
Googleからのご協力のお願いです。

Google Maps APIにおいて、日本測地系(Tokyo Datum)のずれを修正する準備が整いました。つきましては、修正にあたりまして、皆様のご協力をお願いいたします。

日本でGoogle ローカルGoogle マップの提供を開始した際、全てのデータは日本測地系に基づいておりました。
測地系とは緯度経度を決めるための基準となる座標系のことです。)しかしながら、皆様に国境のないシームレスなサービスをご利用いただくためには、世界各国のGoogleローカルGoogleマップ(現在はGoogleローカルに統合されています)、Google EarthGoogle Maps APIなどを同じ測地系でご提供する必要があります。

Googleは、これらのサービスが、多くのGPSなどでも使用されている世界測地系WGS84)に正しく投影されるよう、作業を進めて参りました。
今回の移行作業が完了すると、これらのすべてのサービスが統一された測地系でご利用いただけるようになります。ここで皆様にお願いです。

Google Maps API世界測地系に移行する最後のステップとして、皆様が地図上に配置したデータを日本測地系(Tokyo Datum)に基づいた緯度経度から、
世界測地系WGS84)に基づいた緯度経度に移行いただきたくお願い申し上げます。

この移行をサポートするため、本日より、APIJavaScriptを呼び出す際に、CGIに新しいパラメータを加えました。

http://maps.google.co.jp/maps?file=api&v=1&key=...&datum=wgs84

のようにCGIのパラメータとして&datum=wgs84を追加されることで、世界測地系を基準とした地図をお試しいただくことができます。
(ただし、世界測地系への移行が完了した際には、このパラメータは機能しなくなります。)

地図上に配置したデータの測地系を移行する方法として、下記のようなパターンが考えられます。

  • "kjapandatumhack=false"パラメータを利用している、またはその他のJavaScriptのパッチを利用して、データを日本測地系へ変換している方はそれらのパッチをはずしてください。
  • 地図上に配置したデータの数が少ない場合は、すでに世界測地系に移行されているmaps.google.co.jpより緯度経度情報をとることができます。maps.google.co.jpにアクセスし、マークしたい場所をダブルクリックし、画面右上にある「このページのリンク」と書いてあるリンクをクリックしてください。URLのパラメータ"ll"の部分をコピーし、皆様がお持ちのデータに反映させてください。
  • 地図上に配置したデータの数が多い場合には、国土地理院の提供するソフトウェアを利用する方法もあります。下記リンクからダウンロードできるソフトウェアを利用すると、日本測地系(Tokyo Datum)のデータを日本測地系2000(JGD2000)に変換することができます。

世界測地(WGS84)と日本測地系2000(JGD2000)の誤差は+/-10cm程度です。

http://vldb.gsi.go.jp/sokuchi/tky2jgd/download/agreement.html

Google Maps APIコミュニティのメンバーの方でよりよい解決案をお持ちの方は、ぜひ情報提供をお待ちしています。

Maps API世界測地系WGS84)への移行は、12月1日に行われる予定です。その後、日本測地系(Tokyo Datum)のサポートを終了させていただきます。移行作業が難しい場合は、
できる限りのお手伝いをさせていただきますので、ご連絡ください。
お手数をおかけしますが、どうぞご協力をお願いいたします。

なお、測地系とは緯度経度を決めるための基準となる座標系のことです。
日本測地系(Tokyo Datum)、世界測地系WGS84)などが存在します。詳細につきましては、国土地理院のサイトをご参照ください。

http://www.gsi.go.jp/LAW/G2000/g2000.htm

クリス

Dear Maps API users,

We're ready to fix the Japan datum skew on the API, but we need your
help. If you are using the Maps API to show maps of Japan, please
read on.

When we launched Local and Maps in Japan, all our data was in the
Tokyo geodetic datum. A "geodetic datum" said simply defines how to
measure the latitude and longitude of a point on the earth.

Since then we've been working to accurately re-project all the bits
and pieces into the WGS84 geodetic datum - this is the one most GPS
devices read. Once we're done, you'll be able to use the same
coordinate system internationally across Local, Maps API, Earth, not
to mention your GPS. But this is where we need your help.

For the final step, shifting API maps, we need you to transform your
latitude/longitude points in Japan into WGS84.

To help with the transition, starting today you can switch to the new
WGS84 maps by adding the CGI parameter &datum=wgs84 to your API
javascript request:

http://maps.google.com/maps?file=api&v=1&key=...&datum=wgs84

Don't worry, the parameter will just turn into a no-op once we make
the WGS84 default.

The best way to transform points (Tokyo datum -> WGS84) probably
depends on your situation:

  • If you've been using "kjapandatumhack = false" or other javascript

patches, you might well be able to just rip the patch out and have
things work.

  • If you have just a few points to re-project, you can probably get

away with reading them from local.google.com(already in WGS84).
Find and double-click the place you want to mark, hit the "Link to
this page" text in the upper-right of the screen, and copy down the
"ll" parameter from the URL bar.

  • If you have more than just a few points, you might be interested in

using a more industrial conversion package. The Japan Geographical
Survey Institute has a nice grid+software solution for converting
Tokyo-datum coordinates to JGD2000(WGS84 +/- 10cm). You can
download it here:

http://vldb.gsi.go.jp/sokuchi/tky2jgd/download/agreement.html

Also I expect there might be a few members of the API community coming
out with with even better solutions, much like they did when we
launched maps with the datum hack in the first place.

Please switch to WGS84 maps by December 1st. We will be dropping Tokyo
datum support after that to make way for new and exciting things to
come.

Finally, for a bit more on geodetic datum in general, try here:

http://www.colorado.edu/geography/gcraft/notes/datum/datum_f.html

Thanks

chris