troubleshooting Question

England UK address returns lat and long for USA from Google geocoding

Avatar of Ian White
Ian WhiteFlag for Australia asked on
JavaScriptScripting LanguagesColdFusion Language
8 Comments1 Solution751 ViewsLast Modified:
I geocode an address below and get lat and long for the same town name in
North Carolina USA> I have tried +GB and +UK  . Other countries are ok but problems for UK
The CF code is fine - it just appears google is giving funny results.  Durham England UK gets lat long for Durham in NC USA. So what do I need to do with the data?

location = Ludworth,County Durham,England+UK
lat = 54.7665696
long = -1.4377006


<!--- function to decode the return from google --->
<cfinclude template = "jsondecode.cfm">
<cfhttp method="get"
<cfset GeoCodeLattitude = jsondecode(cfhttp.FileContent).results[1] />
<cfset GeoCodeLongitude = jsondecode(cfhttp.FileContent).results[1].geometry.location.lng />
Brijesh Chauhan
Staff IT Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros