|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Friday, January 11, 2013 1:07 PM
Points: 587,
Visits: 131
|
|
Yeah, I've been through this POC before and what I've discovered is that even if you have the Google Maps Premier license, you still can't use it for this sort of potential "Batch Geo-Coding" without running the risk of getting your licenses disabled. That being said, if you have a funded project, there are companies like Melissa Data or Telogys (sp) that can provide web or local implementations for you to Geocode with. Personally my experience is with Melissa Data; they will provide SSIS wrappers around their GeoCoding API, with unlimited Geo Lookups, and at least Quarterly updates of their files. Being that we are .NET savvy based on this discussion, it should be easy enough to write a CLR wrapper around their API to deliver GeoCoding from T-SQL.
Joshua T. Lewis
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, May 06, 2013 2:21 PM
Points: 3,
Visits: 39
|
|
| Don't see the sp_geoCode script?
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 11:22 PM
Points: 44,
Visits: 357
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, May 06, 2013 2:21 PM
Points: 3,
Visits: 39
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Sunday, October 28, 2012 10:43 PM
Points: 3,
Visits: 21
|
|
hi all, i have created the SP, mention in this topic.
when i execute the sp : EXEC spGeocode '1234 N. Main Street, Santa Ana, CA'
i got NULL value in all the field.
am i missed any previous step ???
Thanks in advance.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 12:40 AM
Points: 2,
Visits: 14
|
|
Hi.. I did this for reverse geocoding. I changed the url to: DECLARE @URL varchar(MAX) SET @URL = 'http://maps.google.com/maps/api/geocode/xml?sensor=false&latlng=' + CAST(@GPSLatitude AS VARCHAR(20)) + ',' + CAST(@GPSLongitude AS VARCHAR(20))
But it shows null. What should I do to show the address for specific Lattitude and longitude using this techinique?
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, October 23, 2012 8:21 AM
Points: 11,
Visits: 40
|
|
Hello,
I would suggest to use Google API ver. 3 (the current one) rather than ver. 2 referred in this post. Therefore, the URL should be something like:
http://maps.googleapis.com/maps/api/geocode/.....etc' - ver. 3
instead of:
http://maps.google.com/maps/api/geocode/ - ver. 2
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, October 23, 2012 8:21 AM
Points: 11,
Visits: 40
|
|
It works on my system, I get:
33.755319 -117.867595 Santa Ana CA 92701 1234 N Main St
but I modified the code to use Google API ver. 3 instead of ver. 2 referred in the article, please see the post just above this one. Not sure though this is the reason, did you try to execute spGeocode with other parameter variations as described in the article?
Regards, M.R.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 12:40 AM
Points: 2,
Visits: 14
|
|
thanx for the reply. I solved it with a little modification before seeing the reply... anywz, thnx again...
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Sunday, October 28, 2012 10:43 PM
Points: 3,
Visits: 21
|
|
hi , i have changed api url from v2 to v3. still getting null value after trying this : EXEC spGeocode '1234 N. Main Street, Santa Ana, CA'
Thanks
|
|
|
|