#得到司机的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
defget_geohash(a):#解码a#生成Geohash
b=[]
b=geohash.decode(a)# precision=9可以加精度return b
# get_dict得到分块信息字典,键为各个中心点坐标,值为各个中心点形成的矩形区域的四个顶点。defget_dict(central_points, lats_jia, lons_jia):
point_dict ={
}
border_points =[]
lons =[central_points[0]+lons_jia