hgentle
Posts: 1
Joined: Tue Mar 22, 2022 6:32 pm

Invalid County Names

We use ALK Maps for geocoding purposes. When a user in our app choses a county in HighChart county map, we store the county in our DB. When we geocode using ALK, we verify the county name and have seen some discrepancies. Example, HighChart's county of Newport News, VA is reported by ALK Maps as Newport News City, VA. There are others.
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Invalid County Names

Hi,

Welcome to our forum and thanks for contacting us with your question!

The discrepancies are due to the data in json. The best option would be comparing two identical keys codes instead of names. I don't have any experience with ALK Maps, but maybe they have any key/code that would be matched to hc-key in the highcharts .json?

As a workaround, you can also overwrite the json itself.

Demo:
https://jsfiddle.net/BlackLabel/h1ezax2c/

If you have more examples of invalid county names, feel free to report them here https://github.com/highcharts/map-colle ... ist/issues .

Let me know if you have any further questions,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer

Return to “Highcharts Maps”