{"id":16458658,"url":"https://github.com/onecodemonkey/amapsdk","last_synced_at":"2025-02-27T04:42:11.090Z","repository":{"id":57031613,"uuid":"329214290","full_name":"OneCodeMonkey/AmapSDK","owner":"OneCodeMonkey","description":"AMap SDK for PHP (高德地图 web API) ","archived":false,"fork":false,"pushed_at":"2021-01-14T03:15:28.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-25T17:33:08.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OneCodeMonkey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-13T06:26:27.000Z","updated_at":"2021-01-14T03:15:30.000Z","dependencies_parsed_at":"2022-08-24T01:20:39.868Z","dependency_job_id":null,"html_url":"https://github.com/OneCodeMonkey/AmapSDK","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneCodeMonkey%2FAmapSDK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneCodeMonkey%2FAmapSDK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneCodeMonkey%2FAmapSDK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneCodeMonkey%2FAmapSDK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OneCodeMonkey","download_url":"https://codeload.github.com/OneCodeMonkey/AmapSDK/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240980742,"owners_count":19888328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T10:45:55.527Z","updated_at":"2025-02-27T04:42:11.068Z","avatar_url":"https://github.com/OneCodeMonkey.png","language":"PHP","readme":"# AmapSDK\nAMap SDK for PHP (高德地图 web API) \n\n基础 HTTP 请求使用协程版 guzzle http，所以支持在 swoole 协程环境下使用。\n\n安装\n```bash\ncomposer require onecodemonkey/amap_sdk \n```\n使用\n```php\n\u003c?php\n\nuse Amap\\Amap;\nuse Hyperf\\Guzzle\\ClientFactory;\nuse Hyperf\\Di\\Annotation\\Inject;\n\nclass Test {\n    /**\n     * @Inject\n     * @var ClientFactory\n     */\n    private $clientFactory;\n    \n    /**\n     * 搜索周边 POI\n     */\n    public function testSearchAround()\n    {\n        $options = [\n            'key' =\u003e 'XXX',\n        ];\n        $client = new Amap($options, $this-\u003eclientFactory);\n        \n        $params = [\n            'types' =\u003e 150500,  // 地铁站\n            \"offset\" =\u003e 25,\n            \"page\" =\u003e 1,\n        ];\n        \n        $result = $client-\u003earoundSearch(\"116.740000,40.330000\", $params);\n        \n        var_dump($result);\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonecodemonkey%2Famapsdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonecodemonkey%2Famapsdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonecodemonkey%2Famapsdk/lists"}