I've been having a spot of bother with a Flickr RSS feed.

Take a Flickr Geo RSS feed, such as http://api.flickr.com/services/feeds/geo/?tags=drupal&lang=en-us&format=...

In it, feed items have well specified Geo data, such as 45.528568-122.66349

When in Feeds Mapping options, I (using SimplePie) have experimented with location and location CCK options:

When mapping to a Location module 'GeoRSS point' the latitude gets mapped, but longitude doesn't. Source field specifies both Longitude and Latitude, but destination field only presents GeoRSS as an option - there is no ability to specify location->latitude, or location->longitude.

When mapping to a Location CCK field there is an option to map source longitude to CCK longitude, likewise for latitude. A big problem is that nothing gets mapped - on aggregation the fields are left empty.

I'm pretty agnostic to using Location to store geo data, or using Location CCK. If one could be made to work, I'd really appreciate that.

Comments

elliotttf’s picture

This is actually a limitation of the simple pie parser. If you were to use a free form XML parser like http://github.com/chrisirhc/feeds_xmlparser you could select the georss:point mapper. I'll see if I can roll a patch quickly to get this to work the way you expect with the typical RSS parsers.

elliotttf’s picture

After further review, this doesn't look like something that can be easily fixed. It would require a change to the contributed SimplePie parser to allow a single GeoRSS point to be parsed versus the individual longitude and latitude.

A workaround for simplepie does however exist. If you have the location chooser enabled on your target node type you will be able to map latitude and longitude individually using the existing code.

Alternatively you can use a free form parser that will allow you to choose the georss:point value and map that directly.

elliotttf’s picture

Status: Active » Closed (won't fix)