<div dir="ltr">> handle addresses in postgresql<br><div><br></div><div>maybe you can use the <a href="https://github.com/openvenues/libpostal">https://github.com/openvenues/libpostal</a> library</div><div>with your favorite language bindings ( Python / Ruby / Go / PHP / Node / R / Java  ...)<br></div><div><br></div><div>or as a Postgres database extension:</div><div><a href="https://info.crunchydata.com/blog/quick-and-dirty-address-matching-with-libpostal">https://info.crunchydata.com/blog/quick-and-dirty-address-matching-with-libpostal</a><br></div><div><a href="https://github.com/pramsey/pgsql-postal">https://github.com/pramsey/pgsql-postal</a><br></div><div><br></div><div>Regards,</div><div> Imre</div><div><br><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Shaozhong SHI <<a href="mailto:shishaozhong@gmail.com">shishaozhong@gmail.com</a>> ezt írta (időpont: 2020. ápr. 25., Szo, 2:49):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I find this is a simple, but important question.<div><br></div><div>How best to split numbers and the rest of address?</div><div><br></div><div>For instance, one tricky one is as follows:</div><div><br></div><div>21-1 Great Avenue, a city, a country, this planet</div><div><br></div><div>How to turn this into the following:</div><div><br></div><div>column 1,       column 2</div><div><br></div><div>  21-1              Great Avenue, a city, a country, this planet<br></div><div><br></div><div>Note:  there is a hyphen in 

 21-1  

</div><div><br></div><div>Any clue?</div><div><br></div><div>Regards,</div><div><br></div><div>Shao</div><div></div></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div>