georss

PHP parsing a georss namespace with simpleXML

血红的双手。 提交于 2019-12-18 08:51:09
问题 Trying to parse out lat/lon from a google maps rss feed: $file = "http://maps.google.com/maps/ms?ie=UTF8&hl=en&vps=1&jsv=327b&msa=0&output=georss&msid=217909142388190116501.000473ca1b7eb5750ebfe"; $xml = simplexml_load_file($file); $loc = $xml->channel->item; echo $loc[0]->title; echo $loc[0]->point; The title shows up alright, but point gives me nothing. Each node looks like this: <item> <guid isPermaLink="false">0004740950fd067393eb4</guid> <pubDate>Sun, 20 Sep 2009 21:47:49 +0000</pubDate>

can feedparser parse geo-rss

时光总嘲笑我的痴心妄想 提交于 2019-12-13 03:07:06
问题 the geo-rss.xml is : <?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"> <channel> <link>http://maps.google.com</link> <title>beijing 1</title> <description><![CDATA[dsad]]></description> <item> <guid isPermaLink="false">00048b5b66b7169311de4</guid> <pubDate>Wed, 14 Jul 2010 16:23:08 +0000</pubDate> <title>ww</title> <description><![CDATA[<div dir="ltr">dwqd</div>]]></description> <author>zjm1126</author

Google Maps API v3 takes too long to show changes in the GeoRSS feed

荒凉一梦 提交于 2019-12-11 13:31:35
问题 I need to display a GeoRSS feed on Google Maps API v3. This feed is created through the following procedures: The user types in a keyword Thanks to a PHP code, an RSS file is created by taking news items containing the keyword from 3 different existing RSS feeds. The link of this RSS file is given to the Metacarta RSS Geotagger service ( http://labs.metacarta.com/rss-geotagger/ ) The obtained GeoRSS file must be also converted into a KML file (if I give the link to the GeoRSS as an argument

PHP parsing a georss namespace with simpleXML

拜拜、爱过 提交于 2019-11-29 14:42:50
Trying to parse out lat/lon from a google maps rss feed: $file = "http://maps.google.com/maps/ms?ie=UTF8&hl=en&vps=1&jsv=327b&msa=0&output=georss&msid=217909142388190116501.000473ca1b7eb5750ebfe"; $xml = simplexml_load_file($file); $loc = $xml->channel->item; echo $loc[0]->title; echo $loc[0]->point; The title shows up alright, but point gives me nothing. Each node looks like this: <item> <guid isPermaLink="false">0004740950fd067393eb4</guid> <pubDate>Sun, 20 Sep 2009 21:47:49 +0000</pubDate> <title>Big Wong King Restaurant</title> <description><![CDATA[<div dir="ltr">$4.99 full meals!</div>]]