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 = Logout = Search = GetMetadata = 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)


Updated: Jan 27

Naalehu is a small town located on the southern coast of the Big Island of Hawaii. It is situated in the Ka'u district and is known for its laid-back atmosphere and rural setting. The town is surrounded by lush, tropical vegetation and is home to a variety of small businesses and local farms.

The distance from Naalehu to Kailua Kona Airport is approximately 83 miles, or a 2-hour drive. The town is located on the main road connecting Kailua Kona to the southern coast of the island, making it easily accessible by car.

Real estate in Naalehu is a mix of older homes, as well as new construction. Many of the homes are situated on large plots of land, offering plenty of room for gardening and outdoor living. The town also has a number of small, affordable rental properties for those looking for a more temporary living situation.

The town is known for its affordable housing, with many homes selling for below the median home price for the island. It is an ideal place for people who want to live in a rural setting but still be close to the amenities of a larger town.

Naalehu is a great place for those who want to escape the hustle and bustle of the city and enjoy a more laid-back lifestyle. It is perfect for those who love nature and outdoor activities such as hiking, biking, and fishing. The town is a great place to raise a family or to retire, and it is an ideal destination for people looking for a peaceful, quiet place to call home.

0 views0 comments

Recent Posts

See All
  • Facebook
  • Instagram
  • Yelp
bottom of page