Closed (fixed)
Project:
Location
Version:
7.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2011 at 10:24 UTC
Updated:
25 Oct 2011 at 15:36 UTC
I may be being thick here but how do I get geocoding to work for UK locations? Most of the time I don't get any coordinates by default, the odd time I do they are very inaccurate. I did a search on this and found discussions around 2010 saying that Google had introduced the service for UK. How do I get it in the county list? Is there any chance of supporting it "out of the box"?
Thanks for any help/pointers.
Comments
Comment #1
hutch commentedI have it working in both D6 and D7, using node locations or Location CCK (but not both at the same time!)
If you are working with D7 enable the following modules:
Gmap
Location
Location CCK
Latest dev of course ;-)
Leave the other location modules alone for now. Do not use Node Locations or Phone, Fax or Add Another. They clash with Location CCK.
Make sure you have Gmap set up with a valid key and just accept the default settings for now.
Then configure Location under Content Authoring
Set United Kindom as default country.
Enable the display of locations.
Display full province name.
Use a Google Map to set latitude and longitude.
Then hit the Geocoding Options tab and enable United Kindom as well as any others you might want. This may be what you missed.
Do the same With Map Links.
Now you will need to create a Location-enabled Content Type so Go to Structure > Content Types and Create a new content type, I have for instance made one called 'venue'.
Add a field under manage fields selecting a field type 'Location' and a widget type 'Location Field', then move it into place and save that and edit it. Allow everything under Collect for now and Save it.
Then try out your new content type, a full address including a postcode, street name and county gives excellent results in my experience, in small towns within 50 meters or so, sometimes right on the doorstep.
The map with a movable marker is not working very well at the moment, this is probably due to the fact that it is in a vertical tab, hopefully a cure will turn up soon. There is an issue open I think.
Comment #2
F117 commentedI’m also interested in this.
As far as I can tell, UK/GB isn’t available under the Geocoding Options. At least not on a clean install.
Does anyone know why this is the case?
Comment #3
Luttappi commentedHi,
Did anyone got Geocoding working in UK/GB? I have hot a brick wall now. Have exported the postcode data into the database and changed the country code from UK to GB. Still don't make any difference.
Thanks,
Comment #4
jake_d commentedTry checking out this link for instructions on getting the UK recognised under 'Geocoding Options' and 'Map Links'.
Comment #5
ankur commentedGeocoding for the UK on 7.x should work once we resolve #1083128: Change country code for UK to GB.
Comment #6
drbeaker commentedit seems to work now, with United Kingdom showing in the country list. Thanks to all who worked on this.
Comment #7
ankur commented