Hasan Akpürüm
Kıdemli Yazılım Danışmanı
Makele Detayı

geo plugin Kullanımı js location

4.4.2013 00:56:35
geoplugin ne işe yarar. geoplugin bir java script kutuphanesidir webservis hizmetleri vermektedir. Çok kolay bir şekilde sitenize gelenin lokasyon bilgilerini öğrenmenizi sağlar. sitenizin head tag ları arasına yazmanız yeterli. Daha sonra aşağıdaki functionları kullanarak bilgileri elde edebilirsiniz. Örn: function () { var country = geoplugin_countryCode(); alert(country); }     geoplugin_request()
function geoplugin_request() { return '88.242.126.29'; }
geoplugin_status()
function geoplugin_status() { return '200'; }
geoplugin_city()
function geoplugin_city() { return 'Izmir'; }
geoplugin_region()
function geoplugin_region() { return 'İzmir'; }
geoplugin_areaCode()
function geoplugin_areaCode() { return '0'; }
geoplugin_dmaCode()
function geoplugin_dmaCode() { return '0'; }
geoplugin_countryCode()
function geoplugin_countryCode() { return 'TR'; }
geoplugin_countryName()
function geoplugin_countryName() { return 'Turkey'; }
geoplugin_continentCode()
function geoplugin_continentCode() { return 'EU'; }
geoplugin_latitude()
function geoplugin_latitude() { return '38.412701'; }
geoplugin_longitude()
function geoplugin_longitude() { return '27.138399'; }
geoplugin_currencyCode()
function geoplugin_currencyCode() { return 'TRL'; }
geoplugin_currencySymbol()
function geoplugin_currencyCode() { return '₤'; }
geoplugin_currencyConverter()
function geoplugin_currencyConverter(amt, symbol) { 
	 var converted = amt * 0
	 if (symbol == false) { return Math.round(converted * 100)/100; } 
	 else { return '' + Math.round(converted * 100)/100; } 
 }
 Aşağıdaki adresten daha detaylı bilgileri alabilirsiniz.
Yorum yaz

Thanks, your message is sent successfully.