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.

Food vendor locations throughout the city...

June 21, 2011 7:33pm

Subscribe [3]
  • #1 / Jun 21, 2011 7:33pm

    graefika

    5 posts

    The Customer sells ice cream at various points in the city like Street Corner 1, Street Corner 2 and Street Corner 3. All of the cart technicians have iphones and already use apps like Foursquare and Facebook so they are familiar with ‘checking in’ to locations.

    It would be great if I could display or show on a Google Map each cart location that would pinpoint each ice cream cart with a little pin; this way a customer looking for ice cream could tell which cart they are closest to in their car or even walking down the street. When each pin is clicked on, then the Google address would be returned to the web viewer.

    Each time a new cart is dispatched, the cart technician would simply fire up his iphone and check in to his location and the map is updated on the site. IF that particular location didn’t exist and needed to be added as a brand new location, he could add it via his phone so that the location would then be added to and show up on the map on the website.

    How would I go about creating this? I’m using EE2 but have not chosen any modules or plugins for this yet. I’m still on the fence about how this could be done.

    Anyone have an idea on the best way to build something like this?

    Thanks!

  • #2 / Jun 21, 2011 7:42pm

    lebisol

    2234 posts

    There was a Google maps module… http://devot-ee.com/add-ons/fg-location/
    I suppose each vendor can either make a new entry for a location or simply edit 1 entry whenever they ‘check in’.
    http://devot-ee.com/add-ons/google-maps/

    Getting this to work through phone gps is whole another game and I would imagine depends on device and provider but would be more ‘up to date’ than any publishing you do through EE.

  • #3 / Jun 21, 2011 7:43pm

    ikiro

    18 posts

    Use the Geo location api and safe the values with a SAEF.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html >
    <head>
    <title>iPhone 3.0 geolocation demo</title>
    <meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"/>
    < script >
    /* <![CDATA[ */
    /*  */
    function handler(location) {
    var message = document.getElementById("message");
    message[removed] ="http://maps.google.com/staticmap?center=";
    message[removed]+="Longitude: " + location.coords.longitude + "";
    message[removed]+="Latitude: " + location.coords.latitude + "";
    message[removed]+="Accuracy: " + location.coords.accuracy + "";
    }
    navigator.geolocation.getCurrentPosition(handler);
    /*  *//* ]]> */
    </ script >
    </head>
    <body>
    <div id="message">Location unknown</div>
    </body>
    </html>
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases