Jump to content
johnbjr

Trumba and Google Maps

Recommended Posts

We're having a series of events around the US this summer. We've got the events described in a Trumba calendar, and use the Trumba information in various ways throughout our Web site.

 

Now, we've come up with the idea that we'd like to provide a map interface to the summer series of events. In other words, visitors to our site would see a map of the US with the location of each event "pinned." Using Google Maps APIs, we can embed a Google map in our Web page, have the location of each event appear as a "pin" on the map, and then have the event description appear when someone clicks on the pin. The event description comes courtesy of XML that we generate out of a separate database that contains lat/long coordinates and event details.

 

I would really love to eliminate the need for this separate database that we have to maintain in addition to the Trumba calendar entries for this event. The closest I can get today is by using the RSS/Atom feed from Trumba.

 

However, if I define custom fields such as latitude and longitude, they won't appear in the RSS feed unless they're "public" fields, but I don't really want this data to appear on the Trumba event descriptions, because it is not very understandable to the average calendar viewer.

 

Is there something I'm overlooking, or some way of manipulating the RSS feed that I've missed?

 

Better yet, perhaps is Trumba working on some kind of API that would provide data more directly to Google?

 

John Burkhardt

University of Washington Alumni Association

Share this post


Link to post
Share on other sites

Hi John,

What a neat project! It sounds like you already are on top of the features for how to manipulate RSS feeds and custom fields. Off the top of my head, though, the only thing I can think of is to use calendar views that allow you to remove and rearrange fields, so you could remove the fields from your published view, even though they're published. The list-based and performance views allow you to do this. In the Publishing Control Panel, find the view you want to use, and click the Edit Settings link, and include or exclude the custom fields as appropriate.

 

If you can't use the list-based views, or if this simply doesn't work for whatever other reason, let me know, and we'll go from there.

 

>>Better yet, perhaps is Trumba working on some kind of API that would provide data more directly to Google?<<

I'll take a look into this, too.

 

Jill / Trumba User Assistance

Share this post


Link to post
Share on other sites

Hi again, John,

I just realized that there might be a problem with what I suggested. It's true that your main view wouldn't show the fields, but the event details will. I'll keep thinking...

 

Jill / Trumba UA

Share this post


Link to post
Share on other sites

Hello once again, John.

 

I actually got a little bit of undocumented info from our feed developer today. He said there's a parameter that allows you to include unpublished fields in a feed if you're signed in. To include the fields, use privatecustomfields=true (or =1), for example:

http://www.trumba.com/calendars/kexp.rss?privatecustomfields=true

The trick is that to get the fields to actually show up in the feed, you do have to be signed in to your account (otherwise anyone could use the parameter on your feed to display the fields). So, I guess it would work only if the situation were such that once you generate the feed and plug the data into your Google map, you would still be able to display the data in Google even if you're not signed in to Trumba, if that makes sense. Do you think that would work?

 

Jill / Trumba UA

Share this post


Link to post
Share on other sites

Thanks for your link, John, how cool!

 

If you don't mind saying, did you program the registration stuff yourself? For example, for events like the DC Salmon BBQ.

 

Jill

Share this post


Link to post
Share on other sites

John,

I take it that you are running a script in the background to create a copy of the xml locally? I have been tasked in figuring out how to use Google maps to display our Alumni Events. I would be interested in that script if you are willing to share. If not that is fine too. Would you be willing to point me in the right direction?

 

Thank you,

Philip Macomber

Taylor University

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×