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
monument-top_.jpg

South Kohala

The Full Story

The South Kohala region of the Big Island of Hawaii is home to a breathtaking array of sandy beaches, nestled amidst stretches of jagged lava coast. The area is characterized by its arid climate, with less than 10 inches of annual rainfall, and cloudless skies for much of the year. This makes it an ideal spot for luxury resorts and condominiums, many of which take advantage of the numerous beach parks in the area, such as Hapuna State Beach Park. This family-friendly beach boasts seemingly endless stretches of white sand and crystal-clear waters. In contrast to the desert-like coastline, the hills of South Kohala are dotted with large cattle ranches and verdant pastures. The charming paniolo town of Waimea, situated at the base of the Kohala mountains, is a peaceful haven where residents enjoy the laid-back country lifestyle. Rodeos and other community events are a common occurrence in Waimea, where a friendly smile and down-to-earth attitude are highly valued.

Areas of Interest

Subdivisions

Let’s Work Together

Get in touch so we can start working together.

  • Facebook
  • Twitter
  • LinkedIn
  • Instagram

Thanks for submitting!

  • Facebook
  • Instagram
  • Yelp
bottom of page