跳至主要内容

用百度地图api快速实现经纬度地理位置可视化

原文地址是用百度地图api快速实现经纬度地理位置可视化,对作者表示感谢

在数学建模中,常常会有一些地理位置数据。为了快速地展现其位置分布,可以用百度地图api快速实现地理位置可视化。
api001
 



0.概述

在会遇到一些与地理位置相关的建模问题时,难免会遇到需要可视化展示地理位置信息的需求。
可能许多人的第一反应是:
WTF我没做过前端,也不会js,这个东西怎么办
事实上,队伍内展示,或者只是作为团队内构建道路信息的工具,就可以用在线地图api实现可视化。(开发产品当然另当别论)
本篇学习笔记以百度地图api为例。只要稍微上过大学课程的c++之类的,看得懂一点点代码,就可以按照百度地图api手册给出的demo加以发挥。


1.开发者账户相关


用百度id注册百度地图开放平台,验证手机号和邮箱地址,会获得免费的配额。新建应用,获得秘钥。
包含以下内容及相应配额(懒..直接粘贴的表格)
服务名称配额消费配额上限操作
云存储API(存储)
存储空间:
0%
总存储空间: 10240MB
查看文档 数据管理 配额申请
云存储API
请求数:
0%
总请求数: 10万次/天
查看文档 数据管理 流量图 配额申请
云检索API
请求数:
0%
总请求数: 10万次/天
查看文档 流量图 配额申请
Javascript API
无请求数限制
查看文档
Place API v2
请求数:
0%
总请求数: 0.2万次/天
查看文档 流量图 配额申请
Geocoding API v2
请求数:
0%
总请求数: 0.6万次/天
查看文档 流量图 配额申请
IP定位API
请求数:
0%
总请求数: 100万次/天
查看文档 流量图 配额申请
路线交通API
请求数:
0%
总请求数: 0.2万次/天
查看文档 流量图 配额申请
Android导航离线SDK
无请求数限制
IOS导航离线SDK
无请求数限制
Android导航SDK
无请求数限制
查看文档
IOS导航SDK
无请求数限制
静态图API
请求数:
0%
总请求数: 100万次/天
查看文档 流量图 配额申请
全景静态图API
请求数:
0%
总请求数: 10万次/天
查看文档
坐标转换API
请求数:
0%
总请求数: 10万次/天
查看文档 流量图 配额申请
鹰眼API
请求数:
0%
总请求数: 10万次/天
查看文档 流量图 配额申请
到达圈
请求数:
0%
总请求数: 0.01万次/天
Android导航 HUD SDK
无请求数限制
IOS导航 HUD SDK
无请求数限制
云逆地理编码API
请求数:
0%
总请求数: 0.2万次/天
流量图 配额申请
Routematrix API
请求数:
0%
总请求数: 0.2万次/天
流量图 配额申请
云地理编码API
请求数:
0%
总请求数: 0.2万次/天
高精度IP定位
请求数:
0%
总请求数: 0.1万次/天
流量图 配额申请
时区服务 API
请求数:
0%
总请求数: 0.2万次/天



2.开发手册、demo

百度地图开放平台js开发demo

对于一种想要展示一系列展示固定点的需求,可以使用“麻点图层”的方法
api003
demo调试界面

3.坐标信息管理

注意到 “geotableId”:

麻点图层的原理,是使用百度云存储api(LBS云),送入自己点坐标信息的数据。再通过调用CutsomLayer在地图表层绘制麻点。
在百度云存储api的数据管理页面,可以通过可视化锚点,或者上传规范格式的csv快速添加数据(当然也可以通过get put直接上传,如果没有需求,当然可以只通过上传csv添加数据)
api005
数据管理可视化界面
新建一个数据表,括号内即为geotableId。
csv可以直接下载示例,然后用excel可视化编辑。注意文档中给出的表值定义,不要填错
http://lbsyun.baidu.com/index.php?title=lbscloud/api/geodata
上传后可导入位置信息

4.api使用


官方给出的示例如下
需要修改:
最后将代保存成html文件,本地打开或者上传到网页空间,能获得自己创建的麻点图,实现快速静态位置信息可视化。

api001

5.后记

还是那句,在一些队伍内展示的场合,或者只是团队内构建道路信息的工具,就可以用在线地图api实现可视化。开发产品当然另当别论,需要深入研究前端,实现交互、实时更新等等。

Popular posts from 产品随想的博客

