This is not related to the Dehaze function but may be of interest to people using Lightroom 6. On December 1st 2018 the Map module in Lightroom stopped working.
https://github.com/astuder/lightroom-map-fix provides instructions for how to get a google API key and insert it into Lightroom so that the Map module functions again.
This is not my work, but I thought it may be of interest. I have followed the instructions provided and it works for me. Warning: the level of computer skills needed may be too much for some people.