Git Product home page Git Product logo

region2coord's Introduction

region2coord

因为个人项目需求,需要根据城市名称得到经纬度信息用于地图展示,由于城市名称是由 ip2region 匹配得到,需要有一个城市集合尽量大于 ip2region 中的城市精度,便根据 city-geo 项目的数据整理

经 Python 筛法处理,只保留_城市Id|国家|区域|省份|城市|ISP_(具体见 ip2region 项目说明)中城市字段对应的经纬度数据

其中,"三沙市": ["112.26157741482734", "30.316571904872184"]是 ip2region 中没有的城市,但既然 city-geo 中有,便保留了

以下为 ip2region 中有,但 city-geo 没有对应的经纬度数据,便根据百度地图查询结果添加

"基隆": ["121.741526", "25.122105"],
"嘉义县": ["120.624255", "23.434473"],
"澎湖县": ["119.58457", "23.552351"],
"嘉义市": ["120.472462", "23.485079"],
"高雄": ["120.306839", "22.630576"],
"台中": ["120.679882", "24.143171"],
"苗栗县": ["120.884337", "24.696762"],
"新竹市": ["120.990745", "24.784924"],
"南投县": ["120.670008", "23.919619"],
"桃园": ["121.213608", "24.982757"],
"宜兰县": ["121.754442", "24.759707"],
"新北": ["121.663675", "25.1853"],
"屏东县": ["120.492005", "22.666716"],
"云林县": ["120.480738", "23.664943"],
"台南": ["120.187817", "22.998601"],
"台东县": ["121.113207", "22.764364"],
"新竹县": ["121.002012", "24.839233"],
"花莲县": ["121.59729", "24.000674"],
"彰化县": ["120.557479", "24.068523"],
"台北": ["121.520076", "25.030724"],
"荃湾": ["114.12001", "22.37145"],
"沙田": ["114.19191", "22.3827"]

注:本项目目的是匹配 ip2region 中所有城市字段的经纬度,共 362 个城市(ip2region **有 361 个城市),大部分为地级市,不保证包含**所有城市

匹配版本:ip2region v2020-10-31-release,经纬度数据依据 city-geo 第 10 次 commit

region2coord's People

Contributors

naccl avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.