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
  • Writer's pictureJames T. Morrison R(S)

Keauhou


The Keauhou area in the district of North Kona on the island of Hawaii is a highly desirable location for both tourists and residents. This area is known for its rich history and cultural significance, as well as its beautiful natural surroundings.


One of the main draws of the Keauhou area is its proximity to the historic Keauhou Bay, which was once a major hub of activity for the ancient Hawaiian people. The bay was home to several important religious and cultural sites, including the royal residence of King Kamehameha III. Today, visitors can explore these historic sites and learn about the area's rich cultural heritage.


Keauhou Bay

In addition to its historical significance, the Keauhou area is also known for its natural beauty. The area is home to lush tropical forests, beautiful beaches, and an abundance of wildlife. This, combined with the temperate climate and year-round sunshine, make it an ideal location for outdoor activities such as hiking, swimming, and snorkeling.


The Keauhou area is also home to a variety of housing options. From luxury oceanfront properties to more modest homes, there is something for everyone. The area has seen an increase in new developments and construction, making it a great place for those looking for new housing options.


Overall, the Keauhou area in the district of North Kona is a unique and desirable location that offers a perfect blend of history, natural beauty, and modern amenities. With a wide range of housing options and an ideal climate, it is the perfect place to call home.

0 views0 comments

Recent Posts

See All
  • Facebook
  • Instagram
  • Yelp
bottom of page