MySQL里的经纬度转为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 def geohashsql ( geohash ) : conn = pymysql . connect ( host =