Найти индекс по городу

Материал из post-API.ru
Перейти к: навигация, поиск

Пример 1

Пользователь ввел "сан" (Внимание! для передачи названия в кавычках, см описание web-сервиса city2index.php)

post-api.ru/api/city2index.php?d=1&apikey=dev&city=сан]

   Array
   (
       [id] => IBC                                          // Массив-ответ тип IBC
       [api_ver] => 1.0                                     // Версия API типа IBC
       [status] => ok                                       // Данные обработаны нормально
       [access] => active                                   // Ключ доступа к API активный
       [access_status] => ok                                // Доступ к API разрешен
       [executed_time] => 0.3570408821106                   // Время выполнения скрипта (без учета сетевых задержек между сервером и клиентом)
       [city] => сан                                        // Фрагмент города для поиска (Внимание! для передачи названия в кавычках, см описание web-сервиса city2index.php)
       [content] => Array
           (
               [0] => Array
                   (
                       [region] => Московская обл.           // Край/Область/Республика/Город фед. значения (Москва, Питер)
                       [autonom] =>                         // Автономная область
                       [area] => Шатурский р-н               // Район
                       [city] => Санаторий Озеро-Белое       // Населеный пункт (город/поселок/село/деревня/станция/санаторий/в/ч и пр.)
                       [indexes] => Array
                            (
                                [0] => 140765               // Почтовый индекс или набор индексов
                            )
                   )
               [1] => Array
                   (
                       [region] => Московская обл.
                       [autonom] => 
                       [area] => Щелковский р-н
                       [city] => Санаторий Вцспс N5
                       [indexes] => Array
                           (
                               [0] => 141152
                           )
                   )

...

               [64] => Array
                   (
                       [region] => Хабаровский край
                       [autonom] => 
                       [area] => Амурский р-н
                       [city] => Санболи
                       [indexes] => Array
                           (
                                [0] => 682625
                           )
                   )
           )
    )


Пример 2

Пользователь ввел "санкт" (Внимание! для передачи названия в кавычках, см описание web-сервиса city2index.php)

