API for ZipCode Look up
Hi,
Does any one has any web service or API for Zipcode lookup for Japan. I have a requirement like this,
If Zipcode is entered, I need to populate City/State
If address is entered, I need to populate Zipcode.
Anyone has come across, this sort of requirement. if yes, can you please share details.
Regards,
Zakir
Hi Zakir,
I'm not sure that PRPC has such a system built-in : but you might want to see if you can use Google's 'GeoCode' API (which is a REST Service) from PRPC.
I'm not an expert on this API by any means: but it seems quite smart in that it figures out what you mean from the structure of the Post-Code, so for instance:
http://maps.googleapis.com/maps/api/geocode/json?address=100-8994
Works out it's a Japanese Postal Code; whereas:
http://maps.googleapis.com/maps/api/geocode/json?address=RG13JH
Figures out it's a UK Post code (Pega EMEA's office in fact).
It seems to be able to reverse this from Address->Postal Code:
So for instance:
http://maps.googleapis.com/maps/api/geocode/json?address=Nagata-ch%C5%8D,%20Chiyoda-ku,%20Tokyo
Will bring back the Prime Minister's house ( Prime minister - Wikipedia, the free encyclopedia )
By the way - it answers in JSON ; like this:
Hi Zakir,
I'm not sure that PRPC has such a system built-in : but you might want to see if you can use Google's 'GeoCode' API (which is a REST Service) from PRPC.
I'm not an expert on this API by any means: but it seems quite smart in that it figures out what you mean from the structure of the Post-Code, so for instance:
http://maps.googleapis.com/maps/api/geocode/json?address=100-8994
Works out it's a Japanese Postal Code; whereas:
http://maps.googleapis.com/maps/api/geocode/json?address=RG13JH
Figures out it's a UK Post code (Pega EMEA's office in fact).
It seems to be able to reverse this from Address->Postal Code:
So for instance:
http://maps.googleapis.com/maps/api/geocode/json?address=Nagata-ch%C5%8D,%20Chiyoda-ku,%20Tokyo
Will bring back the Prime Minister's house ( Prime minister - Wikipedia, the free encyclopedia )
By the way - it answers in JSON ; like this:
{ "results" : [ { "address_components" : [ { "long_name" : "Nagatacho", "short_name" : "Nagatacho", "types" : [ "sublocality_level_1", "sublocality", "political" ] }, { "long_name" : "Chiyoda", "short_name" : "Chiyoda", "types" : [ "locality", "political" ] }, { "long_name" : "Tokyo", "short_name" : "Tokyo", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "Japan", "short_name" : "JP", "types" : [ "country", "political" ] }, { "long_name" : "100-0014", "short_name" : "100-0014", "types" : [ "postal_code" ] } ], "formatted_address" : "Nagatacho, Chiyoda, Tokyo 100-0014, Japan", "geometry" : { "bounds" : { "northeast" : { "lat" : 35.6799042, "lng" : 139.7498932 }, "southwest" : { "lat" : 35.6712107, "lng" : 139.7369964 } }, "location" : { "lat" : 35.6768321, "lng" : 139.7399329 }, "location_type" : "APPROXIMATE", "viewport" : { "northeast" : { "lat" : 35.6799042, "lng" : 139.7498932 }, "southwest" : { "lat" : 35.6712107, "lng" : 139.7369964 } } }, "place_id" : "ChIJu0OPaoiLGGAR_QFKLcwXEWE", "types" : [ "sublocality_level_1", "sublocality", "political" ] } ], "status" : "OK" }So that should be reasonably straight-forward to map to PRPC Properties.
Not sure this will be a suitable solution : it depends on whether your PRPC system has access to the Google Site or not of course.
John