{ "info": { "author": "shikanon", "author_email": "account@shikanon.com", "bugtrack_url": null, "classifiers": [], "description": "baidumapapi\n============\n\nA Simple Python Baidu Map API Library, make easy for you when you want to use map data.\n\nIt is Python Baidu Map API Library. We encapsulate it, and make it more easy for you.\n\n\nExmaple\n----------\n\nQuery the transit info\n\n.. code-block:: python\n direction = MapDirection(AK, SK)\n origin = \"23.137903,113.34348\"\n destination = \"22.544383,114.062203\"\n coord_type = \"wgs84\"\n content = direction.transit(origin, destination, coord_type=coord_type)\n result = json.loads(content)\n print(result)\n\n\n\nThis exmaple of getting all street of china.\n\n.. code-block:: python\n df = pd.read_csv(\"http://baidumapapi.shikanon.com/data/ChUnit2017.csv\", encoding=\"utf-8\")\n df[\"lat\"] = 0.0\n df[\"lng\"] = 0.0\n\n df[\"\u8be6\u7ec6\u5730\u5740\"] = df[\"\u533a\u9547\"] + df[\"\u8857\u9053\"]\n\n search = SearchPlace(AK, SK)\n\n for i in df.index:\n print(df[\"\u8be6\u7ec6\u5730\u5740\"][i], df[\"\u7701\"][i])\n if df[\"\u57ce\u5e02\"][i] == \"\u5e02\u8f96\u533a\":\n content = search.searchRegion(query=df[\"\u8be6\u7ec6\u5730\u5740\"][i], region=df[\"\u7701\"][i], output=\"json\")\n else:\n content = search.searchRegion(query=df[\"\u8be6\u7ec6\u5730\u5740\"][i], region=df[\"\u57ce\u5e02\"][i], output=\"json\")\n result = json.loads(content)\n\n assert result[\"status\"] == 0\n\n if len(result[\"results\"]) > 0:\n df[\"lat\"][i] = result[\"results\"][0][\"location\"][\"lat\"]\n df[\"lng\"][i] = result[\"results\"][0][\"location\"][\"lng\"]\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/shikanon/BaiduMapAPI", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "BaiduMapAPI", "package_url": "https://pypi.org/project/BaiduMapAPI/", "platform": "", "project_url": "https://pypi.org/project/BaiduMapAPI/", "project_urls": { "Homepage": "https://github.com/shikanon/BaiduMapAPI" }, "release_url": "https://pypi.org/project/BaiduMapAPI/0.1.2/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "The Package of Baidu Map, with unofficial", "version": "0.1.2" }, "last_serial": 4906627, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "5270887e8c4f7172bd73db31548ab90f", "sha256": "695ee67710ef40399628ea61f76821127b4315439736ce3d42bcdc451d40a6eb" }, "downloads": -1, "filename": "BaiduMapAPI-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "5270887e8c4f7172bd73db31548ab90f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14759, "upload_time": "2019-03-06T18:17:52", "url": "https://files.pythonhosted.org/packages/7e/30/76089d25e1418ee0f1853c23c52d403bc2d183c783f2eb689a81355bd234/BaiduMapAPI-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4317ebe8d323cd15e5601098523f8f48", "sha256": "7f985cf039439b08d8afc5b584867adce8c028cdb56e261e21c4205aab7975c2" }, "downloads": -1, "filename": "BaiduMapAPI-0.1.2.tar.gz", "has_sig": false, "md5_digest": "4317ebe8d323cd15e5601098523f8f48", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9439, "upload_time": "2019-03-06T18:17:53", "url": "https://files.pythonhosted.org/packages/83/45/b3285d9a7b425ef81c8f087455d58ee4eb5cf25fd4b05f3a21ff27675d3a/BaiduMapAPI-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5270887e8c4f7172bd73db31548ab90f", "sha256": "695ee67710ef40399628ea61f76821127b4315439736ce3d42bcdc451d40a6eb" }, "downloads": -1, "filename": "BaiduMapAPI-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "5270887e8c4f7172bd73db31548ab90f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14759, "upload_time": "2019-03-06T18:17:52", "url": "https://files.pythonhosted.org/packages/7e/30/76089d25e1418ee0f1853c23c52d403bc2d183c783f2eb689a81355bd234/BaiduMapAPI-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4317ebe8d323cd15e5601098523f8f48", "sha256": "7f985cf039439b08d8afc5b584867adce8c028cdb56e261e21c4205aab7975c2" }, "downloads": -1, "filename": "BaiduMapAPI-0.1.2.tar.gz", "has_sig": false, "md5_digest": "4317ebe8d323cd15e5601098523f8f48", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9439, "upload_time": "2019-03-06T18:17:53", "url": "https://files.pythonhosted.org/packages/83/45/b3285d9a7b425ef81c8f087455d58ee4eb5cf25fd4b05f3a21ff27675d3a/BaiduMapAPI-0.1.2.tar.gz" } ] }