使用pyton对OpenStreetMap地图数据进行清洗
import lxml.etree as ET
from collections import defaultdict
import matplotlib.pyplot as plt
%matplotlib inline
import pprint
import re
import codecs
import json
filename="map.osm"
import re
from collections import defaultdict
expected = ["Street", "Avenue", "Boulevard", "Drive", "Court", "Place", "Square", "Lane", "Road",
"Trail", "Parkway", "Commons", 'Alley', 'Blvd', 'Bowery', 'Americas', 'Bushwick', 'East',
'South','West', 'North', 'P
2023-02-04 19:10:50
8.89MB
python
1