AmazonGeotarget
This script can detect user's location based on IPs and returns Amazon geotargeted URLs.
Usage
const amazonGeotargetService = ;amazonGeotargetService; // To use it with 'www.amazon.co.uk' as the default storeconst amazonGeotargetService = 'www.amazon.co.uk';amazonGeotargetService;
Refer to index.html for usage on a webpage.
IP Sources
IP service providers:
https://ipapi.co/
https://freegeoip.net/