Address Autocomplete

Kmcnet 691 Reputation points
2023-02-02T02:18:07.7633333+00:00

Hello everyone and thanks for the help in advance. I need to develop a page for address input that will be entered by an end user. Obviously, user input is prone to error so I am looking for solutions to validate the input. I know the US Postal service has an api to validate against, but I am also aware sites like Zillow use some type of autocomplete for the input. I'm not sure what the best method is and there seems to be numerous for-pay autocompletes. Any insight would be appreciated.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
0 comments No comments
{count} votes

Accepted answer
  1. Lan Huang-MSFT 25,471 Reputation points Microsoft Vendor
    2023-02-02T05:25:04.3633333+00:00

    Hi @Kmcnet ,

    I think you can autocomplete addresses in ASP.NET MVC using Google Places AutoComplete plugin.

    The Google Places (Address) AutoComplete TextBox is part of Google Maps API and it is used to find out Address and their Geographical coordinates i.e. Latitude and Longitude of a Location.

    You can refer to the following example:

    address-autocomplete

    Address Autocomplete in mvc

    https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform

    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful