find duplicate addresses in database, stop users entering them early?

前端 未结 15 1447
长发绾君心
长发绾君心 2021-02-04 05:13

How do I find duplicate addresses in a database, or better stop people already when filling in the form ? I guess the earlier the better?

Is there any good way of abstra

15条回答
  •  自闭症患者
    2021-02-04 05:43

    You could use the Google GeoCode API

    Wich in fact gives results for both of your examples, just tried it. That way you get structured results that you can save in your database. If the lookup fails, ask the user to write the address in another way.

提交回复
热议问题