Generate dynamic Google map based on info from custom post type (3 posts)

  1. phirephoenix
    Posted 2 years ago #

    I'm using an events calendar plugin that allows me to create a bunch of venues for those events as a custom post type. I'm trying to figure out a way to map all of those venues on a Google Map and make that map filterable. What would be the best way of going about this?

    I've found this: http://www.geocodezip.com/v3_MW_example_categories.html. But that's reading the data from an XML file with the Lat and the Long values already entered. I know about geocoding addresses (http://www.ulaskeles.com/blog/programming/geocoding-google-maps-api/) but I can't figure out how to get that to work with category filters, and for some reason my implementation of it only maps the first 11 addresses (http://www.eyestagedit.com/wtda/map/).

    I know there are tools that will map all addresses in a Google spreadsheet, but that's less than ideal (unless someone knows how to inject data from a WP database into a Google spreadsheet) since I don't want the client to have to enter each venue twice. Any thoughts? I am pretty stumped here.

  2. bcworkz
    Posted 2 years ago #

    It looks like you've figured out the geocode issue? You've got at least 11 venues geocoded anyway.

    The inability to map more than 11 venues sounds like a google maps api issue, you should perhaps try stackexchange for that specific issue.

    You don't really want to map all those venues at one time anyway. I'd start with a "Pick a category" message or something and not even attempt mapping venues until the quantity is manageable. Perhaps some pull downs with available categories and/or maybe event date range?

    You would then build a venue query from that input and only then map those results. Without a more targeted question, I'm not sure what else to tell you.

  3. cretzzzu3000
    Posted 2 years ago #


    You could try using Mappress Easy Google Maps plugin.

    I think you can use mashups for you want to do.

    Good luck!

Topic Closed

This topic has been closed to new replies.

About this Topic