Klaus Hartl escribió:
> SeViR schrieb:
>   
>
>
> Nice! It would be totally cool to get latitude/longitude of the required 
> data from a geo microformat...
>
> Or even better get the whole location data from a vcard microformat. 
> Here's an example of one:
>
> <div class="vcard">
>      <a class="fn org" href="...">
>      Clara's Coffeeshop</a>
>
>      <div class="adr">
>          street: <span class="street-address">Sch&ouml;nhauser Allee 
> 36</span><br />
>          city: <span class="locality">Berlin</span><br />
>          state: <span class="region">Berlin</span><br />
>          zip: <span class="postal-code">10425</span><br />
>          country: <span class="country-name">Germany</span>
>          kind of plaze: <abbr class="type" title="work">Restaurant</abbr>
>      </div>
>
>      lat/lon:
>      <span class="geo">
>          <abbr class="latitude" title="52.537541">52.53</abbr>,
>          <abbr class="longitude" title="13.412509">13.41</abbr>
>      </span>
> </div>
>
> The markup could be improved in semantics, it's just an example.
>
>
> -- Klaus
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>   
I simply write this format for json communications :P

$.get("myserver.com/myproject/gateway.php?action=getlocations",function(json){
       myplaces = eval("("+json+")");
       $("mymap").gmaps({

                data: myplaces,
                infopanel: $("#gmaps_info").get(0),
                relativepath: "http://myserver.com/myproject/";
        });

});

But you can make a simple method to parse geo microformat to this format.

-- 
Best Regards,
 José Francisco Rives Lirola <sevir1ATgmail.com>

 SeViR CW · Computer Design
 http://www.sevir.org
  
 Murcia - Spain


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to