Steve Jobs: `There's Sanity Returning', 1998

Nobody can doubt the charisma of Steven P. Jobs. The interim CEO of Apple Computer Inc., who returned to the company last July after his ignominious 1985 ouster, has brought back his legendary vision, impatience, and infectious passion for the Macintosh. Jobs spoke to Business Week Correspondent Andy Reinhardt in Apple's stark, fourth-floor boardroom, just after the company rolled out its new software strategy on May 11. Note: This is an extended, online-only version of the Q&A that appears in the May 25, 1998, issue of Business Week. Q: Now that you've introduced the new, bold-looking iMac, are you going to do some radically different products? A: There's a lot of talk about such things -- about handhelds, set-top boxes. A lot of computer companies have been searching for a consumer product. My view is that the personal computer has been the most successful consumer product of the last 10 years. What we have to do, what the industry stopp...

利用Rhino+GH+AI的数据可视化表现

原文来自 韩世麟博客 ,表示感谢,感谢作者可可 使用软件:Rhinoceros, Grasshopper, Illustrator 编者按: 可可 这次又带来神级教程,可以说完美的解决了一大类图解的绘制思路问题。我经常被问到类似文中的数据可视化图解“是怎么画的”这类问题,无奈对于数据处理方面,我知之甚少。相信今天的这一篇文章能够为大家解惑。 作者简介 张可天 张可天是2015年毕业于天津大学的建筑学硕士。目前就职于天津市设计院。他专长建筑方案设计及表现,基本功扎实,而且他也一直乐于分享他总结到的技巧,曾经在人人网上接连发表过多篇图文教程: 《可可这样画》 系列。同时他也是专筑网 《SketchUp极速出图八讲》 的主讲人。 这是一篇我在知乎的回答 (点击这里查看张可天的知乎答案) ,题主提出的参考原图如下,希望能够得知这张图的画法。 我尝试用Rhino+Grasshopper画图并导入AI修饰,步骤如下: 1.取得数据 样例中的图应该是有数据来源的,可能是作者调研或文献摘录的。我并没有这些数据,所以我把原图中的数据大概加估计地逆向回来。数据的存在形式有很多种,我使用了比较常见的一种,将数据放在一张EXCEL表格的两个SHEET中,如下图。 Sheet1是一张映射关系图,是样例图中从右上方到左下方的那些个映射曲线数据。excel中,横轴是“人口分布(Population Distribution)”中的各类人,纵轴是“元素时间表(Element Timeline)”中的那些“元素(Element)”,“0”代表着没有映射关系,“1”代表著有映射关系。 Sheet2是一张时间数据图,是样例图中右下的那张大表格的数据。excel中,横轴是样例图的“时间点”,纵轴是“元素(Element)”,其中的数据根据原图中的意思,应该是某个“元素(Element)”在“工作日/休息日(Workday/Weekend)”时,特定的“时间点”上所接待或容纳的人数。我并没有看出来样例图中该数据的单位,所以我臆测了一下。我以垂直方向一格代表“10人”为单位,读取了这些数据,得到上表。 2.导入Rhino 我使用Grasshopper中的Bumble Bee将Excel数据导进来,这个插件是我能够找到的导入Excel表格效率最高的一个插件...

Oral History Interview with Steve Jobs, 1995

  Excerpts from an Oral History Interview with Steve Jobs Founder, NeXT Computer. Interviewer: Daniel Morrow, Executive Director, The Computerworld Smithsonian Awards Program Date of Interview: 20 April 1995 Location: NeXT Computer Transcript Editor: Thomas J. Campanella, Computerworld Smithsonian Awards Learning to Use Tools The Importance of Education The Role of Computers in Education The Costs of Education - Alternatives The Apple Computer Company The Growth of Apple Computer The Kids Can't Wait The NeXT Computer Company NeXT Computer Software The Internet Pixar Software New Possibilities Advice for Future Entrepreneurs The Responsibilities of Power Learning to Use Tools Daniel Morrow (DM) : Steve, I'd like to begin with some biographical information. Tell us about yourself. Steve Jobs (SJ) : I was born in San Francisco, California, USA, planet Earth, February 24, 1955. I can go into a lot of details about my yo...

Notes for the New Year

Notes for the New Year by Sam Altman 1/4/2017 Happy 2017! As a kid, I just sort of took for granted that stuff got better every year—TVs got bigger and then thinner, cars got a little faster, and computers got unbelievably better on an exponential curve. As an adult, I realized that the future is not guaranteed to be better. The default is that things stay the same (or get worse because we continue to create new problems and occasionally get in wars). The world only gets better if committed people with strong visions about the future work hard to make it better. It’s easy to get caught up in the moving sidewalk of a career and end up deeply involved in something that does not maximize your potential. It’s never too late to change, and it’s always good to be thoughtful about the path you’re on and how to best use your time. I made some notes before my brother Jack interviewed me for How to Build the Future , where I mostly talked about how ambitious young people should thi...

Steve Jobs Talks about Creativity

“Creativity is just connecting things,” Jobs told   Wired   magazine. “When you ask creative people how they did something, they feel a little guilty because they didn’t really do it, they just saw something. It seemed obvious to them after a while. That’s because they were able to connect experiences they’ve had and synthesize new things. And the reason they were able to do that was that they’ve had more experiences or they have thought more about their experiences than other people. . . . Unfortunately, that’s too rare a commodity. A lot of people in our industry haven’t had very diverse experiences. So they don’t have enough dots to connect, and they end up with very linear solutions without a broad perspective on the problem. The broader one’s understanding of the human experience, the better design we will have.”

Rhino_GH从入门到精通听课笔记_二

一. 基础操作   1. Rhino F6精确更改相机视野   2. 中键和左菜单栏弹出时间都是可以自己设置缩短的 二. 软件技巧   1. GH搭配生成楼梯,柱子,栏杆   2. SU\3DS\OBJ 均可被Rhino识别   3. 已命名工作位置很有用,和和已命名是图标是不一样的   4. Rhino等轴测做法          显示——投影——改为平行          旋转改为0/360          视图——等角视图 三. 奇技淫巧   1. 善用微信搜索,比如“地形制作”,第三讲前半部分讲解利用高程点制作地形   2. Rhino转折剖制作方法,用面split模型,即模型被切成两个,类似于佐罗刀   3. 转折剖模型制作时间很久,工作量比较大 四. Rhino命令   1. worksession  链接文件进来,以一个图层显示,类似于SU里面的另存再载入的操作,可       以节省运算量,比ctrl+c ctrl+v快   2. ctrl+w  局部放大   3. hatch  嵌面

产品爱好者周刊 第36期:走进Linux

Products OpenShot   https://github.com/OpenShot/openshot-qt OpenShot Video Editor is an award-winning free and open-source video editor for Linux, Mac, and Windows 开源的视频剪辑工具,跨平台 Run   https://github.com/The-Run-Philosophy-Organization/run 润学全球官方指定GITHUB,整理润学宗旨、纲领、理论和各类润之实例 Dozer   https://github.com/Mortennn/Dozer Hide menu bar icons on macOS ThisIsWin11   https://github.com/builtbybel/ThisIsWin11 Win11的隐私保护 RoundedTB   https://github.com/torchgm/RoundedTB Add margins, rounded corners and segments to your taskbars! Droptop Four   https://github.com/Droptop-Four/Basic-Version Droptop Four is the fourth iteration of the popular dropdown app launcher for Windows & Rainmeter. LibreTube   https://github.com/Libre-tube/LibreTube An alternative frontend for YouTube, for Android. nheko   https://github.com/Nheko-Reborn/nheko Quaternion   https://github.com/quotient-im/Quaternion 多平台的Matrix客户端 FluffyChat   https://fluffychat.im/ Phone端的Matrix...

世界需要什么样的智能系统

原文: - By 道哥 - Link:https://archive.ph/h0nNj  笔记: - 人工智能,不应该是一个产业,应该是各个产业,都要有智能; - 智能:感知+行动 (目前很多视觉、语音的识别,停留在感知层面) - 智能技术角度看, 自动驾驶与智能音箱是两个完整的从“感知”到“行动”的闭环     - 对话机器人被成为人工智能界的圣杯 - 构建智能时代:     - 飞行员:各个企业中,智能部门的员工     - 航道:基础设施提供商,比如运营商、云计算厂商     - 机场:最后真正的商业模式,类似苹果的App Store,给机器智能系统提供服务 - 机器与机器的协同交互,价值巨大(以往很看重的是:机器与人的交互) - 数据、训练在内部;一旦进行外部的机器交流,默认为“不信任”模式 - 云计算厂商可能会被智能厂商管道化,就跟运营商被互联网内容提供商管道化一样(因为:云计算和大数据都不是智能)

CAD 天正与 AI 工作流

基本步骤   1. 天正导出 T3 .dwg 文件,尽量在2007版本   2. AI 打开,打开时候可以选择比例,因为 AI 画布是基于真实尺度   3. AI 打开 .dwg 后,更改画布到所需要的大小   4. 之后用 PS 打开 AI 文件,可以维持想要的大小和比例   5. 而且 AI 可以读取天正的图层 课外了解   1. ETH 风格平面图   2. 日本创新性的停车方式   3. AI中的实时上色功能去了解