CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Getting Latitude and Longitude into RSS feed?
Pages: [1]

Author Topic: Getting Latitude and Longitude into RSS feed?  (Read 406 times)

cyberjoek

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Drupal
  • MySQL version: 7
  • PHP version: 5.3
Getting Latitude and Longitude into RSS feed?
January 23, 2013, 08:11:40 pm
Hey folks,
I'm new at CiviCRM and was bashing around with it trying to make it work with some of the other tools we have.  One of the things we'd like to be able to do is show a map of all of our upcoming events.  We currently use a tool that takes a georss feed and puts it on the map.  What I need for that to work is the lat/long of the event in the RSS.  I've found and figured out how to edit the template for the RSS but what I can't find is the token to get the geocode of the event location for the template.  Is there somewhere I should look to find it (or something I have to edit to make that work)?  Or am I missing an easy solution to this that doesn't require hacking the template?

Thanks,
Joe

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Getting Latitude and Longitude into RSS feed?
January 24, 2013, 10:31:40 am

I suspect we are not retriveing the geo codes from the DB and hence it does not appear as a token

You'll need to use a hook to retrieve the geocodes from the DB and expose it to smarty. You could potentially also patch the civi code to do it and then submit and issue with the patch

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Getting Latitude and Longitude into RSS feed?

This forum was archived on 2017-11-26.