Build your professional network on facebook via our app Go to app
 
 
Posted in Community :

Google Map Magic

 
Industry : IT Services Functional Area : Open Source
Activity:  0 comments  608 views  last activity : 07 06 2010 20:18:04 +0000
 Refer 30
Share
 
 
 

Hi, 

This section describes how to create a standard XML Sitemap that notifies Google to crawl your geo content.

The basic steps for publishing your geo content are as follows:

  1. Create the KML or GeoRSS content. Be sure to add attribution tags, which will appear in the Google Search results for your content.
  2. Post your files on a public web server.
  3. Create the Sitemap file. Copy this file to the root directory of your website.
  4. Submit your Sitemap to Google.

Note: You can also create a standard robots.txt file to instruct Google not to index specific pages on your website.

Step 1: Create the content and include attribution tags.

KML 2.2 supports new elements for including attribution data in your KML file. The elements used in KML are as follows:

  • atom:author element - parent element for atom:name
  • atom:name element - the name of the author
  • atom:link element - contains the href attribute
  • href attribute - URL of the web page containing the KML/KMZ file

These elements are defined in the Atom Syndication Format. The complete specification is found at http://www.w3.org/2005/Atom. Your KML file (and GeoRSS feed) must reference the Atom namespace, as shown in the examples that follow.

Here is an example of a KML file with information about the author and the website that contains the KML file:

<kml xmlns="http://www.opengis.net/kml/2.2" 
     xmlns:atom="http://www.w3.org/2005/Atom">
  <Document>
    <name>One Reader's View of Harry Potter</name>    
    <atom:author>      
      <atom:name>J. K. Rowling</atom:name>    
    </atom:author>    
    <atom:link href="http://www.harrypotter.com" />    
    <Placemark>      
      <name>Hogwarts</name>      
      <Point>        
        <coordinates>-3.576327,50.620920</coordinates>      
      </Point>    
    </Placemark>    
    <Placemark>
      <name>Little Hangleton</name>
      <Point>
        <coordinates>-0.006660,52.409369</coordinates>
      </Point>    
    </Placemark>  
  </Document> 
</kml>

Here are a few other tips for creating KML content that provides useful search results:

  • Give your <Document> a meaningful <name>.
  • Provide a relevant <description> for each <Placemark> so that the user can see the context of the search result.
  • If you have a lot of data, divide it into topic-specific layers.
  • Give each <Feature> an "id" so that the search result can link directly to it.

Similarly, you can create GeoRSS feeds with the Atom namespace and include the same Atom elements for attribution. (See http://georss.org/atom.) This example shows use of <link>, href, <author>, and <name>, which are all used by Google Search for RSS feeds with geolocated data.

<?xml version="1.0" encoding="UTF-8"?> 
<feed xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:georss="http://www.georss.org/georss"
xmlns="http://www.w3.org/2005/Atom">
<title>Best Breakfasts in NYC Feed</title>
<link href="http://foodCritic.com/feeds/notes_for" rel="self"/>
<id>http://foodCritic.com/notes_for</id>
<updated>2007-03-09T09:14:02Z</updated>
<generator uri="http://foodCritic.com">TheFoodCritic</generator>
<entry>
<title>the original Big Stacks, best pancakes this side of the Mississippi</title>
<author>
<name>arnold</name>
</author>
<georss:point>40.776371 -73.978439</georss:point>
<published>2007-03-08T14:19:47Z</published>
<content type="html"> . . . </content>
</entry>
</feed>

Step 2: Post your content on a public web server.

Post your KML files or GeoRSS feed on a public web server. For KML/KMZ, be sure your server is set to return KML/KMZ MIME types, as described in KML Samples.

Step 3: Create the Sitemap file.

The Sitemap file (for example, sitemap.xml) follows the standard Sitemap format described in http://www.sitemaps.org/protocol.html, with the additional geo-specific elements defined by Google shown in the example below. It contains a set of pointers to URLs containing the geolocated data (KML files, KMZ archives, and GeoRSS feeds) for Google to index. Google will crawl your KML files, KMZ archives, and GeoRSS feeds and display information about them to users when they search for information about a certain location or topic. See the Webmaster Tools for more information on creating and submitting Geo Sitemaps.

Use the <geo:geo> element to specify that the URL is a geo-related file. Within that element, use the <geo:format> element to specify the type of file, which can be kml for KML files, kmz for KMZ archives, or georss for RSS with GeoRSS extensions. Here is an example of a sitemap.xml file:

<?xml version="1.0" encoding="UTF-8"?>
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
	  xmlns:geo="http://www.google.com/geo/schemas/sitemap/1.0">
    <url>      
      <loc>http://www.example.com/example1.kml</loc>
      <geo:geo>
        <geo:format>kml</geo:format>
      </geo:geo>
    </url> 
    <url> 
      <loc>http://www.example.com/example2.kml</loc>
      <geo:geo>
        <geo:format>kml</geo:format>
      </geo:geo>
    </url> 
    <url> 
      <loc>http://www.example.com/feeds/example3.xml</loc>
      <geo:geo>
        <geo:format>georss</geo:format>
      </geo:geo>
    </url>
  </urlset>
 

You can include multiple <url> tags in the Sitemap file, up to a maximum of 50,000 tags, with a maximum file size of 10 MB for the sitemap.xml file . If you have more than 50,000 URLs, you can create multiple Sitemap files. (See the Sitemap Protocol for more details, as well as this article.)

Once you have created the Sitemap file, copy it to the root directory of your website.

Step 4: Submit your Sitemap to Google.

The last step is to add your Sitemap using Google Webmaster Tools and your Google Account.

Now users can easily find their way to your geo presentations and articles. For more information on Sitemaps, check out the Webmaster Tools on Creating and Submitting Sitemaps

 
0 comments on "Submit Your Geo Content to Google"
Add your comment on "Submit Your Geo Content to Google"

Rate:
Submit
Leading Recruitment Firm
  • Create a confidential Career Profile and Resume/C.V. online
  • Get advice for planning their career and for marketing of experience and skills
  • Maximize awareness of and access to the best career opportunities
Viewers also viewed
Sex was a hot online search topic for children in 2009 , according to findings released by...
 
1366 referals 29 votes, 4712 views
Facebook has become a drug. Everyone wants to be on Facebook. Even if not everyone still...
 
1632 referals 24 arguments, 801 views
"I was a Google user before, but the more I used Bing the more I liked it" ---- this is what...
 
1361 referals 35 arguments, 1099 views
more...  
Recent Knowledge (91)
Yes they are going to be here.. and the first destination is Bangalore... Google cars and trikes...
 
1339 referals 12 comments, 443 views
HI The most stressful part of job interview is to get stuck in those questions which are generic...
 
0 referals 6 comments, 323 views
I refuse to respond to TROLLS. Pl see my earlier post on THE OTHER SIDE OF THE COMPANY THAT ANNA...
 
1194 referals 10 comments, 358 views
more...  
More From Author
Wanted Indian Internet workers. Earn Rs.2000/day working part time on internet. Dear Friends, Are you interested to make Rs.2,000 to Rs.3,000 A Day with part time jobs? This is not a get rich quick scheme. This is a legal opportunity to earn...
more...