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

A Tour of
The Big Island of Hawaii

The Big Island of Hawaii is a diverse and breathtaking destination, offering a range of landscapes, cultures, and lifestyles. From the majestic peaks of Mauna Kea to the arid expanses of Kau, this island is a melting pot of experiences. With its varied towns, climates, and architectural styles, the Big Island is a place where visitors can truly discover something new and unique. Whether you're an adventurer seeking outdoor thrills or a culture enthusiast looking to immerse yourself in local customs, the Big Island has something to offer everyone.

Get to know the Big Island of Hawaii and its various districts a little better 

Big Island Real Estate North Kohala.png
Big Island Real Estate South Kohala.png
Big Island Real Estate North Kona.png
Big Island Real Estate Puna.png
Big Island Real Estate North and South Hilo.png
Big Island Real Estate South Kona.png
Big Island Real Estate Hamakua.png
  • Facebook
  • Instagram
  • Yelp
bottom of page