【问题标题】:gmplot API issuegmplot API 问题
【发布时间】:2019-06-04 20:31:19
【问题描述】:

我正在尝试使用 gmplot 在地图上绘制一些项目,我的问题是,由于新的 google API 发生更改,它不会接受我的 API 密钥?当我加载输出时,我遇到了“仅用于开发目的”的问题。任何帮助将不胜感激。

import gmplot
gmap = gmplot.GoogleMapPlotter

gmap.apikey = "inserting my API key here"

latitude_list = [ 30.3358376, 30.307977, 30.3216419 ]

longitude_list = [ 77.8701919, 78.048457, 78.0413095 ]

gmap = gmplot.GoogleMapPlotter(30.3184945,
                            78.03219179999999, 13)

gmap.scatter( latitude_list, longitude_list, '# FF0000',
                            size = 40, marker = False)

gmap.polygon(latitude_list, longitude_list,
               color = 'cornflowerblue')

gmap.draw("path to save .html")

【问题讨论】:

标签: python python-3.x maps


【解决方案1】:

这对我有用。

gmap = gmplot.GoogleMapPlotter(30.3184945, 78.03219179999999, 13, apikey="")

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-07-23
    • 2023-03-16
    • 2020-06-06
    • 2016-04-03
    • 2010-11-06
    • 2012-03-27
    • 2011-06-24
    • 2020-09-05
    相关资源
    最近更新 更多