Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach item
- if (item.fclass === this.classes.city) {
- geoname.label = item.countryName + " - " + item.toponymName + " - " + item.name;
- geoname.value = item.name;
- geoname.name = item.name;
- geoname.adminCode1 = item.adminCode1;
- geoname.countryCode = item.countryCode;
- } else if (item.fcode === this.codes.state) {
- geoname.label = item.countryName + " - " + item.toponymName;
- geoname.value = item.adminCode1;
- geoname.adminCode1 = item.adminCode1;
- geoname.countryCode = item.countryCode;
- } else if (item.fcode === this.codes.country) {
- geoname.label = item.countryName;
- geoname.value = item.countryCode;
- geoname.countryCode = item.countryCode;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement