How to use GPS in PowerApps.

How to use GPS in PowerApps.

Maps can be used to show contextual information to your users, reason for witch allowing you to represent location data in a meaningful way. Two of the most popular mapping technologies that we can use are Bing and Google Maps, both of which can be leveraged within our PowerApp. Both mapping technologies provide a free service that can also be used for commercial purposes, which adds to their popularity.

Bing?

In our case we are going to use Bing maps:

Bing maps provide a static map API that you can access with a free API key. Simply navigate to?https://www.bingmapsportal.com?and get the basic map key. You will need to register and sign in using a Microsoft account so that you can access the Bing Maps Dev Center:

Aucun texte alternatif pour cette image
Aucun texte alternatif pour cette image

You can generate a key under the My account menu by clicking on My keys. This will allow you to generate new keys or view your existing keys:

PowerApps

In PowerApps, we will use an image control to display the map, and we will simply provide the URL of the web service as the Image property:

Aucun texte alternatif pour cette image


Aucun texte alternatif pour cette image

When we place an image control on the canvas, we simply need to put the full URL, plus the relevant query string parameters, into the formula bar. Assuming that the call was successful, a map will be returned. The Bing Maps web service will process the web request based on the parameters that are supplied and will return a graphic displaying the relevant information:

Aucun texte alternatif pour cette image

Rather than statically putting the mapping parameters directly into the URL, we can replace them with inputs from other controls within the PowerApp. For example, we could use dropdowns so that we can select the mapping type, and the coordinates could be entered in text boxes. In the following screenshot, the map type has been set from the Type dropdown and the location has been taken from the TLocation text box.

Aucun texte alternatif pour cette image

You can use Google maps if?you like.

For further questions: Feel free to comment bellow. Thanks.

Luke Burlet

Director and Consulting Geologist at H&S Consultants (formerly Hellman & Schofield)

9 个月

hi, as an extension of this, how do we use/cache a map when user losses internet connection?

回复

要查看或添加评论,请登录

Mohamed-Lamin Taleb的更多文章

  • Azure Networking(5) : Network security Groups

    Azure Networking(5) : Network security Groups

    We cannot talk about Azure network security group without mentioning Network security group, so in this article I will…

  • Azure Networking (4) : VPNGateway (Vnet-to-Vnet)

    Azure Networking (4) : VPNGateway (Vnet-to-Vnet)

    In this fourth articles about Azure networking, I would like to share with how to establish connection between two…

  • How To Build Your Own ChatGPT API With Express_js

    How To Build Your Own ChatGPT API With Express_js

    As AI is going so popular, I felt the need to explain how someone could build his own ChatGPT API using one of the…

  • Azure Networking(3) : Peering

    Azure Networking(3) : Peering

    Peering is the best way to open a connection between two virtual networks, so the virtual machines inside those virtual…

  • Azure Networking (2) : Private Endpoints

    Azure Networking (2) : Private Endpoints

    Private endpoints are somehow extremely Important when it comes to the privacy of the cloud and its security parameter,…

  • Azure Networking (1): Azure Private DNS Zones

    Azure Networking (1): Azure Private DNS Zones

    Azure private DNS zone is one of azure services to keep privacy on virtual networks (Vnet) in Azure networking, in this…

  • Patch Function in Power Apps : SharePoint Number Column

    Patch Function in Power Apps : SharePoint Number Column

    Patch Function in Power Apps : SharePoint Number Column Let me show you, how to update a column of the type Number in…

  • How To Call Power Automate From Canvas App

    How To Call Power Automate From Canvas App

    Here in this article, we’ll see how to call Power Automate From Canvas App using PowerApps(V2) Action in Power Automate…

  • How To Install WordPress: Step-by-Step Guide

    How To Install WordPress: Step-by-Step Guide

    Used by more than 455 million sites, WordPress is a content management system (CMS) that has existed since 2003. It…

  • How To Get Started With NextJS

    How To Get Started With NextJS

    Nextjs is a Framework for creating pre-rendered React websites by server-side rendering (SSR) or static side generation…

社区洞察

其他会员也浏览了