Coder Social home page Coder Social logo

poi_spider's Introduction

操作流程

通过运行get_poi.py文件爬取POI。

需要修改的变量

  1. api_key_list:
    高德地图开发者Key,由高德地图开发者平台提供,个人可申请, list
    ['a725234836f057fc777e441dff000000', 'd77bd65d7a8b0ede40e8060b7ec00000', ...]
    数量最好≥5
  2. all_types:
    为所有待搜索的POI类型,根据高德开发者平台提供的参考文档设置, dict
    {'residential': ['社区中心|别墅|住宅小区|宿舍', '商住两用楼宇', ...], ...}
  3. poi_type_save_path:
    POI类型保存路径, str
  4. locations_path:
    坐标范围*.json文件路径, str
    文件内容格式: {"roi_name": ["114.567893,38.028977|114.567790,38.030333|114.564723,38.030269|114.564746,38.028906|114.564746,38.028911|114.567893,38.028977", ...], ...}
    列表元素为每个多边形区域角点的WGS84坐标。
  5. for k in range(0, len(region_name_list)) -> for i in range(1, num+1) -> path:
    POI保存路径, str
    保证为空文件夹

修改完上述变量后运行get_poi.py文件开始搜索。

poi_spider's People

Contributors

hauwong avatar

Stargazers

 avatar

Watchers

 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.