Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var loc=global('LOC');
- var lat=loc.split(',')[0];
- var lon=loc.split(',')[1];
- $.ajax({
- type:'GET',
- dataType:'jsonp',
- jsonpCallback:'caller',
- url:"https://www.finds.jp/ws/rgeocode.php?jsonp=caller&lat="+lat+"&lon="+lon,
- success:function(data,status,xhr)
- {
- var r=data.result
- flash(
- r.prefecture.pname+
- r.municipality.mname+
- r.local[0].section+
- r.local[0].homenumber
- )
- },
- error:function(xhr,stat,err){flash('error',err)},
- complete:function(){exit()}
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement