Skip to content

Latest commit

 

History

History
executable file
·
27 lines (19 loc) · 797 Bytes

README.textile

File metadata and controls

executable file
·
27 lines (19 loc) · 797 Bytes

Simple jQuery plugin for Geolocation based on addresses

Usage:

  
    <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>        
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.js" type="text/javascript"></script>

    // Geolocate and plot one address
    $("#mapCanvas").geolocate("1 Infinite Loop, Cupertino, Santa Clara, California 95014");

    // Geolocate more than one address
    $("#mapCanvas").geolocate([
      "Rua Domiciano Leite Ribeiro, 210, São Paulo, SP, Brasil", 
      "Leonardo da Vinci, 200, SP, São Paulo"
    ]);

  

For a real usage take a look on example.html file.

License

Under no license, do whatever you want with this.
Original author: 2011 Daniel Lopes,