import osmnx as ox
import osmnx as ox

# 北京中心点
center = (39.9042,116.4074)

# 18km ≈ 9000m 半径
pois = ox.features_from_point(
    center,
    tags={
        "amenity":True,
        "shop": True
        },
    dist=9000
)



print(pois.head())

# 保存
pois.to_file("beijing_poi.geojson")
'''
import osmnx as ox

# 设置城市
place = "Beijing, China"

# 下载所有POI
tags = {
    "amenity": True,
    "shop": True,
    "tourism": True,
}

pois = ox.features_from_place(place, tags)

print(pois.head())

# 保存
pois.to_file("beijing_poi.geojson")


'''