¦h¦~©î°£¤uµ{¸gÅç¡A±MÀç¸ËæC©î°£
¹j¶¡¥´À𵥬I¤u¡AÅwªï¬¢¸ß
¤ñ»ùºô³Ð·s¼s§i©ÛµP³]­p¡A¿Ë¥Á»ù®æ
³»¯Å½è·P¡A³sÂê¥ø·~¦X§@±ÀÂË¡I

­º­¶  ¡E  tw ½×¾Â ¡E µ{¦¡³]­p°Q½×     ¡E 

Google Map¦a§}¬d¸ß

©ÐªF¡G¤p±i
µoªí®É¶¡¡G2010-08-28
[ÀËÁ|]


\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">



Google Maps (¥xÆW)




GClientGeocoder




¦a§}¡G






http://klc-km.blogspot.com/2008/04/google-map-api-6.html\'>http://klc-

km.blogspot.com/2008/04/google-map-api-6.html


extraction.html\">
http://code.google.com/apis/maps/documentation/examples/geocoding-

extraction.html






  • ÃÙ§Uºô¯¸       

    ¼s§Q¤£°Ê²£-ªO¾ô¦b¦a¥Í®Ú³Ì¹ê¦b--·sªO¯S°Ï«ü¦W«×³Ì°ª¡B­È±o±z«H¿àªº¦n©Ð¥ò
    §¹¾ã©Ð°T¡A©Ð«Î¡B©±­±¼öªùºë¿ïª«¥ó¡A¼s§Q¤£°Ê²£ Àu½è¥ò¤¶¡A©Ð«Î¯²¸î¡B¶R½æ¸ê°T³z©ú¡A¥æ©ö¯u¦w¤ß¡I
    ¼s§Q¤£°Ê²£-·sªO¯S°Ï«ü¦W«×³Ì°ª¡B­È±o±z«H¿àªº¦n©Ð¥ò
    ±zªº¦«¥I,¼s§Q¥Î¤ß¬°±zªA°È

  • 1 ¼Ó¦í¤á¡Gªü³Í
    µoªí®É¶¡¡G2010-08-28
    [ÀËÁ|]

    1.GClientGeocoder()¬OGmapªº¦a²z½s½XªA°È¡A½Ð¦bfunction initialize() ¤¤¥[¤J¡F

    geocoder = new GClientGeocoder();

    2.¦bfunction initialize() ¤U¤è¥[¤J¥Î¨Ó·j´Mªº¨ç¼ÆshowAddress()¡G

    function showAddress(address) {
    geocoder.getLatLng(
    address,
    function(point) {
    if (!point) {
    alert("§ä¤£¨ì¡G" + address);
    } else {
    map.setCenter(point, 13);
    var marker = new GMarker(point, {draggable: true ,bouncy:true});
    map.addOverlay(marker);
    marker.openInfoWindowHtml(address);
    }
    }
    );
    }

    3.¦]¬° initialize() ©M showAddress() ³£·|¥Î¨ì map ¤Î geocoder¡A©Ò¥H¡A¦b initialize() «e¥ý«Å§i³o¨â­ÓÅܼÆ

    var map =null;
    var geocoder =null;

    4.³]©w¿é¤J¦a§}ªº¤å¦r®Ø¡G






    ¤G¡B¦s¤J¦a§}¡B¸g½n«×
    1.§Q¥Îdocument.getElementById("Äæ¦ì¦W").value ±N­Èµ¹¶ë¶i¥hªí³æ¤¤¡C
    2.¦¹¥~¡A§ä¨ìªº¦ì¸m¦³®É«á·|¦³»~®t¡A¦]¦¹¡A«Ø¥ß¤@­ÓºÊÅ¥¨Æ¥ó¡A¬ö¿ý½Õ¾ã«á¤§¦ì¸m¡C

    document.getElementById("latlng").value = markerLatLng.toString();
    document.getElementById("name").value = address;

    //²¾°Ê¸`ÂI«á­n¶i¦æªº°Ê§@
    GEvent.addListener(marker, "dragend", function() {
    markerLatLng = marker.getLatLng();
    document.getElementById("latlng").value = markerLatLng.toString();
    });

    ¤T¡BŪ¥X¤w¦s¦ì¸m
    1.§Q¥Î showAddress('{$latlng}') ¨Ó¾É¨ì§Ú­Ì­nªººë½T¦ì¸m¡C

    function list_map(){
    $sql="select `latlng`,`name` from `gmap`";
    $result=mysql_query($sql) or die($sql);
    $main="
      ";
      while(list($latlng,$name)=mysql_fetch_row($result)){
      $main.="
    1. $name
    2. ";
      }
      $main.="
    ";
    eturn $main;
    }









    2 ¼Ó¦í¤á¡Gªü¥ç
    µoªí®É¶¡¡G2010-08-28
    [ÀËÁ|]




    http://my-web-design.blogspot.com/2007/09/google-maps-api.html
    http://ianjung1974.blogspot.com/2008/05/google-maps-api.html

    GClientGeocoder
    http://www.my-life.tw/hosting-talk/thread-418-1-1.html
    http://itgroup.blueshop.com.tw/uuuiii00/AllenJ?n=convew&i=20783




    3 ¼Ó¦í¤á¡Gªü¤O
    µoªí®É¶¡¡G2010-09-04
    [ÀËÁ|]

    ²³æª©¥»



    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">



    Google Maps API�d��::::�x�n������











    �@�@ 3 �H�^���@�@��ܭ��� �i��1 ���j 

    �m�W�G
    �G�i���e�G