Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bill Smith 52 posts 222 karma points
    Mar 30, 2013 @ 17:49
    Bill Smith
    0

    Setting up the Store Locator

    Are there any instructions for loading locations?

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Mar 31, 2013 @ 08:22
    Tom Fulton
    1

    Hi Bill,

    Check out this blog post for some instructions.  If I recall, the locations are just nodes that you setup however you like in Umbraco.  Then, when inserting the macro, you can provide an XPath expression that returns your location nodes  (ie $currentPage/ancestor-or-self::Home/Locations/Location [not tested]), and the property alias that stores your lat/long.

    You might also want to check out uLocate, a newer package that does things a bit differently, and includes CSV Import functionality.

    Hope this helps,
    Tom 

  • Bill Smith 52 posts 222 karma points
    Mar 31, 2013 @ 14:05
    Bill Smith
    0

    Thanks Tom, I'll check all of the above. When you say "returns your location nodes", is this a page that contains the locations or is it a collection of pages that contain the location information of a single location? Is there an interface for setting up the location info?

    I've checked that blog post but most of the links are long dead - the screencast etc and the PDF seemsto be well out of date.

    I posted earlier that I was tasked with repairing an earlier installation that apparently worked fine until a few weeks ago. Would you have any dea how this could happen?

    Bill

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Mar 31, 2013 @ 18:01
    Tom Fulton
    0

    Yeah, it should return a collection of pages.  So if you have this structure

    - Home
    - - About
    - - Locations
    - - - Location 1
    - - - Location 2

    Your xpath might look something like:

    $currentPage/ancestor-or-self::Home [@isDoc]/Locations [@isDoc]/Location [@isDoc]

    And yes, I do have an idea why it stopped working :)  Google retired their Maps V2 API earlier in the month, which this package uses for Geocoding.  To fix, you'll need to replace the implementation with a version that uses the V3 API.  If you can wait a bit, I can try to dig this up as I recently ran into this as well.

    -Tom

  • Bill Smith 52 posts 222 karma points
    Apr 02, 2013 @ 16:31
    Bill Smith
    0

    Thanks Tom. I'd really appreciate that.

    Bill

  • Rich Green 2246 posts 4006 karma points
    Apr 02, 2013 @ 17:59
    Rich Green
    1

    I would definately look at uLocate for a store locator (blog post from those guys coming soon)

  • Bill Smith 52 posts 222 karma points
    Apr 26, 2013 @ 20:52
    Bill Smith
    100

    Rich, it ddn't work :(

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Apr 26, 2013 @ 23:38
    Tom Fulton
    0

    Hi Bill,

    Sorry I haven't had a chance to look at this further.  But I can give you the binaries we updated to use the V3 API and you can see if that works.  I can give you the source too if needed.  I would have forked but its using SVN and I'm not up to speed with that :)

    Backup your existing Nibble.Umb.Locator.dll and replace with the one in this zip, and add the second DLL.

    Hope this helps - I'd side with Rich though in that you should look into using a more up to date soltuon like uLocate.

    -Tom

  • Tom 713 posts 952 karma points
    Sep 12, 2013 @ 05:10
    Tom
    0

    Hi Tom,

    Unforunately I'm getting a 403 forbidden recently on all my apps using the package.. just wondering if there was a fix? and if anything needed to be changed config wise or key wise?

     

    Thanks,

    Tom

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Sep 12, 2013 @ 06:57
    Tom Fulton
    0

    Hey Tom,

    I'm not aware of any 403 issues from this package.  Can you give some more specifics on what you're seeing?  Out of curiosity are you using the custom DLL above or just the stock package?

  • Tom 713 posts 952 karma points
    Sep 12, 2013 @ 07:24
    Tom
    0

    Hey Tom,

    It's blowing up when trying to execute the web request:

    namespace Nibble.Umb.Locator.GeoCoding.Services.Google

    {

     

        using System;

        using System.Collections.Generic;

        using System.IO;

        using System.Net;

        using System.Web;

        using System.Xml;

        using System.Xml.XPath;

     

        public class GoogleGeoCoder : IGeoCoder

        {

            private string _accessKey;

            private XmlNamespaceManager _namespaceManager;

            public const string ServiceUrl = "http://maps.google.com/maps/geo?output=xml&q={0}&key={1}&oe=utf8";

     

            public GoogleGeoCoder(string accessKey)

            {

                if (string.IsNullOrEmpty(accessKey))

                {

                    throw new ArgumentNullException("accessKey");

                }

                this._accessKey = accessKey;

            }

     

            private HttpWebRequest BuildWebRequest(string address)

            {

                HttpWebRequest request = (HttpWebRequest) WebRequest.Create(string.Format("http://maps.google.com/maps/geo?output=xml&q={0}&key={1}&oe=utf8", HttpUtility.UrlEncode(address), this._accessKey));

                request.Method = "GET";

                return request;

            }

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Sep 13, 2013 @ 07:49
    Tom Fulton
    0

    Hi Tom,

    Ah, sorry, now I know what you mean. Yeah, that's because Google deprecated the API this package was using. A potential solution is to use the DLLs I posted above instead. May also be worth looking into upgrading to the newer version Tim just finished called Seek and Destroy - it may only work with v6 though.

    Hope this helps, Tom

  • Tom 713 posts 952 karma points
    Sep 13, 2013 @ 09:29
    Tom
    0

    Thanks for letting me know.. most appreciated!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies