Categories: Microsoft Power Apps

Address Input in Power Apps

When you app needs users to input addresses, you can now use the Address input control.

Address Input Control

While I’m writing this post the address Input control is still in preview, but the control already works quite well so it’s worth writing a blog post about.

If you hadn’t found the Address Input control yet, I wouldn’t be surprised. It is all the way at the bottom of the list in the input menu.

Adding the Address Input control

Once the control had been added there are a couple of important settings. The first one is the Country set.

Within the Address lookup documentation we are given a small clue what we should set the Country set to.

Comma-separated list of countries to constrain the address suggestions to, in ISO 3166 alpha-2 country codes. For example, US, FR, KW

The full list of ISO 3166 Alpha-2 codes can be found on the ISO 3166 Wikipedia page. So quite quickly I found that the United Kingdom uses GB.

Now you can type an address and the Power App will suggest options. Note that this control is still in preview so it may not find all addresses as well as you would hope for.

I noticed for example that the control doesn’t really like you type the postcode. the numbers in the postcode will be used to search in the street name and number first.

Now you can use the Address Input in Power Apps to get all the separate parts of your address.

The properties that you will be able to get out of the control are:

  • Building number
  • Country
  • Countrycode
  • CountryCodeISO3
  • CountrySecondarySubdivision
  • CountrySubdivision
  • CountrySubdivisionName
  • CountryTertiarySubdivision
  • CrossStreet
  • ExtendedPostalCode
  • FreeformAddress
  • LocalName
  • Municipality
  • MunicipalitySubDivision
  • PostalCode
  • RouteNumbers
  • SearchResultJson
  • Street
  • StreetName
  • StreetNameAndNumber
  • StreetNumber
  • UserInput
  • SelectedLatitude
  • SelectedLongitude

Some of these fields are used in all locations and some of these are only available within certain locations.

Uses for the Address Input control

The obvious use for the control is of course for a user to enter an address. But if you have an address in a database somewhere you could also use this control to get the longitude and latitude for the address and then maybe use that to display a map at the right location.

You could also use the control if you have an address and you want to get to the separate elements of the address.

so even though the initial use may be user input you could also use it to get your app to understand an address.

Share
Pieter Veenstra

Business Applications and Office Apps & Services Microsoft MVP working as a Microsoft Productivity Principal Consultant at HybrIT Services. You can contact me using contact@veenstra.me.uk.

View Comments

  • Hi! Do you know how to get the longitude and latitude from the Address Input control when using an address database to show the location right away? Now I have to click on the address before the map updates..

    • Hi Lisa,

      The following properties should give you what you are looking for:
      AddressInput1.SelectedLatitude
      AddressInput1.SelectedLongitude

  • Hi Pieter,

    What's your experience of Address input in terms of practical usability?

    I have been trying to find addresses in Yorkshire and with the GB ISO code it returns addresses in London / South East and Northern Ireland but not the ones I'm looking for

    When I use with ‘search within radius’ with Latitude / Longitude / meter radius I don't get any suggestions at all

    It feels like there may be a Northern England dataset missing...

    I just wondered what your experience has been?

    Chris

  • Hi again Pieter. I raised with Microsoft. They accept there is an issue with addresses from some regions in the UK and have passed this to the product development team. As this is still in preview, unfortunately there is no resolution date, Chris

    • Thanks for letting me know. This has been in preview for quite a while now. Sometimes it feels like new features stay within preview forever

Recent Posts

2 Ways to insert dates into Excel using Power Automate

Today I looked at how to insert dates into Excel after a while back I…

2 days ago

Sharing flows in Power Automate

Recently I tried to share a flow and I got trial warning. It took a…

1 week ago

There’s a problem that needs to be fixed in Power Automate

Have you ever had your flows showing the following error: There's a problem that needs…

1 week ago

Get started with child flows in Power Automate

Child Flows is one of the subjects that has been on my list of things…

2 weeks ago

Implementing 2 levels of grouping in Power Apps

When you want to implement 2 levels of grouping in Power Apps you will discover…

2 weeks ago

Power Automate Approvals and Dataverse

Power Automate Approvals are often one of those unclear things that people try to avoid.…

3 weeks ago
%%footer%%