For Zoho Services only:


I'm actually part of something bigger at Ascent Business Solutions recognized as the top Zoho Premium Solutions Partner in the United Kingdom.

Ascent Business Solutions offer support for smaller technical fixes and projects for larger developments, such as migrating to a ZohoCRM.  A team rather than a one-man-band is always available to ensure seamless progress and address any concerns. You'll find our competitive support rates with flexible, no-expiration bundles at https://ascentbusiness.co.uk/zoho-services/uk-zoho-support.  For larger projects, talk to our experts and receive dedicated support from our hands-on project consultants at https://ascentbusiness.co.uk/zoho-services/zoho-crm-implementation.

The team I manage specializes in coding API integrations between Zoho and third-party finance/commerce suites such as Xero, Shopify, WooCommerce, and eBay; to name but a few.  Our passion lies in creating innovative solutions where others have fallen short as well as working with new businesses, new sectors, and new ideas.  Our success is measured by the growth and ROI we deliver for clients, such as transforming a garden shed hobby into a 250k monthly turnover operation or generating a +60% return in just three days after launch through online payments and a streamlined e-commerce solution, replacing a paper-based system.

If you're looking for a partner who can help you drive growth and success, we'd love to work with you.  You can reach out to us on 0121 392 8140 (UK) or info@ascentbusiness.co.uk.  You can also visit our website at https://ascentbusiness.co.uk.

Zoho Deluge - Get User Timezone, Country and Location

What?
A quick article just as a note to get the users country information from a third-party API based on the given IP address.

How?
Well this is just a list of free 3rd-party APIs and the below code is dependent on these being online and working...

The quickest I found [limit 1000 per day | Incorrect Location]:
copyraw
v_Url = "http://api.db-ip.com/v2/free/"+ zoho.ipaddress;
v_Response = getUrl( v_Url );
  1.  v_Url = "http://api.db-ip.com/v2/free/"+ zoho.ipaddress; 
  2.  v_Response = getUrl( v_Url )

Returns something like:
copyraw
{
    "ipAddress": "147.188.254.175",
    "continentCode": "EU",
    "continentName": "Europe",
    "countryCode": "GB",
    "countryName": "United Kingdom",
    "stateProv": "England",
    "city": "Birmingham (Edgbaston)"
}
  1.  { 
  2.      "ipAddress": "147.188.254.175", 
  3.      "continentCode": "EU", 
  4.      "continentName": "Europe", 
  5.      "countryCode": "GB", 
  6.      "countryName": "United Kingdom", 
  7.      "stateProv": "England", 
  8.      "city": "Birmingham (Edgbaston)" 
  9.  } 

A more comprehensive alternative [Limit 150 per minute | not for commercial use]:
copyraw
v_Url = "http://ip-api.com/json/"+ zoho.ipaddress;
v_Response = getUrl( v_Url );
// usage: v_TimeZone = v_Response.getJSON("timezone");
  1.  v_Url = "http://ip-api.com/json/"+ zoho.ipaddress; 
  2.  v_Response = getUrl( v_Url )
  3.  // usage: v_TimeZone = v_Response.getJSON("timezone")

Returns something like:
copyraw
{
    "query": "147.188.254.175",
    "status": "success",
    "continent": "Europe",
    "continentCode": "EU",
    "country": "United Kingdom",
    "countryCode": "GB",
    "region": "ENG",
    "regionName": "England",
    "city": "Birmingham",
    "district": "",
    "zip": "B15",
    "lat": 52.4666,
    "lon": -1.9205,
    "timezone": "Europe/London",
    "isp": "University of Birmingham",
    "org": "The University of Birmingham",
    "as": "AS786 Jisc Services Limited",
    "asname": "JANET",
    "mobile": false,
    "proxy": false
}
  1.  { 
  2.      "query": "147.188.254.175", 
  3.      "status": "success", 
  4.      "continent": "Europe", 
  5.      "continentCode": "EU", 
  6.      "country": "United Kingdom", 
  7.      "countryCode": "GB", 
  8.      "region": "ENG", 
  9.      "regionName": "England", 
  10.      "city": "Birmingham", 
  11.      "district": "", 
  12.      "zip": "B15", 
  13.      "lat": 52.4666, 
  14.      "lon": -1.9205, 
  15.      "timezone": "Europe/London", 
  16.      "isp": "University of Birmingham", 
  17.      "org": "The University of Birmingham", 
  18.      "as": "AS786 Jisc Services Limited", 
  19.      "asname": "JANET", 
  20.      "mobile": false, 
  21.      "proxy": false 
  22.  } 

List of Free APIs with GeoLocation services:
Just append the IP address to the end of these to test.
Category: Zoho :: Article: 682

Add comment

Your rating:

Submit

Credit where Credit is Due:


Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.

Disclaimer: Please note that the information provided on this website is intended for informational purposes only and does not represent a warranty. The opinions expressed are those of the author only. We recommend testing any solutions in a development environment before implementing them in production. The articles are based on our good faith efforts and were current at the time of writing, reflecting our practical experience in a commercial setting.

Thank you for visiting and, as always, we hope this website was of some use to you!

Kind Regards,

Joel Lipman
www.joellipman.com

Please publish modules in offcanvas position.