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)

Puako

Puako is a small coastal community located on the western side of the Big Island of Hawaii. Known for its quiet and secluded beaches, Puako is a hidden gem that is a favorite among locals and visitors alike.


One of the main draws of Puako is its natural beauty. The community is home to a variety of scenic beaches, including the famous Puako Beach, which is known for its clear waters, white sands, and excellent snorkeling and swimming. The area also offers a range of water activities, such as kayaking, paddleboarding and bodyboarding.


Puako is also home to the Puako Petroglyph Archaeological Preserve, which is a unique collection of ancient Hawaiian petroglyphs, or rock carvings. The preserve is a great place to learn about the history and culture of Hawaii, and it's also a popular spot for hiking and picnicking.


Puako is also home to a small number of vacation homes and condos, many of them are built with a traditional Hawaiian architectural style and offer great ocean views. These rentals are a great option for those looking to experience a more authentic and less commercialized side of Hawaii.


Although Puako is a small community, it offers a range of amenities, including a small grocery store, a post office, and a few restaurants. The nearby towns of Waikoloa and Kawaihae, are just a short drive away, and offer a wider range of shops and services.

Overall, Puako is a beautiful and secluded community on the Big Island of Hawaii. With its quiet beaches, scenic hiking trails, and rich cultural heritage, it's a great destination for those looking to escape the crowds and experience the natural beauty of Hawaii. Whether you're looking for a relaxing vacation or an adventure-packed getaway, Puako has something for everyone.

0 views0 comments

Recent Posts

See All
  • Facebook
  • Instagram
  • Yelp
bottom of page