根据Geohash编码画中心点和边框

#得到司机的Geohash后返回前六位Geohash的图像

from pygeohash import encode, decode
import plotly
import plotly.plotly as pyf
import plotly.graph_objs as go
import numpy as np
import pandas as pd
import math
from matplotlib.path import Path
import numpy as np
import plotly.offline as of
import plotly.graph_objs as go
import plotly.plotly as py
import numpy as np
import pandas as pd
import folium
import webbrowser
from folium.plugins import HeatMap
import datetime
import time
import pymysql.cursors
import decimal
import geohash

import geohash
def get_geohash(a): #解码a
    #生成Geohash
    b=[]
    b=geohash.decode(a) # precision=9可以加精度
    return b
# get_dict得到分块信息字典,键为各个中心点坐标,值为各个中心点形成的矩形区域的四个顶点。
def get_dict(central_points, lats_jia, lons_jia):
    point_dict = {
   }
    border_points = []
    lons = [central_points[0] +lons_jia
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值