Advertisement
Guest User

pip

a guest
Aug 28th, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. foreach item
  2.                         if (item.fclass === this.classes.city) {
  3.                             geoname.label = item.countryName + " - " + item.toponymName + " - " + item.name;
  4.                             geoname.value = item.name;
  5.  
  6.                             geoname.name = item.name;
  7.                             geoname.adminCode1 = item.adminCode1;
  8.                             geoname.countryCode = item.countryCode;
  9.                         } else if (item.fcode === this.codes.state) {
  10.                             geoname.label = item.countryName + " - " + item.toponymName;
  11.                             geoname.value = item.adminCode1;
  12.  
  13.                             geoname.adminCode1 = item.adminCode1;
  14.                             geoname.countryCode = item.countryCode;
  15.                         } else if (item.fcode === this.codes.country) {
  16.                             geoname.label = item.countryName;
  17.                             geoname.value = item.countryCode;
  18.  
  19.                             geoname.countryCode = item.countryCode;
  20.                         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement