Friday, January 27, 2012

How to find address in japan by query string?

How to send query string(zip code) using search.map.yahoo.co.jp (japanese server) and to get the page open in the browser with the correct address.How to find address in japan by query string?
h.ttp://map.yahoo.co.jp/pl?nl=21.43.28.0鈥?br>


When you put in your zip code, yahoo finds the longitude n latitudes and hides them in the next page(with the result);

therefore to achieve what you want, you can make code to parse the RESULT's page for the nl and el and then send them to the header.You can use the code below if you have php installed in your servers.

If you want to see it working, mail me.

%26lt;?php

ob_start();

if(isset($postcode)){

$da=fopen("http://search.map.yahoo.co.鈥?br>
$da=fread($da,3000);

$url="http://map.yahoo.co.jp/pl?";

$dak=strpos($da,$url,filesize($url));

$dan=strpos($da,"%26amp;el=");

$da=substr($da,$dak,58);

header("location:$da");

}

ob_end_flush();

?%26gt;

PS:Don know about the legality of this/ yahoo JAPAN can easily block your server from parsin its pages.How to find address in japan by query string?
It is easy to show the map from a zip code, but a zip code is not only one single address. It is an area.

To see the area map and it`s name, just put the zip code (000-0000 format) in the search field and click search. The next page will show the name of the area. If you click on the highlighted zip code there you will see a map.

No comments:

Post a Comment