Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 785077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:49:01+00:00 2026-05-14T20:49:01+00:00

What is the most effective and accurate way to geocode a UK postcode? Using

  • 0

What is the most effective and accurate way to geocode a UK postcode? Using the built in geocode object results in massively blurred results (lots of postcodes returning just a general area).

Are there any free UK postcode geocoding services I can plug into via JavaScript?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T20:49:02+00:00Added an answer on May 14, 2026 at 8:49 pm

    Edit: To be clearer this uses the local search in google search api, not the google maps api to do the geocoding which is much more accurate.

    The best way is to use Google Search Api.

    If you get an api key and get it all setup: http://code.google.com/apis/ajaxsearch/

    var localSearch;
    var map;
    var icon;
    var addressMarkerOptions;
    google.load("search", "1");
    google.load("maps", "2");
    google.setOnLoadCallback(initialize);
    
    function initialize()
    {
      localSearch = new GlocalSearch();
      icon = new GIcon(G_DEFAULT_ICON);
      addressMarkerOptions = { icon:icon , draggable: false};
      map = new GMap2(document.getElementById("map"));
      map.addControl(new GLargeMapControl());
      map.addControl(new GMapTypeControl());
      plotAddress("OX4 1FJ");
    }
    
    /**
    * This takes either a postcode or an address string
    *
    */
    function plotAddress(address)
    {
      localSearch.setSearchCompleteCallback(null, 
        function() {
    
          if (localSearch.results[0])
          {     
            var resultLat = localSearch.results[0].lat;
            var resultLng = localSearch.results[0].lng;
            var point = new GLatLng(resultLat,resultLng);
            var marker = new GMarker(point, addressMarkerOptions);
            map.addOverlay(marker);
            map.setCenter(point, 5, G_NORMAL_MAP);
          }
          else
          {
            alert('address not found');
          }
        });
    
      localSearch.execute(address + ", UK");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the most effective way to pass object and category ids or other
What is the most effective way to sync two identically structured DataSets using a
What is the most effective to way to make Catalyst::Plugin::Authentication work if the user
Which is the most effective way to sum data in the DataTable by a
Simply put: What is the most effective way to share / reuse code between
Hey, what's the most effective way to remove beginning and ending slashes from all
I hope I'm not duplicating here :-) I'm wondering what's the most effective way
What is the most effective way to systematize a way of logging what changes
What is the most effective and flexible way to generate combinations in TSQL? With
What is the simplest most effective way to verify that your SQLite db is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.