/covid-analyzer

Trunçgil Covid Analizer API

Primary LanguagePHP

Trunçgil Covid Analyzer

You can track the progress of Covid-19 virus of spread on Trunçgil Covid Analyzer.

Usage:

You can simply use the auto-updated json file: https://covid.truncgil.com/today.json

PHP

$covid = json_decode(file_get_contents("https://covid.truncgil.com/today.json"),true);
print_r($covid);

JavaScript / jQuery

$.getJSON( "https://covid.truncgil.com/today.json", function( data ) {
  let items = [];
  $.each( data, function( key, val ) {
    items.push( "<li id='" + key + "'>" + val + "</li>" );
  });
 
  $( "<ul/>", {
    "class": "my-new-list",
    html: items.join( "" )
  }).appendTo( "body" );
});

Output

{
    "id":"unitedstates",
    "Ülke":"ABD",
    "Bulaşmış":142537,
    "Kurtulan":4767,
    "Ölüm":2510,
    "Aktif":135260,
    "Enlem":39.495914459229,
    "Boylam":-98.98998260498
}

JSON Tree

id: id
Ülke: Country
Bulaşmış: Infected
Kurtulan: Saved
Ölüm: Dead
Aktif: Active
Enlem: Latitute
Boylam: Longitude

Sample

Trunçgil Covid Analyzer Trunçgil Covid Analyzer Page: covid.truncgil.com

Türkçe

Trunçgil Covid Analyzer ile Covid-19 virüsünün yayılmasını takip edebilirsiniz.

Kullanım:

Otomatik olarak güncellenen json dosyasını basit bir şekilde kullanabilirsiniz: https://covid.truncgil.com/today.json

PHP

$covid = json_decode(file_get_contents("https://covid.truncgil.com/today.json"),true);
print_r($covid);

JavaScript / jQuery

$.getJSON( "https://covid.truncgil.com/today.json", function( data ) {
  let items = [];
  $.each( data, function( key, val ) {
    items.push( "<li id='" + key + "'>" + val + "</li>" );
  });
 
  $( "<ul/>", {
    "class": "my-new-list",
    html: items.join( "" )
  }).appendTo( "body" );
});

Örnek

Trunçgil Covid Analyzer Trunçgil Covid Analyzer Page: covid.truncgil.com

Çıktı

{
    "id":"unitedstates",
    "Ülke":"ABD",
    "Bulaşmış":142537,
    "Kurtulan":4767,
    "Ölüm":2510,
    "Aktif":135260,
    "Enlem":39.495914459229,
    "Boylam":-98.98998260498
}

JSON Ağacı

id: id
Ülke: Country
Bulaşmış: Infected
Kurtulan: Saved
Ölüm: Dead
Aktif: Active
Enlem: Latitute
Boylam: Longitude