允许自定义geohash bucket大小并在给定位置附近查找bucket
maptiler的Python项目详细描述
###mapptiler易于创建用于地理哈希的自定义大小的地图块。
-打印结果以验证一切工作正常
-在给定的纬度、经度附近获取块
-可以使用“tile.hash”属性进行哈希
-对于许多应用程序,使用“tile.x”甚至更好,` tile.y`坐标,因为您可以从它们重建边界框
mapptiler.map_绘图为mp
out_path='mymap.gitign.html'
search_point=mt.mapppoint(40.7058254,-74.1180859)
search_radius=500*1000
square_size=500*1000
map_tiler=mt.mapptiler(square_size=square_size)
tiles=map_tiler.tiles_for_point(search_point,
搜索半径
rect=mp.maprerect(tile.bounds[0],tile.bounds[2])
map.add_entity(rect)
map.add_entity(mp.mapcircle(search_point,search_radius))
map.add_entity(mp.mapmarker(search_point))
map.to_file(out_path,focus=search_point,zoom=4)
`````
![Maptiler-图像平铺](http://i.imgur.com/w1qvwuf.png)
github上托管的代码https://github.com/nziehn/Maptiler`
-打印结果以验证一切工作正常
-在给定的纬度、经度附近获取块
-可以使用“tile.hash”属性进行哈希
-对于许多应用程序,使用“tile.x”甚至更好,` tile.y`坐标,因为您可以从它们重建边界框
mapptiler.map_绘图为mp
out_path='mymap.gitign.html'
search_point=mt.mapppoint(40.7058254,-74.1180859)
search_radius=500*1000
square_size=500*1000
map_tiler=mt.mapptiler(square_size=square_size)
tiles=map_tiler.tiles_for_point(search_point,
搜索半径
rect=mp.maprerect(tile.bounds[0],tile.bounds[2])
map.add_entity(rect)
map.add_entity(mp.mapcircle(search_point,search_radius))
map.add_entity(mp.mapmarker(search_point))
map.to_file(out_path,focus=search_point,zoom=4)
`````
![Maptiler-图像平铺](http://i.imgur.com/w1qvwuf.png)
github上托管的代码https://github.com/nziehn/Maptiler`