post-api.ru/api/city2index.php?d=1&apikey=dev&city=санкт]

   Array
   (
       [id] => IBC                                          // Массив-ответ тип IBC
       [api_ver] => 1.0                                     // Версия API типа IBC
       [status] => ok                                       // Данные обработаны нормально
       [access] => active                                   // Ключ доступа к API активный
       [access_status] => ok                                // Доступ к API разрешен
       [executed_time] => 0.073176860809326                 // Время выполнения скрипта (без учета сетевых задержек между сервером и клиентом)
       [city] => санкт                                       // Фрагмент города для поиска (Внимание! для передачи названия в кавычках, см описание web-сервиса city2index.php)
       [content] => Array
           (
               [0] => Array
                   (
                       [region] => Санкт-Петербург            // Край/Область/Республика/Город фед. значения (Москва, Питер)
                       [autonom] =>       
                       [area] => 
                       [city] => 
                       [indexes] => Array                    // Массив индексов города Санкт-Петербург
                       (                                     // Наличие одного результат означает
                           [0] => 190000                     // Что поисковый результат достигнут
                           [1] => 190005
                           [2] => 190008
                           [3] => 190013
                           [4] => 190020
                           [5] => 190031
                           [6] => 190068
                           [7] => 190098
                           [8] => 190103
                           [9] => 190107
                           [10] => 190121
                           [11] => 190147
                           [12] => 190195
                           [13] => 190700
                           [14] => 190801
                           [15] => 190802
                           [16] => 190803
                           [17] => 190804
                           [18] => 190805
                           [19] => 190806
                           [20] => 190807
                           [21] => 190808
                           [22] => 190809
                           [23] => 190810
                           [24] => 190811
                           [25] => 190812
                           [26] => 190813
                           [27] => 190814
                           [28] => 190815
                           [29] => 190816
                           [30] => 190817
                           [31] => 190818
                           [32] => 190819
                           [33] => 190820
                           [34] => 190821
                           [35] => 190822
                           [36] => 190823
                           [37] => 190824
                           [38] => 190825
                           [39] => 190826
                           [40] => 190827
                           [41] => 190828
                           [42] => 190829
                           [43] => 190830
                           [44] => 190831
                           [45] => 190832
                           [46] => 190833
                           [47] => 190834
                           [48] => 190835
                           [49] => 190836
                           [50] => 190837
                           [51] => 190838
                           [52] => 190839
                           [53] => 190840
                           [54] => 190841
                           [55] => 190842
                           [56] => 190843
                           [57] => 190844
                           [58] => 190845
                           [59] => 190846
                           [60] => 190847
                           [61] => 190848
                           [62] => 190849
                           [63] => 190850
                           [64] => 190851
                           [65] => 190852
                           [66] => 190853
                           [67] => 190854
                           [68] => 190855
                           [69] => 190856
                           [70] => 190880
                           [71] => 190882
                           [72] => 190885
                           [73] => 190890
                           [74] => 190891
                           [75] => 190899
                           [76] => 190909
                           [77] => 190911
                           [78] => 190914
                           [79] => 190915
                           [80] => 190916
                           [81] => 190924
                           [82] => 190960
                           [83] => 190961
                           [84] => 190966
                           [85] => 190967
                           [86] => 190970
                           [87] => 190971
                           [88] => 190973
                           [89] => 190974
                           [90] => 190975
                           [91] => 190976
                           [92] => 190977
                           [93] => 190978
                           [94] => 190979
                           [95] => 190980
                           [96] => 190981
                           [97] => 190985
                           [98] => 190986
                           [99] => 190987
                           [100] => 190990
                           [101] => 190999
                           [102] => 191002
                           [103] => 191011
                           [104] => 191014
                           [105] => 191015
                           [106] => 191023
                           [107] => 191024
                           [108] => 191025
                           [109] => 191028
                           [110] => 191033
                           [111] => 191036
                           [112] => 191038
                           [113] => 191040
                           [114] => 191055
                           [115] => 191060
                           [116] => 191069
                           [117] => 191086
                           [118] => 191104
                           [119] => 191119
                           [120] => 191122
                           [121] => 191123
                           [122] => 191124
                           [123] => 191141
                           [124] => 191144
                           [125] => 191163
                           [126] => 191167
                           [127] => 191180
                           [128] => 191181
                           [129] => 191186
                           [130] => 191187
                           [131] => 191193
                           [132] => 191311
                           [133] => 191317
                           [134] => 192007
                           [135] => 192012
                           [136] => 192019
                           [137] => 192029
                           [138] => 192071
                           [139] => 192076
                           [140] => 192102
                           [141] => 192131
                           [142] => 192148
                           [143] => 192159
                           [144] => 192171
                           [145] => 192174
                           [146] => 192177
                           [147] => 192212
                           [148] => 192236
                           [149] => 192238
                           [150] => 192239
                           [151] => 192241
                           [152] => 192242
                           [153] => 192281
                           [154] => 192282
                           [155] => 192283
                           [156] => 192284
                           [157] => 192285
                           [158] => 192286
                           [159] => 192288
                           [160] => 192289
                           [161] => 192290
                           [162] => 192906
                           [163] => 193079
                           [164] => 193091
                           [165] => 193149
                           [166] => 193168
                           [167] => 193230
                           [168] => 193231
                           [169] => 193232
                           [170] => 193312
                           [171] => 193313
                           [172] => 193315
                           [173] => 193318
                           [174] => 193382
                           [175] => 194017
                           [176] => 194021
                           [177] => 194044
                           [178] => 194064
                           [179] => 194100
                           [180] => 194153
                           [181] => 194156
                           [182] => 194214
                           [183] => 194223
                           [184] => 194291
                           [185] => 194292
                           [186] => 194294
                           [187] => 194295
                           [188] => 194300
                           [189] => 194352
                           [190] => 194353
                           [191] => 194354
                           [192] => 194355
                           [193] => 194356
                           [194] => 194358
                           [195] => 195009
                           [196] => 195027
                           [197] => 195030
                           [198] => 195043
                           [199] => 195067
                           [200] => 195112
                           [201] => 195160
                           [202] => 195176
                           [203] => 195196
                           [204] => 195197
                           [205] => 195213
                           [206] => 195220
                           [207] => 195221
                           [208] => 195248
                           [209] => 195251
                           [210] => 195252
                           [211] => 195253
                           [212] => 195256
                           [213] => 195257
                           [214] => 195265
                           [215] => 195267
                           [216] => 195269
                           [217] => 195271
                           [218] => 195273
                           [219] => 195274
                           [220] => 195275
                           [221] => 195276
                           [222] => 195277
                           [223] => 195279
                           [224] => 195297
                           [225] => 195298
                           [226] => 195299
                           [227] => 195426
                           [228] => 195427
                           [229] => 196006
                           [230] => 196066
                           [231] => 196070
                           [232] => 196084
                           [233] => 196105
                           [234] => 196128
                           [235] => 196135
                           [236] => 196140
                           [237] => 196142
                           [238] => 196143
                           [239] => 196158
                           [240] => 196189
                           [241] => 196191
                           [242] => 196199
                           [243] => 196210
                           [244] => 196211
                           [245] => 196233
                           [246] => 196240
                           [247] => 196244
                           [248] => 196245
                           [249] => 196247
                           [250] => 197000
                           [251] => 197001
                           [252] => 197022
                           [253] => 197045
                           [254] => 197046
                           [255] => 197082
                           [256] => 197101
                           [257] => 197110
                           [258] => 197136
                           [259] => 197137
                           [260] => 197183
                           [261] => 197198
                           [262] => 197227
                           [263] => 197229
                           [264] => 197341
                           [265] => 197342
                           [266] => 197343
                           [267] => 197345
                           [268] => 197348
                           [269] => 197349
                           [270] => 197350
                           [271] => 197371
                           [272] => 197372
                           [273] => 197373
                           [274] => 197374
                           [275] => 197375
                           [276] => 197376
                           [277] => 197906
                           [278] => 198035
                           [279] => 198095
                           [280] => 198096
                           [281] => 198097
                           [282] => 198099
                           [283] => 198152
                           [284] => 198184
                           [285] => 198188
                           [286] => 198205
                           [287] => 198206
                           [288] => 198207
                           [289] => 198215
                           [290] => 198216
                           [291] => 198217
                           [292] => 198218
                           [293] => 198255
                           [294] => 198259
                           [295] => 198260
                           [296] => 198261
                           [297] => 198262
                           [298] => 198264
                           [299] => 198301
                           [300] => 198302
                           [301] => 198303
                           [302] => 198320
                           [303] => 198323
                           [304] => 198324
                           [305] => 198325
                           [306] => 198326
                           [307] => 198327
                           [308] => 198328
                           [309] => 198329
                           [310] => 198330
                           [311] => 198332
                           [312] => 198334
                           [313] => 198906
                           [314] => 198998
                           [315] => 198999
                           [316] => 199004
                           [317] => 199026
                           [318] => 199034
                           [319] => 199048
                           [320] => 199053
                           [321] => 199058
                           [322] => 199106
                           [323] => 199151
                           [324] => 199155
                           [325] => 199162
                           [326] => 199178
                           [327] => 199226
                           [328] => 199397
                           [329] => 199405
                           [330] => 199406
                           [331] => 200801
                           [332] => 200802
                           [333] => 200803
                           [334] => 200804
                           [335] => 200805
                           [336] => 200806
                           [337] => 200807
                           [338] => 200808
                           [339] => 200809
                           [340] => 200810
                           [341] => 200811
                           [342] => 200812
                           [343] => 200960
                           [344] => 200961
                           [345] => 200969
                           [346] => 200971
                           [347] => 200972
                           [348] => 200973
                           [349] => 200974
                           [350] => 200978
                           [351] => 200979
                           [352] => 200980
                           [353] => 200983
                           [354] => 200987
                           [355] => 200990
                           [356] => 200992
                           [357] => 200994
                           [358] => 200995
                           [359] => 901002
                           [360] => 901084
                           [361] => 901094
                           [362] => 901122
                           [363] => 901124
                           [364] => 901126
                           [365] => 901128
                           [366] => 901130
                           [367] => 901136
                           [368] => 901173
                           [369] => 990000
                           [370] => 990001
                           [371] => 990002
                           [372] => 990003
                           [373] => 990004
                           [374] => 990005
                           [375] => 990006
                           [376] => 990007
                           [377] => 990008
                           [378] => 990009
                           [379] => 990010
                           [380] => 990011
                           [381] => 990012
                           [382] => 990013
                           [383] => 990014
                           [384] => 990015
                           [385] => 990016
                           [386] => 990017
                           [387] => 990018
                           )
                   )
           )
   )