3 Replies Latest reply on Jan 16, 2018 11:02 AM by jameshu RSS
    jameshu Explorer

    geolocation from postcode

    Hi All,

    Just  a quick enquiry. Has anyone managed to convert a postcode property into geolocation coordinated for use in the google map widget?

    I'm hoping there is something obvious I have missed as I have been scouring the internet for suggestions and am getting nowhere.

    many thanks


      • geolocation from postcode
        riaanl Explorer



        The process of converting street addresses and zip codes to geographic coordinates is called geocoding.  There are a number of free and paid webservices/APIs available on the internet (Google, Yahoo, Bing, etc) that will perform the conversion. 

        You could use the services in the ContentLoaderFunctions resource to POST to external webservices.  Once you receive the response, you could parse the response for the coordinates and subsequently apply the coordinates to your model/mashups.



        • geolocation from postcode
          stefanbe Explorer

          We're also doing something like this, so I think this should work: http://pastebin.com/22dnQPPz


          The key is to set the country and postal_code in the components field, if you just use address you will get locations with the input post code as street number etc.

          • geolocation from postcode
            jameshu Explorer

            Fantastic, thanks for your help guys. much appreciated.