承接 ganti/swisszip 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ganti/swisszip

Composer 安装命令:

composer require ganti/swisszip

包简介

Get village by Postleitzahl (ZIP-Code)

README 文档

README

Get town by Postleitzahl (ZIP-Code)

Test it here: https://swisszip.api.ganti.dev/zip/3073

UpdateZIP

Query

/zip.php?zip=3073&format=(json|xml|debug)&canton=BE

category type value description
zip 4 digit number 1000-9999 Postleitzahl/ ZIP-Code
format string json; xml; debug output format
canton string e.g AG, GR, ZH filter by canton
scope string municipality, town default: municipality; If town (Ortschaft) is set the grouping changes. there can be multiple towns within one municipality (Gemeinde) or multiple municipalities within a town. As example try both params with zip 7415

Response

category type value description
status count number how many results
status distinct 0 or 1 there was exactly one result
status status 'ok' or 'error' general information if request was successful
status error['name'] string error
status error['description'] string description of error
data zip 4 digit number Postleitzahl/ ZIP-Code
data bfs 4 digit number GemeindeNummer, Official municipality ID
data town string Name of town (Ortschaft)
data municipality string Name of municipality (official municipality name)
data zip-share number percentage of area
data locale string de, fr, it, rm
   [status] => Array
        (
            [status] => ok
            [count] => 4
            [distinct] => 0
        )
   
    [data] => Array
        (
            [0] => Array
                (
                    [zip] => 3073
                    [zip-share] => 99.06
                    [town] => Gümligen
                    [bfs] => 356
                    [municipality] => Muri bei Bern
                    [canton] => BE
                    [locale] => de
                )
   
            [1] => Array
                (
                    [zip] => 3073
                    [zip-share] => 0.58
                    [town] => Gümligen
                    [bfs] => 351
                    [municipality] => Bern
                    [canton] => BE
                    [locale] => de
                )
   
            [2] => Array
                (
                    [zip] => 3073
                    [zip-share] => 0.31
                    [town] => Gümligen
                    [bfs] => 363
                    [municipality] => Ostermundigen
                    [canton] => BE
                    [locale] => de
                )
   
            [3] => Array
                (
                    [zip] => 3073
                    [zip-share] => 0.04
                    [town] => Gümligen
                    [bfs] => 630
                    [municipality] => Allmendingen
                    [canton] => BE
                    [locale] => de
                )
   
        )

Datasource

from the official commune register

CC0 License

CC0-1.0 2019-2024 github.com/ganti

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIEDi WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

ganti/swisszip 适用场景与选型建议

ganti/swisszip 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 01 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 ganti/swisszip 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 ganti/swisszip 我们能提供哪些服务?
定制开发 / 二次开发

基于 ganti/swisszip 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 20
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-01-16