简体   繁体   中英

How to get country dialling code using country code or country name?

I want to get Country dialling code like +91(India) through Country Name (India) OtherWise Country Code (IN).

Example through I was getting country name and country code,

$.getJSON('http://freegeoip.net/json/', function(result) {
  alert(result.country_code); 
  alert(result.country_name);    
});

I know this i way too late but it might help someone at some point

RestCountries

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM