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 EarthãGoogle Maps APIãªã©ãåã測å°ç³»ã§ãæä¾ããå¿ è¦ãããã¾ããGoogleã¯ããããã®ãµã¼ãã¹ããå¤ãã®GPSãªã©ã§ã使ç¨ããã¦ããä¸ç測å°ç³»ï¼WGS84ï¼ã«æ£ããæå½±ããããããä½æ¥ãé²ãã¦åãã¾ããã
ä»åã®ç§»è¡ä½æ¥ãå®äºããã¨ããããã®ãã¹ã¦ã®ãµã¼ãã¹ãçµ±ä¸ããã測å°ç³»ã§ãå©ç¨ããã ããããã«ãªãã¾ããããã§çæ§ã«ãé¡ãã§ããGoogle Maps APIãä¸ç測å°ç³»ã«ç§»è¡ããæå¾ã®ã¹ãããã¨ãã¦ãçæ§ãå°å³ä¸ã«é ç½®ãããã¼ã¿ãæ¥æ¬æ¸¬å°ç³»ï¼Tokyo Datumï¼ã«åºã¥ãã緯度çµåº¦ããã
ä¸ç測å°ç³»ï¼WGS84ï¼ã«åºã¥ãã緯度çµåº¦ã«ç§»è¡ããã ããããé¡ãç³ãä¸ãã¾ãããã®ç§»è¡ããµãã¼ããããããæ¬æ¥ãããAPIã®JavaScriptãå¼ã³åºãéã«ã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