algorithm - 从地址字符串中获取地址部分

标签 algorithm

我有这样的德国地址

Birkenweg 13 51491 Overath
Emil-Hoffmann-Str. 13 50996 Köln
Rolandstr. 65 50677 Köln
Markusplatz 35 50968 Köln
Bonner Str. 245 50968 Köln
Aachener Str. 1590 50858 Köln
Viersener Str. 122 50733 Köln
Bergische Landstr. 219 51375 Leverkusen
Josef Gladbach Platz 81-100 50259 Pulheim
Hauptstr. 769 51399 Burscheid
Bielsteiner Str. 117-119 51674 Wiehl

而例如在

Birkenweg 13 51491 Overath

我想对那些字段进行排序

Birkenweg = street
13 = house number
51491 = postcode
Overath = city

Emil-Hoffmann-Str. 13 50996 Köln

Emil-Hoffmann-Str. = street
13 = house number
50996 = postcode
Köln = city

Josef Gladbach Platz 81-100 50259 Pulheim

Josef Gladbach Platz = street
81-100 = house number
50259 = postcode
Pulheim = city

您建议哪种可靠的方法?

最佳答案

Google Reverse Geocoding API如果你有坐标。

Google Geocoding API如果你有地址。

关于algorithm - 从地址字符串中获取地址部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17498856/

相关文章:

algorithm - 在 Fortran 中重新启动循环

c++ - 按给定轴的角度对点进行排序?

php - 创建更好的随机算法的问题 - 每日传播

javascript - 这种排序可以更优雅/递归吗

algorithm - 可能的 "boat loads"

java - 两个排序数组的中位数 : Termination condition failing

c++ - Codechef : Remove pairwise common factors from array elements and find minimum product. 为什么答案错误?

python - 快速访问字典中的部分数据

algorithm - 尝试单词之间的关联

algorithm - 函数找出由 n*m 组成的矩形中有多少个幻方,其中 n,m - 自然数