Displaying google "link" from Address

Discussion in 'Google API' started by Riceman1000, Jun 28, 2012.

  1. #1
    Hi, The code below will display a google map and marker in my mobile page, but I would like to display a "link" that opens up the google map App on a mobile device. The link I am referring to is the same as if you typed the address into google maps.com, and then got the link from the little "keychain" link. Is this possible? Thanks for any help with this...

    
    <?php
    require('GoogleMapAPI.class.php');
    $map = new GoogleMapAPI('map');
     
    // enter YOUR Google Map Key
    $map->setAPIKey('YOURGOOGLEMAPKEY');
     
    $map->addMarkerByAddress('621 N 48th St # 6 Lincoln NE 68502','Our Address','<b>Our Address</b>');
     
    <body onload="onLoad()">
     
        <?php $map->printMap(); ?>
     
    </body>
    Code (markup):

     
    Riceman1000, Jun 28, 2012 IP