" } } //Sorting nearest providers by distance to display in the list nearestproviders = nearestproviders.sort(sortCompare) //Map bounds var bounds = new google.maps.LatLngBounds() //Appendng to the dropdown list //var ismobile = (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)) ? true : false var ismobile = ($(window).width() > 991) ? false : true var list = (ismobile) ? mobilelistdiv : desktoplistdiv if (ismobile) { document.getElementById("desktopmaplist").style.display = "none" document.getElementById("mobilemaplist").style.display = "block" } else { document.getElementById("mobilemaplist").style.display = "none" document.getElementById("desktopmaplist").style.display = "block" } list.innerHTML = "" //Constant elements //var icon = document.createElement("i") //icon.setAttribute("class", "fa fa-map-marker") //icon.setAttribute("aria-hidden", "true") for (var i = 0; i < nearestproviders.length; i++) { //Content var mainDiv = document.createElement("div") if (i % 2 == 0) { mainDiv.setAttribute("class", "provider-section") } else { mainDiv.setAttribute("class", "provider-section bgwhite") } var milesDiv = document.createElement("div") milesDiv.setAttribute("class", "map") mainDiv.appendChild(milesDiv) var milesIconDiv = document.createElement("div") milesIconDiv.setAttribute("class", "map-icon") var milesSpan = document.createElement("span") var milesTextSpan = document.createElement("span") milesSpan.appendChild(document.createTextNode(nearestproviders[i].distance.toFixed(2))) milesSpan.appendChild(document.createTextNode("mi")) milesDiv.appendChild(milesIconDiv) milesDiv.appendChild(milesSpan) var addressDiv = document.createElement("div") addressDiv.setAttribute("class", "provder-text") var ProviderDetails = document.createElement("p") var address = nearestproviders[i].address; var addressSpan = document.createElement("span") //addressSpan.appendChild(document.createTextNode(address.substring(address.length - 5))) addressSpan.appendChild(document.createTextNode(address)); ProviderDetails.appendChild(document.createTextNode(nearestproviders[i].name)); ProviderDetails.appendChild(addressSpan); var appointmentReq = document.createElement("h3") var icon = document.createElement("i") icon.setAttribute("class", "fa fa-caret-right") icon.setAttribute("aria-hidden", "true") //var reqApt = document.createElement() //reqApt.textContent = "Request Appointment"; var apptlink = document.createElement("a") if (ismobile) { apptlink.setAttribute("data-toggle", "modal") apptlink.setAttribute("data-target", "#requestAppointment") } else { apptlink.setAttribute("data-toggle", "modal") apptlink.setAttribute("data-target", "#requestAppointment") } apptlink.appendChild(document.createTextNode("Contact Us")) appointmentReq.appendChild(apptlink) appointmentReq.appendChild(icon) addressDiv.appendChild(ProviderDetails) addressDiv.appendChild(appointmentReq) mainDiv.appendChild(milesDiv) mainDiv.appendChild(addressDiv) list.appendChild(mainDiv) //Adjusting the bounds of the map bounds.extend(nearestproviders[i].marker.getPosition()) } if (typeof (membermarker) !== "undefined") { bounds.extend(membermarker.getPosition()) } map1.fitBounds(bounds) if (nearestproviders.length < 1) { //map1.setCenter(membercords) map1.setZoom(8) } } function getDiatanceInMiles(memberlat, memberlng, providerlat, providerlng) { var dist = getDistanceFromLatLonInKm(memberlat, memberlng, providerlat, providerlng) * 1000 return getMiles(dist) } function inRadius(memberlat, memberlng, providerlat, providerlng, radius) { var dist = getDistanceFromLatLonInKm(memberlat, memberlng, providerlat, providerlng) * 1000 if (dist <= radius) return true return false } //Provider selection function providerMarkerClicked(providerid, locationid, providerindex) { selectProvider(providerid, locationid, providerindex) } function providerSelectedInList() { var providerid = event.currentTarget.dataset.providerid var locationid = event.currentTarget.dataset.locationid var providerindex = event.currentTarget.dataset.providerindex selectProvider(providerid, locationid, providerindex) } function selectProvider(providerid, locationid, providerindex) { providerselected = providers[providerindex] locationselected = locationid setSelectedProviderInSession(providerselected) if (member.nhMemberID != "" && member.nhMemberID != null) { appointmentlink = "/Calendar/" + member.nhMemberID + "/" + providerselected.providerid + "/" + locationselected + "/yes" //What does yesORno do } document.getElementById('lblNearestProvider').style.display = "block" $("#lblNearestProvider").text(providerscontent[providerindex]) $('#locationDetails').load(); document.getElementById('locationDetails').focus() } function setSelectedProviderInSession(provider) { $.ajax({ url: "/SetSelectedProvider", data: provider, type: "POST", success: function (data) { } }) } function getSelectedProviderInSession() { //console.log(member) if (typeof (member) !== "undefined" && member.nhMemberID != null && member.nhMemberID != "") { $.ajax({ url: "/GetSelectedProvider", type: "GET", success: function (data) { if (data != null) { providerselected = data locationselected = data.locationid if (member.nhMemberID != "" && member.nhMemberID != null) { appointmentlink = "/Calendar/" + member.nhMemberID + "/" + providerselected.providerid + "/" + locationselected + "/yes" //What does yesORno do } document.getElementById('lblNearestProvider').style.display = "block" var providerlistcontent = "NAME: " + data.name + "::BRAND: " + ((data.brand != null) ? data.brand : "NotSet") + "::ADDRESS: " + ((data.address != null) ? data.address : "NotSet") $("#lblNearestProvider").text(providerlistcontent) $('#locationDetails').load(); document.getElementById('locationDetails').focus() if (providerselected.latitude != null && providerselected.longitude != null) { var dist = getDiatanceInMiles(membercords.lat(), membercords.lng(), providerselected.latitude, providerselected.longitude) setDefaultRadius(Math.ceil(dist)) } } } }); } } //Utility functions function getMiles(metres) { return metres * 0.000621371192; } function getMeters(miles) { return miles * 1609.344; } function getDistanceFromLatLonInKm(lat1, lon1, lat2, lon2) { var R = 6371 // Radius of the earth in km var dLat = deg2rad(lat2 - lat1) // deg2rad below var dLon = deg2rad(lon2 - lon1) var a = Math.sin(dLat / 2) * Math.sin(dLat / 2) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.sin(dLon / 2) * Math.sin(dLon / 2) var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)) var d = R * c // Distance in km return d } function deg2rad(degrees) { return degrees * (Math.PI / 180) } function sortCompare(firstmarker, secondmarker) { if (firstmarker.distance == secondmarker.distance) return 0 else if (firstmarker.distance < secondmarker.distance) return -1 else return 1 } $('#btnProviders').click(function () { DisplayProviders() zipCode = $('#ZipCode').val(); if (zipCode != "") $('#ZipCode').val(zipCode); else $('#ZipCode').val("2860"); $('#btnProviders').text("Enter Another Zip Code"); }); document.addEventListener("keydown", function (event) { if (event.which == "13") { DisplayProviders() } }); function DisplayProviders() { $.ajax({ url: "/GetProviderMapData", type: 'POST', success: function (data) { providers = data.providers //console.log(providers) nocords = providers.length getAllProviderCords() //getSelectedProviderInSession() } }); zipCode = $('#ZipCode').val(); var geocoder = new google.maps.Geocoder; var infowindow = new google.maps.InfoWindow; geocoder.geocode({ 'address': zipCode }, function (results, status) { if (status == google.maps.GeocoderStatus.OK) { //lat = results[0].geometry.location.lat(); //lng = results[0].geometry.location.lng(); membercords = { lat: results[0].geometry.location.lat(), lng: results[0].geometry.location.lng() }; changeMemberMarker() //var marker = new google.maps.Marker({ // position: membercords, // map: map1 //}); //marker.setIcon('https://maps.google.com/mapfiles/ms/icons/green-dot.png') //console.log(membercords) } //else { // alert("Geocode was not successful for the following reason: " + status); //} }); getAllProviderCords() }
Frequently Asked Questions:
How does NationsHearing work with my insurance plan?
Your health plan selected NationsHearing to administer your hearing aid benefit. We create greater access to better hearing by offering hearing aids at cost-effective prices.
Does your insurance company offer a hearing benefit?
Yes, and that is one thing that sets your health plan apart. The hearing aid benefit your plan offers is very generous.
What do you charge for a hearing test?
As part of your NationsHearing benefit, you will receive an annual routine hearing test.
How do I select a NationsHearing provider?
The NationsHearing Provider Network is made up of over 4,000 Audiologists and Hearing Instrument Specialists across the United States. A Member Experience Advisor will work with you to find a provider who is located near you. Our Advisors are here to help you through every step in the process.
What brands of hearing aids do you offer?
NationsHearing offers state-of-the art hearing aids from all major manufacturers.
Today’s hearing aids are nothing like the cumbersome and often ineffective devices of the past. They’re smaller, more advanced and more powerful than ever. We believe the right set of features that match your lifestyle and level of hearing loss is just as important as the style of hearing aid.
Many hearing aids are Bluetooth®† enabled and may connect directly with your cell phone.
† The Bluetooth® word mark and logos are registered trademarks owned by Bluetooth SIG, Inc.,
Will I need to purchase batteries for my hearing aids?
No, we worked closely with your health plan to develop a comprehensive hearing aid package. Your hearing aids include three years of batteries.
When I purchase my hearing aids, is there a warranty included?
Yes. NationsHearing offers a 3-year repair warranty and one-time Lost, Stolen & Damaged replacement coverage* per hearing aid. To file a claim, call us at 800-921-4559. Simply pay the deductible and we will order the replacement device.
Once the device has arrived, your NationsHearing provider will contact you to schedule an appointment for reprogramming and refitting.
*Deductibles apply.
What is the return policy?
NationsHearing offers a 60-day money-back guarantee, regardless of the reason for the return.
How do I get started?
Call 866-304-2138 (TTY:711) and speak with a dedicated Member Experience Advisor, 8 a.m. – 8 p.m. local time, who will schedule your hearing test with no out-of-pocket cost with a local hearing provider.
Once you’ve taken your hearing test, your provider will review the results of your hearing test with you. If you need hearing aids, your provider will work with you to select the highest quality hearing aid at the best value for your benefit plan.
NationsHearing will then work with your hearing provider to help you get fitted with your new hearing aid and schedule any necessary follow-up visits.
Make Yourself Heard.
To schedule your hearing test, call us at 866-304-2138 (TTY:711).
Member Experience Advisors are ready to help you take the steps towards improved hearing.
Introduction: My name is Merrill Bechtelar CPA, I am a clean, agreeable, glorious, magnificent, witty, enchanting, comfortable person who loves writing and wants to share my knowledge and understanding with you.
We notice you're using an ad blocker
Without advertising income, we can't keep making this site awesome for you.