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.

Recent Posts

Create new group alert using Power Automate

Do you want to know when a new group has been created with for example…

3 days ago

Delegation Warnings in Power Apps

We have all seen them, Delegation Warnings, but what is delegation and how do you…

3 days ago

1 Top tip: PowerPlatformLearn.com and master the Power Platform within no time

It can be difficult to get started with the Power Platform, blogs help, training helps,…

2 weeks ago

Compare 2 Excel files using Power Automate

This is such a common scenario. You receive Excel files on a regular basis and…

2 weeks ago

Rename SharePoint folders using Power Automate in 2 easy steps

Have you ever wanted to rename SharePoint folders with Power Automate? REST API call to…

3 weeks ago

Read dates from Excel with Power Automate

To read dates from Excel files can be tricky, as Excel only give you the…

4 weeks ago
%%footer%%