KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
GenshinMap
★ 12
Open GitHub ↗
GenshinMap 是一个米游社大地图 API 的包装,用于简易获取大地图数据
Download README (.md)
Explore Similar Repositories
youtube-react-framer-motion
:
Text Animation With Framer Motion
trendcaster
:
No description available.
near-stakewars-monitoring
:
No description available.
opentelemetry-gcloud-trace-rs
:
OpenTelemetry support for Google Cloud Trace for Rust
Weather-Prediction-NN
:
Weather conditions forecast with LSTM-CNN model
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
GenshinMap
?
Download (.md)
# GenshinMap [](https://github.com/MingxuanGame/GenshinMap/blob/master/LICENSE) [](https://jq.qq.com/?_wv=1027&k=C7XY04F1) [](https://github.com/psf/black) [](https://pycqa.github.io/isort/) [](https://results.pre-commit.ci/latest/github/MingxuanGame/GenshinMap/master) [](https://app.codecov.io/gh/MingxuanGame/GenshinMap) GenshinMap 是一个原神米游社大地图 API 的包装,用于简易获取大地图数据 ## 快速开始 ```python import asyncio from genshinmap import utils, models, request async def main(): map_id = models.MapID.teyvat # 获取地图数据 maps = await request.get_maps(map_id) # 获取资源列表 labels = await request.get_labels(map_id) # 获取坐标 points = await request.get_points(map_id) # 获取单片地图 map_image = await utils.get_map_by_pos(maps.detail, 1024) # 获取传送锚点坐标 transmittable = utils.get_points_by_id(3, points) # 转换坐标 transmittable_converted = utils.convert_pos( transmittable, maps.detail.origin ) # 获取地图锚点之一 anchors = await request.get_anchors(map_id)[0] # 转换地图锚点偏左坐标 anchors_converted = utils.convert_pos( anchors.get_children_all_left_point(), maps.detail.origin ) if __name__ == "__main__": asyncio.run(main()) ``` ## 致谢 [观测大地图](https://webstatic.mihoyo.com/app/ys-map-cn/index.html) —— 本项目所包装的地图 [H-K-Y/Genshin_Impact_bot](https://github.com/H-K-Y/Genshin_Impact_bot) —— 大地图数据的处理,本项目的蓝本 ## 计划 * [ ] 补全模型相关文档 * [ ] yuanshen.site 支持 * *More...* ## 许可 [MIT](./LICENSE)