All Projects → crazyandcoder → Citypicker

crazyandcoder / Citypicker

Licence: apache-2.0
citypicker城市选择器,详细的省市区地址信息,支持仿iOS滚轮实现,仿京东样式,一级或者三级列表展示方式。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Citypicker

Administrative Divisions Of China
中华人民共和国行政区划:省级(省份直辖市自治区)、 地级(城市)、 县级(区县)、 乡级(乡镇街道)、 村级(村委会居委会) ,中国省市区镇村二级三级四级五级联动地址数据。
Stars: ✭ 11,727 (+283.61%)
Mutual labels:  city, province, area
Androidpicker
安卓选择器类库,包括日期及时间选择器(可用于出生日期、营业时间等)、单项选择器(可用于性别、民族、职业、学历、星座等)、二三级联动选择器(可用于车牌号、基金定投日期等)、城市地址选择器(分省级、地市级及区县级)、数字选择器(可用于年龄、身高、体重、温度等)、日历选日期择器(可用于酒店及机票预定日期)、颜色选择器、文件及目录选择器、图片选择器等……WheelPicker/DatePicker/TimePicker/OptionPicker/NumberPicker/LinkagePicker/AddressPicker/CarPlatePicker/CalendarPicker/ColorPicker/FilePicker/ImagePicker etc.
Stars: ✭ 5,320 (+74.03%)
Mutual labels:  wheelview, citypicker
cityPicker
jQuery 城市模拟下拉插件
Stars: ✭ 26 (-99.15%)
Mutual labels:  city, citypicker
ir-city-select
List of Iran provinces and cities to use in HTML forms. ( ~2.3KB gzipped )
Stars: ✭ 22 (-99.28%)
Mutual labels:  province, city
administrative-divisions-of-China-on-Python
中华人民共和国行政区划爬虫,分为省级、地级、县级、乡级、村级,最多五级连动,可通过本项目自行爬取数据也可使用本项目在线接口直接调用。
Stars: ✭ 91 (-97.02%)
Mutual labels:  province, city
zoning
中华人民共和国行政区划:省级(省份直辖市自治区)、 地级(城市)、 县级(区县)、 乡级(乡镇街道)、 村级(村委会居委会)
Stars: ✭ 110 (-96.4%)
Mutual labels:  city, area
qqmap-region
腾讯位置服务中国标准行政区划数据 SDK
Stars: ✭ 22 (-99.28%)
Mutual labels:  district
arboles
Mapa de Arbolado Urbano
Stars: ✭ 13 (-99.57%)
Mutual labels:  city
vue-panorama
Panorama viewer for your homepage
Stars: ✭ 19 (-99.38%)
Mutual labels:  wheelview
citylines
Citylines.co is a collaborative platform for mapping the transit systems of the world!
Stars: ✭ 53 (-98.27%)
Mutual labels:  city
city-tour
A procedurally generated city built with WebGL and three.js
Stars: ✭ 57 (-98.14%)
Mutual labels:  city
memefactory
MemeFactory is a platform for the decentralized creation, issuance, and exchange of provably rare digital collectibles on the Ethereum blockchain.
Stars: ✭ 72 (-97.64%)
Mutual labels:  district
local-government-design-systems
A repo of local government design systems & pattern libraries. Specifically for municipal (local) & sub-state governments
Stars: ✭ 24 (-99.21%)
Mutual labels:  city
google streetview
A command line tool and module for Google Street View Image API
Stars: ✭ 77 (-97.48%)
Mutual labels:  city
SDCityPicker
城市选择器
Stars: ✭ 19 (-99.38%)
Mutual labels:  citypicker
IP2Location-PHP-Module
This module is a PHP module that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage types, address type, IAB category, etc that any IP address or host name originates from.
Stars: ✭ 154 (-94.96%)
Mutual labels:  city
icity
Get the tools for the city where your phone number is located
Stars: ✭ 47 (-98.46%)
Mutual labels:  city
magento2-regions-manager
Manage regions in magento2 addresses, regions manager in magento 2
Stars: ✭ 34 (-98.89%)
Mutual labels:  city
311
New web portal for BOS:311
Stars: ✭ 15 (-99.51%)
Mutual labels:  city
China CoronaVirus Data Miner
Collects officially published daily stats for the corona-virus (China only) 收集新冠状病毒中国每日疫情数据,精确到地级
Stars: ✭ 24 (-99.21%)
Mutual labels:  province

CityPicker 城市选择器

在实际的项目中一般情况下都需要使用到省市区三级联动地址选择的功能,有的公司是提供接口获取,有的公司则不是,需要自己实现。一开始,我也深受其扰,每次都是要复制一遍,就想能不能打个包出来,供大伙使用。所以自己就封装了一个,不需要自己添加数据源,直接引用即可。这就是CityPicker城市选择器的由来!

功能点

  1. 支持仿iOS滚轮实现、仿京东样式、一级城市列表、三级城市列表
  2. 支持多种自定义属性来满足你的需求
  3. 简单的几行代码即可实现城市选择器功能
  4. 支持使用自己的数据来实现城市选择器

gradle引用

  1. 在 Project 的 build.gradle 中增加 jitpack 的 maven 地址
	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
  1. 在 app 的 build.gradle 中增加我们开源库的引用
	dependencies {
	        implementation 'com.github.crazyandcoder:citypicker:6.0.2'
	}

更新说明

最新版本

V6.0.2版本更新内容(2021.07.09)

  1. 更新数据源,使用最新省市区行政数据
  2. 优化汉字转拼音逻辑,提高解析精度

历史更新记录

历史更新说明

数据来源

2018年12月中华人民共和国县以上行政区划代码

台湾数据(维基百科)需翻墙

港澳数据(维基百科)需翻墙

效果展示

样式说明 图片效果
样式选择 在这里插入图片描述
仿iOS滚轮实现 8.11x16.19-1080x2050 在这里插入图片描述
自定义数据源 在这里插入图片描述
仿京东样式 在这里插入图片描述 在这里插入图片描述
一级城市列表 在这里插入图片描述 在这里插入图片描述
三级城市列表 在这里插入图片描述 在这里插入图片描述在这里插入图片描述

CityPicker使用方法

一. 仿iOS样式使用方法

  1. 样式一链接-(仿iOS滚轮实现)
  2. 样式一链接-(自定义数据源)

二. 仿京东样式使用方法

样式二链接-(仿京东样式)

三. 一级城市列表使用方法

样式三链接-一级城市列表使用方法

四. 三级城市列表使用方法

样式四链接-三级城市列表使用方法

代码混淆

代码混淆解决方案

专属QQ群,欢迎加入!

QQ群:417846442

其他问题wiki

https://github.com/crazyandcoder/citypicker/wiki

License

Copyright 2016 crazyandcoder

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

码农的小世界

欢迎关注本人公众号,学习更多知识,每天定时更新干货。

citypicker logo

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].