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
Hawaii-Volcanoes-National-Park_1.jpg

Puna

The Full Story

The district of Puna is located on the eastern side of the island. It is characterized by its lush, tropical landscapes and rugged coastline. The district is known for its diverse range of habitats, including rainforests, coastal beaches, and volcanic landscapes. The area is home to several natural wonders, such as the Kapoho Tide Pools, which are a popular destination for snorkeling and diving.

One of the most notable features of Puna is the Kilauea volcano, which is located in Hawaii Volcanoes National Park. The volcano is one of the most active in the world, and visitors can witness the lava flowing into the ocean, creating a unique and otherworldly scene. The park is also home to several hiking trails, including the popular Kilauea Iki trail, which takes hikers through the volcano's crater.

Puna is also known for its vibrant and unique communities, such as Pahoa, which is known for its alternative and spiritual lifestyle. The district is also home to several hot springs, such as Ahalanui Park and Pohoiki Beach, which are popular for their therapeutic and relaxing properties. Overall, Puna is a place of natural beauty, adventure, and community, making it a must-visit destination for any traveler to the Big Island.

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