[uf-discuss] Best Practice for wrapping hCard information with geo, for display on Google Earth?

2006-11-30 Thread Costello, Roger L.
Hi Folks,

I am when using Brian Suda's xhtml2kml.xsl tool to create a KML file
from an hCard.  Then I display the KML on Google Earth.

What is the best practice for wrapping hCard data with geo, which will
result in the most informative rendering on Google Earth?  Let me
explain what I mean.

Consider this hCard:

span class=vcard
  span class=fn orgWaldorf-Astoria/span
  span class=adr
span class=street-address301 Park Ave./spanbr /
span class=localityNew York/span, 
abbr class=region title=New YorkNY/abbr
span class=postal-code10022/span
  /span
/span

The lat/lon coordinates of the Waldorf-Astoria are:

 Latitude: 40.756561  /  Longitude: -73.974056

Here are some possible ways to wrap the hCard data with geo:

1. Wrap the name (Waldorf-Astoria)

span class=vcard
  abbr class=geo title=40.756561; -73.974056
span class=fn orgWaldorf-Astoria/span
  /abbr
  span class=adr
span class=street-address301 Park Ave./spanbr /
span class=localityNew York/span, 
abbr class=region title=New YorkNY/abbr
span class=postal-code10022/span
  /span
/span

Running Brian's tool will yield KML that when displayed on Google Earth
shows the label Waldorf-Astoria at that lat/lon.  But that's all the
information that will be displayed.

2. Wrap the street address (301 Park Ave.)

span class=vcard
  span class=fn orgWaldorf-Astoria/span
  span class=adr
abbr class=geo title=40.756561; -73.974056
  span class=street-address301 Park Ave./spanbr
/
 /abbr
span class=localityNew York/span, 
abbr class=region title=New YorkNY/abbr
span class=postal-code10022/span
  /span
/span

Running Brian's tool will yield KML that when displayed on Google Earth
shows the label 301 Park Ave. at that lat/lon.  Again, that's all the
information that will be displayed.

Is it better the Google Earth label show the name of a place or its
address?

3. Wrap the entire collection of information

span class=vcard
  abbr class=geo title=40.756561; -73.974056
span class=fn orgWaldorf-Astoria/span
span class=adr
  span class=street-address301 Park Ave./spanbr
/
  span class=localityNew York/span, 
  abbr class=region title=New YorkNY/abbr
  span class=postal-code10022/span
/span
  /abbr
/span

Running Brian's tool will yield KML that when displayed on Google Earth
shows the label containing all the information (name, street address,
city, etc).  Not pretty.

So, what is the best way to wrap (with geo) hCard data that will
produce KML, which when displayed on Google Earth, creates an
informative display?

/Roger

___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Best Practice for wrapping hCard information with geo, for display on Google Earth?

2006-11-30 Thread Andy Mabbett
In message [EMAIL PROTECTED],
Costello, Roger L. [EMAIL PROTECTED] writes

I am when using Brian Suda's xhtml2kml.xsl tool to create a KML file
from an hCard.  Then I display the KML on Google Earth.

What is the best practice for wrapping hCard data with geo, which will
result in the most informative rendering on Google Earth?  Let me
explain what I mean.

As a general point of principle,; I suggest you use the best, most
meaningful, markup, and not try to tailor it to the idiosyncrasies of a
particular tool. If a tool is not giving the optimum output, write to
its author and ask them to consider changing the way it works.

Consider this hCard:

span class=vcard
  span class=fn orgWaldorf-Astoria/span
  span class=adr
span class=street-address301 Park Ave./spanbr /
span class=localityNew York/span,
abbr class=region title=New YorkNY/abbr
span class=postal-code10022/span
  /span
/span

The lat/lon coordinates of the Waldorf-Astoria are:

 Latitude: 40.756561  /  Longitude: -73.974056

I feel the only thing there which might equate to an abbreviation, for
which the coordinates are the full form, is the postal (Zip) code.


-- 
Andy Mabbett
Say NO! to compulsory ID Cards:  http://www.no2id.net/

Free Our Data:  http://www.freeourdata.org.uk
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss