Hello developers, if you are looking for a downloadable JSON example file containing Country, State, and City data, complete with longitude and latitude for your application, you have come to the right place.
In this article, we provide a link to a JSON file that includes Country, State, and City information, along with longitude, latitude, country ISO code, currency name, and symbol.
You can use this sample JSON data to build your application, and it is compatible with all languages such as JavaScript, Python, React, Angular, etc.
This blog post we will provide ,JSON files containing information about countries, states, and cities, complete with longitude and latitude coordinates.
The provided JSON data represents information about the United States, including its states and cities, with additional details such as ISO codes, phone code, currency information, and geographic coordinates (latitude and longitude).
{ "name": "United States", "iso3": "USA", "iso2": "US", "phone_code": "1", "currency": "USD", "currency_name": "United States dollar", "currency_symbol": "$", "latitude": "38.00000000", "longitude": "-97.00000000", "states": [ { "name": "Alabama", "latitude": "32.31823140", "longitude": "-86.90229800", "state_code": "AL", "cities": [ { "name": "Abbeville", "state_code": null, "latitude": "31.57184000", "longitude": "-85.25049000" }, // More cities in Alabama can follow in a similar structure ] }, // More states in the United States can follow in a similar structure ] }
- name: The name of the country, in this case, "United States."
- iso3: The three-letter country code, here "USA."
- iso2: The two-letter country code, here "US."
- phone_code: The international phone code for the country, in this case, "1."
- currency: The currency code, in this case, "USD" for the United States dollar.
- currency_name: The full name of the currency, here "United States dollar."
- currency_symbol: The symbol used for the currency, here "$."
- states: An array containing information about each state.
- name: The name of the state, for example, "Alabama."
- latitude: The latitude coordinate of the state's center.
- longitude: The longitude coordinate of the state's center.
- state_code: The code associated with the state, for example, "AL" for Alabama.
- cities: An array containing information about cities within the state.
- cities: An array containing information about each city.
- name: The name of the city, for example, "Abbeville."
- state_code: The state code to which the city belongs (if applicable).
- latitude: The latitude coordinate of the city.
- longitude: The longitude coordinate of the city.
Read Similar Articles
- Solved Error : Reading JObject from JsonReader. Current JsonReader item is not an object: StartArray. Path
- How To Call WCF Service Method From PostMan In C#
- Understand Self Join in Linq | Self Join with Lambada Expression
- What Is The Power Consumption Of Ceiling Fan | Pedestal and Table Fan Energy Usage
- [Solved]-"Spring Boot: Consider defining a bean named 'entityManagerFactory' in your configuration"
- Solve ValueKind = Object : {} When Using A dynamic Object In C#
- [Solved]-"firebasecommandexception: an error occured on the firebase cli when attempting to run a command."
- Logon Trigger Example to Restrict Access In Sql Server