Expand my Community achievements bar.

SOLVED

LIst of all variables which can be returned from profile.geolocation.country

Avatar

Level 1

We need a list of all values which can be returned from Target's profile.geolocation.country variable. I need to make a mapping to convert it to a country code, and need the list of the exact strings being returned.

 

Thanks,
Cleve

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hello,

 

Just to share thoughts here.

 

AEM context hub or client context both uses google.maps api for geo location mapping using latitude and longitude. Now client context or context hub data can be floated to target for same purpose. 

 

so, based on that i am pretty much sure they are using same list in Target too, plz refer this - https://developers.google.com/maps/coverage

 

i hope this helps!!

View solution in original post

6 Replies

Avatar

Community Advisor

Usually there are IATA codes for cities in country and we can map those with the value "profile.geolocation.city in profile scripts. having said that this will  make the profile script heavy so it is not advisable.

I haven't heard of country code , may be if you can help with some example.

Avatar

Level 1
Target returns the country name, ex: "united states", which I need to map to the ISO country code of "US". I've seen multiple variations of Country Names on different country code lists, so need to know exactly what names Target will return so I can properly map to the associated ISO country code.

Avatar

Level 1
Thanks. I've read that documentation but it doesn't provide the full list of country name values, just how to use the value. I put in a Support ticket to try to get the full list.

Avatar

Correct answer by
Level 9

Hello,

 

Just to share thoughts here.

 

AEM context hub or client context both uses google.maps api for geo location mapping using latitude and longitude. Now client context or context hub data can be floated to target for same purpose. 

 

so, based on that i am pretty much sure they are using same list in Target too, plz refer this - https://developers.google.com/maps/coverage

 

i hope this helps!!