Advanced Geomarketing

Avatar

Avatar

Clarence_Bunch

Avatar

Clarence_Bunch

Clarence_Bunch

23-10-2019

GeoMarketing filters within Adobe Campaign instance.  When performing a distance calculation, it appears that the distance measurement is calculated in kilometers as opposed to miles.  Does Adobe Campaign uses imperial or metric calculations on their backend for the product?

Advanced Filter GeoMarketing.PNG

Replies

Avatar

Avatar

Raj_bounteous

MVP

Avatar

Raj_bounteous

MVP

Raj_bounteous
MVP

23-10-2019

Hi, it is in kilometres and we need to convert it into miles.

Avatar

Avatar

Jyoti_Y

MVP

Avatar

Jyoti_Y

MVP

Jyoti_Y
MVP

23-10-2019

Hi,

Distance calculation formula used at backend is 'Law of Cosines'.

i.e

distance= acos( sin φ1 ⋅ sin φ2 + cos φ1 ⋅ cos φ2 ⋅ cos Δλ ) ⋅ R

where φ1= second parameter

           φ2= fourth parameter

           Δλ= differeence of first parameter and third parameter.

           R = 6371

And output of this calculation will be in kilometers.

Thanks.

Avatar

Avatar

badr_eddine

Avatar

badr_eddine

badr_eddine

25-10-2019

Hi, 

i don't think is that hard to convert it to Miles, all what you need is multiply the result by 0.6214

Regards,

Badr.

Avatar

Avatar

Sourav_Sadhu

Avatar

Sourav_Sadhu

Sourav_Sadhu

25-10-2019

Its by default in Kilometer, if you want to use it in Miles then Distance (@LongitudeA, @LatitudeA, @LongitudeB, @LatitudeB)*0.6213712 to be precise. We have implemented this on a recent project.

Disclaimer: Please don't expect it to be a logical distance measured by Google Map etc, because its total based on the mathematical calculation. In the back-end Adobe uses the below formula :

1847655_pastedImage_0.png