ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

What's the best way to setup an automatic location detection for city categories?

August 30, 2012 12:48am

Subscribe [1]
  • #1 / Aug 30, 2012 12:48am

    Nmodo

    3 posts

    Hi,

    Thanks for taking the time to help.

    My team and I are working on a project where we’d like to setup dual-relationship channel entries: one descriptive and one location-based, for example:


    Food (descriptive)

    Italian Cuisine
    Thai Cuisine
    French-american Cuisine


    City (location)

    New York, NY
    Los Angeles, CA
    Spartanburg, SC


    Ideally, a user would select their food category and the following page would display all entries from that food category and the user’s city (by name). They would of course be able to manually select a different city, or search for a zip code.

    . . .

    I found this web service: http://dev.maxmind.com/geoip/javascript which seems like it could be very helpful for auto-detecting the user’s city, zip, state code, etc., but we’re not sure on how to effectively tie this into EE’s categories.

    Our current idea is to create city categories and use GeoIP to return a string of the city name and use that as a URL segment and dynamically build a link to the appropriate channel entries.*

    *We’d have to make sure the string returned matched the EE category… or whether a category with that city name even exists.

    . . .

    Hopefully this is clear description of what we’re looking to accomplish. If you have any ideas or can recommend any modules to help with something like, we’d be greatly appreciative.

    Thanks.

  • #2 / Aug 30, 2012 2:13am

    Enviromed

    375 posts

    welcome to ee!

    You may wish to consider using these from 2 top ee developers:

    http://devot-ee.com/add-ons/us-states-cities &

    http://devot-ee.com/add-ons/playa

    Good luck!

  • #3 / Aug 31, 2012 1:15am

    Nmodo

    3 posts

    Thanks!

    Both modules look promising, especially Playa. I’m curious about the US States and Cities module for Expression Engine—does anyone have any experience with it?

    Still open to other ideas as well.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases