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

  • SEARCH
  • Home
  • 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 5985793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:34:51+00:00 2026-05-22T22:34:51+00:00

I am using google maps Api V3 and using reverse geocoding to find the

  • 0

I am using google maps Api V3 and using reverse geocoding to find the name of a country clicked on.
This appears to work fine for most countries except the countries within the UK.

The UK consists of England, Scotland, Wales and Northern Ireland, which are 4 separate countries, but google maps (and most other country things) see them all as just “UK”.

I need to know which particular country within the UK has been clicked and not just that the UK has been clicked!

I am using the following javascript and I am currently just using visual studios “watch” feature to dig down into “results[1]” to see what is contained.

  function initialize() {
    geocoder = new google.maps.Geocoder();
    var latlng = new google.maps.LatLng(51.8052184317649, -4.965819906250006);
    var myOptions = {
        zoom: 5,
        center: latlng,
        mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

    google.maps.event.addListener(map, 'click', function (event) {
        if (confirm('Is this the location you would like to you for your company?')) {

            geocoder.geocode({ 'latLng': event.latLng }, function (results, status) {
                if (status == google.maps.GeocoderStatus.OK) {
                    if (results[1]) {

                    }
                }
            });
 }
        });
    }

If I click when the map is zoomed quite far out the country name (ie Wales) comes back with types “administrative_area_level_1” and “political” but when you zoom in it’s no longer there as it just gives the address which doesn’t contain “Wales”.

Does anyone know how I get round this? I’m sure other Brits have come across this?

  • 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-22T22:34:52+00:00Added an answer on May 22, 2026 at 10:34 pm

    Couldn’t work out how to reverse geocode to get a UK country as I think it’s actually impossible!

    Ended up using postcodes and working out countries by that!
    Not the best, but it works for me!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently using the google maps' reverse geocoding API to convert long/lat received
I am using Google Maps API for reverse lookup of an address, specifically Country,
I'm using the Google Maps Javascript API V3 to reverse-geocode a lot of locations
I am using this api http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.1/index.html , the GWT Google Maps API, in my
I am using Google Maps V3 API and using its Geocoder to do reverse
Is it possible to do a google map lookup using the google maps API
In Google Maps API v2, I was using map.clearOverlays() to remove the marker and
I'm using Google Maps API to display a map and some markers on it.
I am using Google Maps API to display a map on a certain page.
I'm using Google Maps API v2 and Geoxml to produce a map which 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.