Convertion between Highmaps and Google location data
(I speak a little English, sorry for my English :) )
I use the highchart and highmaps about 2 years ago for learning.
I would like to get google location data into highmaps map. (for ex.: Hungary map, Italy map, Belgium map, etc...)
The google location data:
"addresscomponents" : [
{
"longname" : "75",
"shortname" : "75",
"types" : [ "streetnumber" ]
},
{
"longname" : "Árpád út",
"shortname" : "Árpád út",
"types" : [ "route" ]
},
{
"longname" : "Miskolc",
"shortname" : "Miskolc",
"types" : [ "locality", "political" ]
},
{
"longname" : "Miskolci",
"shortname" : "Miskolci",
"types" : [ "administrativearealevel2", "political" ]
},
{
"longname" : "Borsod-Abaúj-Zemplén",
"shortname" : "Borsod-Abaúj-Zemplén",
"types" : [ "administrativearealevel1", "political" ]
},
{
"longname" : "Magyarország",
"shortname" : "HU",
"types" : [ "country", "political" ]
},
{
"longname" : "3535",
"shortname" : "3535",
"types" : [ "postal_code" ]
}
]
The highmaps data (hu-all.js):
"properties":{"hc-group":"admin1","hc-middle-x":0.52,"hc-middle-y":0.35,"hc-key":"hu-bz","hc-a2":"BZ","labelrank":"7","hasc":"HU.BZ","alt-name":null,"woe-id":"12577914","subregion":"Borsod-AbaĂşj-ZemplĂŠn","fips":"HU04","postal-code":"BZ","name":"Borsod-AbaĂşj-ZemplĂŠn","country":"Hungary","type-en":"County","region":"Northern Hungary","longitude":"21.0983","woe-name":"Borsod-AbaĂşj-ZemplĂŠn","latitude":"48.2104","woe-label":"Borsod-AbaĂşj-ZemplĂŠn, HU, Hungary","type":"Megye"}
I would be grateful, if it would be a common id/value/description between the Highmaps and Google Maps data.
For example:
Google data: administrativearealevel_1
Higmaps data: properties[name]
In this example both: Borsod-Abaúj-Zemplén, but in many countries are not clearly assigned to each other, these data.
In short: It would be good to have interoperability between the two frameworks (highmaps, highmaps), for example in the world map the country code.
Thank you very much for help :)
-
Linda Svendsen commented
Thank you for your suggestion!