1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to create own map using PHP+MySQL (like google-map) but without using API

Discussion in 'Google API' started by komrad, Mar 24, 2008.

  1. #1
    I would like to know how to create a google-map alike site using PHP+MYSQL and MY OWN MAP..not the one that is provided by google..and also how to write the codes/API since i don't want to use the API by google coz' i would like to write my own.

    plz point any reference site, etc. for my revision. thanks! :D
     
    komrad, Mar 24, 2008 IP
  2. QiSoftware

    QiSoftware Well-Known Member

    Messages:
    805
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    158
    #2
    I assume you want to use MySQL for pointers to map data-- however that would be awfully expensive in terms of resources and creating the actual maps. If not Google's map data-- whose data would you use?

    Q...
     
    QiSoftware, Mar 24, 2008 IP
  3. SGBoise

    SGBoise Peon

    Messages:
    647
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    From my understanding you just want to write own script to generate a sitemap for google. I created one recently for one of my scripts. My script doesn't use a database but if you look at where it loops you would just put own code to get the data from mysql.

    It will atleast get you started.


    <?php
    echo "<p>GENERATING SITEMAP</p>";
    echo "Please wait...<br><br>";

    if (!$xmlfile = fopen("../sitemap.xml", "w")) {
    echo "Cannot open file ($filename)";
    exit;
    }

    //
    // Write main website
    //
    fwrite($xmlfile,
    "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
    <urlset xmlns=\"http://www.google.com/schemas/sitemap/0.84\">
    <url>
    <loc>{$website_url]}/</loc>
    <lastmod>".date('Y-m-d')."</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.7</priority>
    </url>
    ");


    //
    // Write all of links
    //
    $stagarray = explode(",", $searchkeywords);
    for ($i = 0; $i < count($stagarray); $i++) {
    //echo '<li><a href="'.$website.'/tags/'.$stagarray[$i].'.html">'....file, "</urlset>"); fclose($xmlfile); ?>
     
    SGBoise, Mar 25, 2008 IP
  4. komrad

    komrad Notable Member

    Messages:
    2,534
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    230
    #4
    ^^ It's not about google sitemap. :D
     
    komrad, Mar 25, 2008 IP
  5. SGBoise

    SGBoise Peon

    Messages:
    647
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Oops. I should read more carefully.
     
    SGBoise, Mar 25, 2008 IP
  6. xiaoniou

    xiaoniou Greenhorn

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #6
    thans for SGB
     
    xiaoniou, May 11, 2010 IP
  7. atanik

    atanik Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i also trying to do that one and i created the algoritm. thats is slices the photos from google map and rename in my format as beloving picture ilkzoom.jpg

    but i am thinking that will be as pyramid when the zoom in and it has to be limitation for each zooms to not allowing clik up,down,left,right.
     
    atanik, Dec 8, 2010 IP