[pmwiki-users] Geotagging for PmWiki

Eemeli Aro eemeli at gmail.com
Thu Oct 29 16:52:27 CDT 2009


2009/10/29  <stevecrisp at gmail.com>:
> If I draw your attention to the 'georss:point' line which concatenates
> latitude and longitude, adding a space character in the middle.  All this
> works fine when I have a lat/lng defined in my page.  The problem I have is
> that when a page doesn't have a lat/lng I get the 'georss:point' line in my
> rss output with the value set to a space.  The thing I like about the other
> 'geo:lat' and 'geo:long' lines is that they are automagically removed from
> the rss output if the page doesn't contain them.
>
> How can I get this behaviour with the 'georss:point' line above?

$FmtPV['$LatLongPoint'] = 'empty($page["latitude"]) ? "" :
($page["latitude"]." ".@$page["longitude"])';

SDVA($FeedFmt['georss']['item'], array(
  ...
  'georss:point' => '{$LatLongPoint}',
  ...));


eemeli



More information about the pmwiki-users mailing list