Last month I wrote about how to get geocode information for an address based on zip code using Talend but this approach does not give you the precise address level geocode. You can obtain that using Google's GeoCode API.(keep in mind the usage limits)
I developed a Talend workflow that uses tFileInputJSON to connect to the API when you pass the concatenated address.
All you need is a input source, tFlowToIterate, tFileInputJSON and ofcourse your output. I wrote it to a buffer so that the result of the iterate flow can be aggregated. In the URL field of the tFileInputJSON component use the following:
"http://maps.google.com/maps/geo?q="+((String)globalMap.get("Out.ConcatenatedAddress")) +"&output=json&oe=utf8&sensor=false&key=YourGoogleAPIKey"
I developed a Talend workflow that uses tFileInputJSON to connect to the API when you pass the concatenated address.
All you need is a input source, tFlowToIterate, tFileInputJSON and ofcourse your output. I wrote it to a buffer so that the result of the iterate flow can be aggregated. In the URL field of the tFileInputJSON component use the following:
"http://maps.google.com/maps/geo?q="+((String)globalMap.get("Out.ConcatenatedAddress")) +"&output=json&oe=utf8&sensor=false&key=YourGoogleAPIKey"
Hey thanks for wonderful post.I really like this blog,its very useful.
ReplyDeleteGeocode Address
Thanks. This was useful.
ReplyDelete