Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

cleve
Level 1
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
rush_pawan
Correct answer by
Community Advisor
Community Advisor

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
LordOfTheRings
Level 6
Level 6

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.

cleve
Level 1
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.
cleve
Level 1
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.
rush_pawan
Correct answer by
Community Advisor
Community Advisor

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