Seldom Heard


I would like to connect a georss enabled feed to the Virtual Earth block. My RSS format includes the geocoordinates within the following tags:


<georssStick out tongueoint>45.6147 -122.05351</georssStick out tongueoint>


Is there a simple way to get Popfly to read the first value as the lat and the second value as the longitude

Thanks.

-Seldom Heard




Re: using georss

AndyS


Could you post the URL of the RSS feed with the geo data There is a geo RSS block that might already parse the RSS feed to get the result you want, you should be able to find it by searching for GeoRSS in the blocks list.





Re: using georss

Seldom Heard

Hi AndyS,

The URL is this: http://feeds.feedburner.com/DraftROEsGEORSS. My problem is that the lat-long data is not expressed in separate lat-long tags, as the existing GeoRSS popfly modules seem to require. Any help would be appreciated. Thanks!






Re: using georss

AndyS

Ah sorry should of noticed that in your earlier post.

So the lat/long is separated by a space in that case you could modify the geo rss to fetch the value of <georssStick out tongueoint> and then use the split method to get the values.

Code Snippet

var geoPoint = itemNode.selectSingleNode("georss:point") itemNode.selectSingleNode("georss:point").text : "";
var geoPoints = geoPoint.split(" ");
var lat = geoPoints[0];
var lon = geoPoints[1];



I've made those changes and shared a block called GeoRSS for Seldom (http://www.popfly.ms/users/Andy/GeoRSS+for+Seldom.details) which should work with your RSS feed, if not post back or comment on the project:-).

Hope it helps!






Re: using georss

Seldom Heard

Thanks AndyS, I don't think I would have figured that out in a million years.

Now, if I may further indulge your brilliance, what I need to do is specify the item title link, so it become clickable in the pushpin window. Here's how far I got (not real far). Do you have any thoughts on how to accomplish this Thanks much. - Seldom Heard

http://www.popfly.ms/shell.aspx projectType=mashup#georsswithoutworkingtitlelink





Re: using georss

AndyS

Don't suppose you could share that project and post your username i just searched for Seldom and couldn't find any shared projects Sad.

Thanks!




Re: using georss

Seldom Heard

http://www.popfly.ms/users/Seldom/georsswithoutworkingtitlelink

Andy, this project is now shared.

My user name is Seldom Heard.

Thanks.





Re: using georss

AndyS

Sorry for not getting to this earlier; you can zoom into the virtual earth block and click "Advanced Mode".

Replace the code with something like:

Code Snippet

data["VirtualEarthWithTitleLink"] = new Array();
pendingCalls["VirtualEarthWithTitleLink"] = data["GeoRSS for Seldom"].length;
for (var i=0; i<data["GeoRSS for Seldom"].length; i++)
{
try
{
var pushpinTitleText = "<a href='"+data["GeoRSS for Seldom"][i].link+"' target='_blank'>"+data["GeoRSS for Seldom"][i].title+"</a>"
var result = _Seldom_VirtualEarthWithTitleLink.addPushpin(data["GeoRSS for Seldom"][i].latitude, data["GeoRSS for Seldom"][i].longitude, "", data["GeoRSS for Seldom"][i].link, pushpinTitleText , data["GeoRSS for Seldom"][i].description);
pendingCalls["VirtualEarthWithTitleLink"]--;

}
catch (ex)
{
pendingCalls["VirtualEarthWithTitleLink"]--;
environment.reportErrorInLoop(i, ex);
}
}

Which is basically building up a HTML string to pass into the block.

I've shared the mashup as SeldomGeoMaship my user name is Andy.





Re: using georss

Seldom Heard

Thanks Andy. I was unable to get it to work simply by replacing the code. And I was unable locate the mashup you reference: SeldomGeoMashup - Seldom





Re: using georss

AndyS

My bad I forgot to share the mashup it's at: http://www.popfly.ms/users/Andy/SeldomGeoMaship.details

Hope that works for you and answers your question.




Re: using georss

Seldom Heard

Thanks Andy. That is not what I was hoping for. What I am looking for is a way to ensure that the title of the respective rss item in the GeoRSS feed is a clickable hyperlink. What I see now is the URL reference as the title, and the what should be the item title as the description. See below. Hope I'm making sense. Thanks. - Seldom

https://fortress.wa.gov/ecy/wrx/wrx/fsvr/ecydblcywrsql01/WaterRightImages/ScanToWRTS/hq4/06180286.pdf
Application No: CG2-27822 Applicant Name: Three Fingers Water System County: MASON





Re: using georss

AndyS

Not to sure if i understand Sad

The title is:
data["GeoRSS for Seldom"]Idea.title
Which has some value like
Application No: CG2-27822 Applicant Name: Three Fingers Water System County: MASON

Should that actually be the description If so what property should the title be





Re: using georss

Justboogie

Maybe I am not understanding your questions but if you put <a href="http://www.website.com"> RSS Link </a> it would work and be a hyper link. I think......