LIst of all variables which can be returned from profile.geolocation.country | Community
Skip to main content
April 26, 2021
Solved

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

  • April 26, 2021
  • 2 replies
  • 1899 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Pawan-Gupta

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!!

2 replies

ambikaTewari_ATCI
Community Advisor
Community Advisor
April 26, 2021

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.

cleveAuthor
April 26, 2021
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.
Pawan-Gupta
Pawan-GuptaAccepted solution
Level 8
April 26, 2021

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!!

cleveAuthor
April 26, 2021
@pawan-gupta Thanks for this insight! This makes sense.