├── .gitignore ├── .gitattributes └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /.vscode 3 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Data Statistics 2 | | Cities | Counties | Districts | Neighborhoods | 3 | | --- | --- | --- | --- | 4 | | 81 | 973 | 2771 | 73305 | 5 | 6 | ## Data Structure 7 | The `data.json` file contains a hierarchical of Turkey's administrative divisions, including cities, counties, districts, and neighborhoods. 8 | 9 | ### `Neighborhood` 10 | 11 | Represents a neighborhood within a district. 12 | 13 | | Field | Type | Description | 14 | |--------|----------|-----------------------------------| 15 | | `name` | `string` | The name of the neighborhood. | 16 | | `code` | `string` | A post code for the neighborhood. | 17 | 18 | ### `District` 19 | 20 | Represents a district within a county. 21 | 22 | | Field | Type | Description | 23 | | --- | --- | --- | 24 | | `name` | `string` | The name of the district. | 25 | | `neighborhoods` | `Neighborhood[]` | An array of neighborhoods within the district. | 26 | 27 | ### `County` 28 | 29 | Represents a county within a city. 30 | 31 | | Field | Type | Description | 32 | | --- | --- | --- | 33 | | `name` | `string` | The name of the county. | 34 | | `districts` | `District[]` | An array of districts within the county. | 35 | 36 | ### `City` 37 | 38 | Represents a city. 39 | 40 | | Field | Type | Description | 41 | | --- | --- | --- | 42 | | `name` | `string` | The name of the city. | 43 | | `counties` | `County[]` | An array of counties within the city. | 44 | 45 | The `data.json` file contains an array of `City` objects, each of which contains an array of `County` objects, which in turn contain an array of `District` objects, and so on. 46 | 47 | ## Example Data 48 | 49 | Here is an example of the data structure in `data.json`: 50 | 51 | ```json 52 | { 53 | [ 54 | { 55 | "name": "City A", 56 | "counties": [ 57 | { 58 | "name": "County A1", 59 | "districts": [ 60 | { 61 | "name": "District A1.1", 62 | "neighborhoods": [ 63 | { 64 | "name": "Neighborhood A1.1.1", 65 | "code": "A1.1.1" 66 | }, 67 | { 68 | "name": "Neighborhood A1.1.2", 69 | "code": "A1.1.2" 70 | } 71 | ] 72 | }, 73 | { 74 | "name": "District A1.2", 75 | "neighborhoods": [ 76 | { 77 | "name": "Neighborhood A1.2.1", 78 | "code": "A1.2.1" 79 | }, 80 | { 81 | "name": "Neighborhood A1.2.2", 82 | "code": "A1.2.2" 83 | } 84 | ] 85 | } 86 | ] 87 | }, 88 | { 89 | "name": "County A2", 90 | "districts": [ 91 | { 92 | "name": "District A2.1", 93 | "neighborhoods": [ 94 | { 95 | "name": "Neighborhood A2.1.1", 96 | "code": "A2.1.1" 97 | }, 98 | { 99 | "name": "Neighborhood A2.1.2", 100 | "code": "A2.1.2" 101 | } 102 | ] 103 | }, 104 | { 105 | "name": "District A2.2", 106 | "neighborhoods": [ 107 | { 108 | "name": "Neighborhood A2.2.1", 109 | "code": "A2.2.1" 110 | }, 111 | { 112 | "name": "Neighborhood A2.2.2", 113 | "code": "A2.2.2" 114 | } 115 | ] 116 | } 117 | ] 118 | } 119 | ] 120 | } 121 | ] 122 | } 123 | --------------------------------------------------------------------------------