is this possible? if so...how? thanks!

Comments

aron novak’s picture

Status: Active » Postponed (maintainer needs more info)

What do you mean exactly? The geographical location?

jamesJonas’s picture

I had a similar question. Are we talking about lat/lon via georss, parsing tags that may have geographic information (city, state) and deriving lat/lon or extracting it out of the content itself (well, this is a bit tough, but possible)?

The second part such questions are even more interesting, after you get it out where do you put it (example: Location API)

k.a.b.’s picture

yes, jamesJonas has clarified my goal...anyone know how I can achieve this functionality?

k.a.b.’s picture

Priority: Normal » Critical
Status: Postponed (maintainer needs more info) » Active

any ideas?

geodaniel’s picture

You may be interested in #228111: Add enclosure (and location) support to FeedAPI Drupal 6 and #265196: Support for the Location module which will allow mapping of GeoRSS information to Location module fields using the Feed API Mapper module. Is that what you were looking for, or were you more interested in extracting text from the body, finding a location in it and geocoding it?

geodaniel’s picture

Priority: Critical » Normal
k.a.b.’s picture

Thank you for your suggestions geodaniel...very much appreciated...i am looking to extract text from the body and place it in the location "City" and "State" fields...is this possible?

geodaniel’s picture

It's not possible at the moment (as in there's not any code in FeedAPI to do it). I think it could be something others are interested in though. Out of interest, could you include some examples of the content you'd like to extract location information from? Is it the kind of content that comes out of news organisations that typically starts with the location, or content that just has locations mentioned throughout it?

I have a feeling Development Seed did some work on this kind of thing a couple of years back, but I can't find a reference to it at the moment.

geodaniel’s picture

k.a.b.’s picture

I think I found a solution here http://drupal.org/node/309817 however, I lack the php skills to get started...any ideas on a starting point? Thanks! (and the location would be mentioned in it after "location:")

TKS’s picture

This suggestion may run afoul of the "you can make Drupal do anything!" mantra, but:

1. I too lack the PHP skills to work real Drupal-function magic; and
2. There's something to be said for not cramming 101 functions into a module -- FeedAPI is awesome, but complicated enough as it is.

In any case, I *think* that you could do what you want with the Feed Element Mapper module and Yahoo Pipes.

I've been playing with Yahoo Pipes the last few days, and it really is a powerful and (relatively) easy tool for slicing and dicing feeds to get them the way you want them. It would be fairly easy to pull those location data points from the body and place them in their own RSS-item elements. And Feed Element Mapper can pull most any element into a CCK field or a Vocabulary.

I don't know if Feed Element Mapper plays nicely with Location Module fields, but it seems like that would be a much easier change to make than building in full-blown extraction/regular-expression tools into one of the FeedAPI modules.

Hope that helps...

geodaniel’s picture

@tks that sounds like a sensible way of doing this, and there are patches in the queue (see comment #5) that will allow for GeoRSS elements in feeds to be passed to Location module.

summit’s picture

Subscribing, greetings, Martijn

AntiNSA’s picture

subscribe

alex_b’s picture

Status: Active » Closed (fixed)

Closing after an extended period of inactivity.

summit’s picture

Hi, I understand you close this. But I would like to remark that I think (my humble opinion) location_feed_mapper is not working anymore after the security update.
thanks for building such great modules! greetings, Martijn