Support » Plugin: Pods - Custom Content Types and Fields » Pods and displaying geolocation?

  • Resolved fringer


    I’ve just installed Pods and so far it works great. I am building a website which lists certain objects and their properties.

    One thing I would like to do is add the geolocation for each object and display it in a post as a location on a map. What would be the best way to do it?

    I could use a different plugin just for that, but it would be better if I could do it all within Pods. Any suggestions? Any way to display a location on the map by using custom fields from Pods?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Scott Kingsley Clark


    See for a really nice example of this. Also,

    It’s not so much trying to figure out how to do it with Pods, it’s just trying to figure out how to display them on the map. I ended up using Google Maps JS API and adding markers based on lat/long. I would geocode each address on save, and store the lat/long in another field.

    Sorry for not responding sooner, but I completely omitted your response.

    And also, I didn’t understand anything you just said 🙂

    If I’m not mistaken, I would need to create two separate fields for latitude and longitude, and then somehow tell Google Maps API to display the marker using those two fields?

    Plugin Author Scott Kingsley Clark


    You could create one field and store lat/long like: “XXX,-XXX”

    Then split it with an $latlong = explode( ‘,’, $value ) to get the $latlong[0] and $latlong[1]

    Thanx for your help, but that’s beyond my capabilities currently.

    I’ve used Geo Mashup with Pods. That plugin has this reverse geocode lookup feature, which you can build from other fields. I’ll have an example up soon, but I figured I would point ya in that direction, fringer.

    So What is the best way (if at all in pods) to handle the geolocation mysql extension (that is the ‘point’ type).

    I’m leaning towards an ‘external’ mysql table (external to WP and pods) which will handle the lat/lon and geolocation indexing etc, since there’s no (current?) point supported by pods.


    I wrote a post about how I used Pods + Geo Mashup to create the directory listing maps at Live Work Oakland. Hope it is helpful for folks that don’t mind plugins doing the heavy lifting for them. ^_^

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Pods and displaying geolocation?’ is closed to new replies.