Skip to main content

JSON Country Longitude and Latitude Data

Latitude and longitude are geographic coordinates that are used to specify the position of a location on the surface of the earth. Latitude is a measure of the distance north or south of the equator and is expressed as an angle between 0° and 90°. Longitude is a measure of the distance east or west of the prime meridian and is expressed as an angle between 0° and 180°.

The coordinates of a location can be used to specify its position on a map or to calculate the distance between two locations. They are often used in conjunction with a map projection, which is a system for representing the curved surface of the earth on a flat map.

To find the latitude and longitude of a specific location, you can use a map or a geographic coordinate system, such as the World Geodetic System (WGS84). You can also use online tools or GPS devices to determine the coordinates of a location.

Here is a JSON code snippet that contains some countries and their longitude and latitude:

{
   "countries":[
      {
         "name":"USA",
         "latitude":37.09024,
         "longitude":-95.712891
      },
      {
         "name":"Canada",
         "latitude":56.130366,
         "longitude":-106.346771
      },
      {
         "name":"Mexico",
         "latitude":23.634501,
         "longitude":-102.552784
      },
      {
         "name":"Brazil",
         "latitude":-14.235004,
         "longitude":-51.92528
      },
      {
         "name":"Argentina",
         "latitude":-38.416097,
         "longitude":-63.616672
      },
      {
         "name":"Colombia",
         "latitude":4.570868,
         "longitude":-74.297333
      },
      {
         "name":"Peru",
         "latitude":-9.189967,
         "longitude":-75.015152
      },
      {
         "name":"Venezuela",
         "latitude":6.42375,
         "longitude":-66.58973
      },
      {
         "name":"Chile",
         "latitude":-35.675147,
         "longitude":-71.542969
      },
      {
         "name":"Bolivia",
         "latitude":-16.290154,
         "longitude":-63.588653
      },
      {
         "name":"Paraguay",
         "latitude":-23.442503,
         "longitude":-58.443832
      },
      {
         "name":"Uruguay",
         "latitude":-32.522779,
         "longitude":-55.765835
      },
      {
         "name":"Guyana",
         "latitude":4.860416,
         "longitude":-58.93018
      },
      {
         "name":"Suriname",
         "latitude":3.919305,
         "longitude":-56.027783
      },
      {
         "name":"France",
         "latitude":46.227638,
         "longitude":2.213749
      },
      {
         "name":"Spain",
         "latitude":40.463667,
         "longitude":-3.74922
      },
      {
         "name":"Portugal",
         "latitude":39.399872,
         "longitude":-8.224454
      },
      {
         "name":"Italy",
         "latitude":41.87194,
         "longitude":12.56738
      },
      {
         "name":"Greece",
         "latitude":39.074208,
         "longitude":21.824312
      }
   ]
}

This JSON data structure represents an object with a single property, "countries", which is an array of objects. Each object in the array represents a country and has three properties: "name", "latitude", and "longitude". The values of these properties are strings (for the name of the country) and floating point numbers (for the latitude and longitude coordinates).