How to parse freeform street/postal address out of text, and into components

后端 未结 9 1213
感动是毒
感动是毒 2020-11-22 13:40

We do business largely in the United States and are trying to improve user experience by combining all the address fields into a single text area. But there are a few proble

9条回答
  •  一个人的身影
    2020-11-22 14:13

    UPDATE: Geocode.xyz now works worldwide. For examples see https://geocode.xyz

    For USA, Mexico and Canada, see geocoder.ca.

    For example:

    Input: something going on near the intersection of main and arthur kill rd new york

    Output:

    
      40.5123510000
      -74.2500500000
      347,718
      America/New_York
      
        main
        arthur kill
        
        
        STATEN ISLAND
        NY
        11385
        0.9
      
    
    

    You may also check the results in the web interface or get output as Json or Jsonp. eg. I'm looking for restaurants around 123 Main Street, New York

提交回复
热议问题