import {fetch} from 'wix-fetch'; function parseRetsXml(xml) { const parser = new DOMParser(); const xmlDoc = parser.parseFromString(xml, "text/xml"); const retsNode = xmlDoc.getElementsByTagName("RETS")[0]; const replyCode = retsNode.getAttribute("ReplyCode"); const replyText = retsNode.getAttribute("ReplyText"); const loginUrl = retsNode.getAttribute("Login"); const searchUrl = retsNode.getAttribute("Search"); return { replyCode, replyText, loginUrl, searchUrl }; } async function searchMLS(xml, query) { const retsInfo = parseRetsXml(xml); const response = await fetch(retsInfo.searchUrl, { method: 'post', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: `search=${encodeURIComponent(query)}` }); const results = await response.json(); return results; } const xml = ' Broker = MemberName = 79190-RETSIDX James T Morrison MetadataVersion = 8.09.00001 MinMetadataVersion = 8.09.00001 User = 547029,NULL,NULL,NULL Login = http://rets.hawaiiinformation.com:6103/rets/login Logout = http://rets.hawaiiinformation.com:6103/rets/logout Search = http://rets.hawaiiinformation.com:6103/rets/search GetMetadata = http://rets.hawaiiinformation.com:6103/rets/getMetadata GetObject = http://rets.hawaiiinformation.com:6103/rets/getObject Balance = 0.01 TimeoutSeconds = 1800 '; const query = 'property type:Residential'; searchMLS(xml, query).then(results => { console.log(results); });
top of page
pexels-jess-loiterton-4609250.jpg

North Kona

The District of North Kona

The Big Island of Hawaii offers a variety of experiences, but for many, it starts on the sunny Kona coast. This region has been a popular destination for both Hawaiian royalty and international travelers for over 200 years. Today, it is the most populated area on the Big Island. North Kona is made up of several small villages including Keahou, Holualoa, and Kailua-Kona. Kailua-Kona, in particular, is the tourism capital of the Big Island, known for its vibrant economy and various attractions. The town, originally a fishing village, now boasts a wide range of activities such as scuba diving, surfing, hiking, and snorkeling. Tourists can also indulge in local specialities like Kona coffee, or participate in events such as the Ironman Triathlon and the Billfish Tournament. With so many options to choose from, the possibilities for adventure and entertainment are endless.

Big Island Buy Sell Real Estate Ali Drive.jpg

Kailua Kona

Growing City

Towns, Citites and Villages

Keauhou
Holualoa
  • Facebook
  • Instagram
  • Yelp
bottom of page