Informatik Handwerk
Peter Fargaš
Programmer :: Prototyping, Research
PHP | JavaScript | Java
Informatik Handwerk
Peter Fargaš
Programmer :: Prototyping, Research
PHP | JavaScript | Java
Informatik Handwerk
Peter Fargaš | Programmer :: Prototyping, Research | PHP,JavaScript,Java
Release date: March 2017
Link to authoritative version https://knowledge-transfer.informatik-handwerk.de
/article/whitepaper/geoEqualizationOfPrices/index.php

Geo-Equalization of Prices

People living in different countries have very different chances, economical power and living standards differ. To honour differencies of my customers, I resolve Geo-Ip and adjust prices accordingly.

I combined statistical data in 2015:

In such way, people all around the world get a comparable chance for using the tools and information they like.

Methodology

I normalize each of the four metrics, average them (there are two "local purchasing power" data-sets) and shape the curve:

0.2* Math.exp(3.4* average)

Poor countries gets a multiplier of 0.5 with Afghanistan at 0.372, well-doing ones around 3.5 with maximum of 5.199 in Switzerland.

Download

Here are the data I extracted in 2015 from various sources and aggregated into one multiplication factor to normalize prices. I estimated where data were missing – such spots are kept visible in raw data sources.

CSV export: is available for copy-paste at the bottom.

Programatical API

Both PHP and JavaScript share the same API - you provide a two-character ISO 3166-1 country code and the price to adapt(). Or readapt(), in which case you supply two country codes - price origin and price destination.

Me myself am using services from MaxMind to obtain GeoIp from my customers. Their API is simple and they provide both, online resolver and databases to download. I use their free database as fallback in case online-resolver fails.

If you want to keep it all client-side, there are quite some APIs with free quotas out there. I really like openly querying from client side in contrast to the secretive server-side resolving - the user has the option to intervene. Just place the "no information" (estimated Internet average) value maybe a bit higher than I did.

Visual Data

Simpler than scanning or reading the table, you might prefer to use the integrated search function of browsers (ctrl+F).

Highlight:
local purchasing power (nationmaster)
local purchasing power (numbeo)
economic freedom (wikipedia)
human development index (wikipedia)

Sort by:

CSV Data


Comments
No comments yet.