kladrapi-php's People
Forkers
mibamur mousemckill adeg toporchillo 2bj nkarpovich novoselovmaks magr0s okspen pamkil pad0nak saiks24 vladimir-gkladrapi-php's Issues
Add composer.json
It would be perfect if you register this library on the packagist website and put here composer json for it
При поиске с помощью OneString не учитывает ContentType
Запрос:
$query = new Query();
$query->ContentType = 'city';
$query->ContentName = 'Тюменская область, Тобольск';
$query->OneString = true;
$query->WithParent = true;
$query->Limit = 1;
Ответ:
stdClass Object
(
[searchContext] => stdClass Object
(
[oneString] => 1
[contentType] => city
[query] => Тюменская область, Тобольск
[withParent] => 1
[limit] => 1
)
[result] => Array
(
[0] => stdClass Object
(
[id] => 7201700000000
[name] => Тобольский
[zip] =>
[type] => Район
[typeShort] => р-н
[okato] => 71410000000
[contentType] => district
[fullName] => Тюменская Область, Тобольский Район
[parents] => Array
(
[0] => stdClass Object
(
[id] => 7200000000000
[name] => Тюменская
[zip] =>
[type] => Область
[typeShort] => обл
[okato] => 71000000000
[contentType] => region
)
)
)
)
)
Хотя указан $query->ContentType = 'city';
И еще - не плохо бы все это обернуть в composer.
Почему не возвращает больше 400 обьектов
если указать в настройках запроса вот такую строку
$query->ContentName = '.';
то вернет 400 результатов максимум
Улучшения по юзабилити клиента
Привет.
Думаю что код функции ухудшает возможности работы с родительскими объектами. Почуму бы не завести опциональный параметр в QueryToJson
$assoc = false
который потом передавать в json_decode
. В моем прокте мне понадобился параметр contentType
для заполнения полей адреса после поиска по индексу.
Если что могу оформить ПР
Спасибо!
Как подставлять полные наименования объектов в форму?
Использую форму для ввода адреса и ваш плагин.
Ввожу "Краснод", предлагает Краснодярский край, выбираю, в форму подставляется Краснодарский без края. Каким образом сделать так, чтобы подставлялось полное наменование? Может, есть какие-то настройки для этого?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.