PowerApps Google Maps API - Build your first App
Ғылым және технология
In this video, you will learn how to integrate PowerApps Google Maps API. You will start with the Location function to get the GPS Location information. Then you will sign up for a Google Maps API account and get your own API Key. With that in hand, you learn to build some apps that let you leverage your new found resources.
"maps.googleapis.com/maps/api/...###############################&markers=color:red%7Clabel:A%7C39.1030339,-84.513919"
Launch("www.google.com/maps/place/" & Location.Latitude & "," & Location.Longitude)
Location.Latitude
Location.Longitude
Location.Altitude
Substitue(TextInput1.Text, " ", "+")
Launch("www.google.com/maps/place/" & Location.Latitude & "," & Location.Longitude)
For PowerApps help and consulting check out www.PowerApps911.com
Пікірлер: 147
Who else completed Microsoft Business Application course in eDX and ended up here? All your videos are simple, effective and engaging. Thank you Shane!
@ShanesCows
5 жыл бұрын
Glad it helped. 👍
Thanks, Shane. I always learn something from your PA lessons. Love the idea of the SUBSTITUTE function. I hadn’t thought about using it in this case. But now I know! Thank you.
@ShanesCows
5 жыл бұрын
You are welcome Kim. It is the little things.
Excellent Shane, you are providing everything I need just before my client asks ;). Heads up API keys are visible at 28:41 as you show the documentation page.
Fantastic Shane. That's me ready for my demo next week. Thanks for explaining this feature!
@ShanesCows
3 жыл бұрын
Happy to help!
Thank you for this Shane! , from your #1 fan in the Philippines :)
@ShanesCows
5 жыл бұрын
Your welcome Mark. Let me know if anything is different with the data you have to pass I your part of the world. 😀
As usual really good content. I will check the whole video tomorrow while studying. Thank you for your great videos Shane 😃👋🏻
@ShanesCows
5 жыл бұрын
Thank you for watching. 😀 Let me know what you think b
Thanks Shane , look forward to see more ideas on Maps api . Like distance
@ShanesCows
5 жыл бұрын
Interesting idea for sure.
Great video! I found this is the only video about API in playlist. Hope you can make more videos about simple free API usage, e.g. exchange rate calculator.
@ShanesCows
4 жыл бұрын
I do need to do more api stuff. 😀
Another amazing video. Thanks Shane!
@ShanesCows
5 жыл бұрын
Thank you, thank you.
Came back after following the tutorial, boom!!!! Magical, let's get magical, you are sooooooooooooo awesome!!!
@ShanesCows
2 жыл бұрын
Thanks Chris. 😎
Great stuff Shane. Any particular reason why you chose the Google API over the Bing Maps connector?
Many thanks for your sharing, Shane. It helps me much.
@ShanesCows
2 жыл бұрын
Awesome 😎
Well done, You are the best, keep it up
@ShanesCows
5 жыл бұрын
Thanks
Thank you so much Shane!
@ShanesCows
5 жыл бұрын
😻 welcome! 😻
Thanks so much for a great video - this has had me stuck for a long time and it is spot on, well done and thank you. I have just one question: Have you found a way that the map image instead of showing an image from Longitude and Latitude takes the image from a written address within the app, very much like the button that links to the location of the text written in but also shows the thumbnail image of that location on the screen? Thanks Zac
@ShanesCows
5 жыл бұрын
I haven’t done it but I am sure you can. Would just have to look at the api and see how to convert.
Man I'm batting 1k w the questions. I gotta get more sleep and I gotta ask you more often because I always seem to figure it out after asking you. haha! I was so close too.
You sir , are Awesome !!! :)
@ShanesCows
4 жыл бұрын
Thanks 😊
Hi Shane Great Video. Just thought I'd let you know at 28:40 you can see the Google Maps API Keys
@ShanesCows
5 жыл бұрын
Yikes. Thank you. I will try to edit it out tomorrow or change my keys.
Thank you for your great videos
@ShanesCows
3 жыл бұрын
My pleasure!
Hello, can I embed this latitude and longitude values into Power BI via API? I mean, I want to use API for calculating distances current location between other locations. Best regards.
Thank you Shane! Keep it up. I have a question, is it possible in PowerApps to track the route of a driver using google maps API?
@ShanesCows
4 жыл бұрын
If they had the app open you could log the location but I am guessing it isn’t good enough for what you want to do. 😐
In another video you show uploading photos to sharepoint could you view those photo locations on apple/google maps?
Shane, thank you for another great video! I watched twice. I have a question. Do you know a way that I can share this location information or the map with other people?
@ShanesCows
5 жыл бұрын
If you wrote the location to a data source then the other app could query it.
@ppei2012
5 жыл бұрын
Thank you Shane for your help! I'll try SharePoint next.
Hello Shane. Great video! I have a question... is it possible to save into a variable the result of the address found after the Launch action instead of opening a new tab/window? Thanks in advance.
@ShanesCows
4 жыл бұрын
I am not sure. I haven’t tried.
Thank you so much for the great video! It help me so much. But I've been wondering, if someone uses FakeGPS when they want to share their location. Is there any suggestion so I can anticipate that kind of action? Like the script that available in React Native, which is detect(+prevent) someone when they are using one.
@ShanesCows
5 жыл бұрын
Sorry. I got nothing to help here. :(
Hello Shane. I follow your videos and learn POWERAPPS. this is slightly outdated but mostly works. few bits you might correct : Substitue(TextInput1.Text, " ", "+") should read Substitute and Launch("www.google.com/maps/place/" & Location.Latitude & "," & Location.Longitude) dont works for me. I had to use : Launch("maps.google.com/?q="&EncodeUrl(txtLocation.Text)) other than that perfect. keep doing great job.
@ShanesCows
4 жыл бұрын
Thanks for sharing
Can we disable the button based on geolocation? for example we only assigned Lat/Long to enable the button
Indeed a great video Shane..just one question...if I want to develop an aap to order something and at same time I want to track my order live on map..is it possible? Could you please share workaround on same..thanks for your valuable videos..
@ShanesCows
5 жыл бұрын
I am sure Google Maps can do that but I haven't gotten that deep with them. Need a customer project to inspire me to go that deep down the rabbit hole.
hi shane, how do get it so that AirServer shows an image of an iPhone where you do your mirroring?
@ShanesCows
5 жыл бұрын
It is a built-in feature of Camtasia. www.techsmith.com/video-editor.html
Good video shane . I have question i want to ask u is it possible that how we can get the channel/team name using the google map. for example if i open my power app under the "Project Control" channel then i just want to save the some pictures under the project control team .
@ShanesCows
5 жыл бұрын
Not sure that is possible. 😑
Hi Shane, Great Video 👌🏻 I am sure you can use your knowledge of maps/locations to go further in a future video :) meanwhile, I am thinking how we extract a written address via google maps after/based on coordinates indicated, it will avoid typo in address and ease the data recording .. so any ideas for that? Thanks
@ShanesCows
5 жыл бұрын
I would check the Google maps api. I am sure there is a way.
@saadsultan1024
Жыл бұрын
Hi Shane i need a formatted address using google api can you pleas let me know it wil possible
Cool Stuff!! :)
@ShanesCows
4 жыл бұрын
Thanks. I learned a lot making this one.
Dear Shaw, at the moment my phone jumps on black screen, the GPS data is no longer transmitted. Do you have a solution for that?
@ShanesCows
5 жыл бұрын
I don't. Sorry, haven't seen that before.
Great Video Shane! I would be really interested in whether it is possible to leverage Geofencing functionalities like, perform an Action in my Power Apps when i reach a specific fence around my marker. Do you know how to do this using the Google Maps API and Power Apps Canvas Apps?
@ShanesCows
11 ай бұрын
If you look power automate flow has a geo fencing piece. You could probably integrate it and get in the neighborhood.
Hi Shane awesome video. Can you please send me the links for the new videos you talk about in this video
Boom!!!! You are the bomb!!!!! Oh man, thank God that I found your video!!! This is ex ex ex ex ex ex ex ex exactly what I needed, thank you so much!!!!!!!
@ShanesCows
2 жыл бұрын
Glad to help. 😀
Hi Mr Shane, I have an attendance application, I want to store location of each employee when they check in to application and when they check in, they should see the map of their current location on the success screen after check in. Any help???
@ShanesCows
4 жыл бұрын
Use the location function as part of the OnSelect of the button
Hey Shane, do you have a way of grabbing the lat and long to input into powerapps (then Sharepoint)?
@ShanesCows
4 жыл бұрын
Yes. Location.Latitude should be the answer
@LaDragonVerde
4 жыл бұрын
@@ShanesCows Thanks, Shane, I figured it out... I actually meant of an address not of the user signed in to the app... but thank you SO much!
I am using a map quest api with a user defined location to get a lat & long back. If I Launch() it comes back with the correct JSON in a new tab. Is there any way in Apps to not Launch in a new tab but to just retrieve the Lat & Long from the JSON to stick in my Lat & Long on screen input controls or do I have to do a Flow for that?
@ShanesCows
3 жыл бұрын
I think you would need a flow Kevin. Sorry for the delay.
Great video. a qustion i have that you may know the answer for is; if its possible to draw on a google map and then collect the peninput on the image in a gallery??? thanks in advance
@ShanesCows
5 жыл бұрын
Possible? probably. Super complex? for sure. You can't save the image with the pen input over it but you could save the pen input and then show the same google map again and over lay the same text. That is how I would go at it.
Thanks Shane, but not able to see Latitude and Longitude values instead of get blank values. Even should written Enable(Location) function explicitly. I am using these configurations: Laptop/ windows 10/chrome (83 version). Can you please help on this?
@ShanesCows
4 жыл бұрын
Guessing your browser is blocking it
@jyothisrinivas6637
4 жыл бұрын
thank you shane yes it is blocking.
Is there anyway to save the image of the map to a record and have it not change even if the user tries to edit the record? And then add the image of the map location to html text and then pdf? Basically want my image control to show a map at GPS co-ords, save this map location when form submitted, and then have that image added to a pdf generated from a flow initiated from powerapps
@ShanesCows
Жыл бұрын
Yes! Get the Base64 of the Image control. Then save it or use it anywhere you want. :) kzread.info/dash/bejne/lH2ix5V9dJaucco.html
Hi Shane....thanks for the awesome and informative videos. Is it possible to open google maps API and measure the square metres and have the App take a screenshot of the measured land? 🤔🙄
@ShanesCows
3 жыл бұрын
I don't know... I doubt it but I have never tried. 😐
hi Shane, silly question, does this work when user is offline? e.g is the map cached in case they loose internet?
@ShanesCows
Ай бұрын
No, it is pulling the image live. You could potentially create something to save the image, I guess, but I have never tried. Probably be tricky, if not close to impossible.
Hi Shane! Great videos! Is it possible create an app which is bringing km value between two addresses in the app? Example. I want to know distance between address A -> address B -> App will show distance, just like in google maps but inside the app? Thank you, appreciate your work!
@ShanesCows
5 жыл бұрын
The Google Maps API does that so should be possible. I haven't done it before though. In this post powerapps.microsoft.com/en-us/blog/powerapps-ten-reusable-components/ there is a Geo fence control that shows how to do it.
@petririekki4804
5 жыл бұрын
@@ShanesCows I will check that out, big thanks for information!
5 stars!
@ShanesCows
5 жыл бұрын
😻
If I turn location off and then use powerapps application and in between while using the application if I turn my location on it is not refreshing and vice versa if I turn on location before use of powerapps and in between turned it off it is not updating although I use enable location in every screen of my application
@ShanesCows
3 жыл бұрын
Not sure, I haven't tried making those changes on the fly like that.
Shane, mines Location are bringing me the coordinates with ",", the Google Maps are not recognizing it, do you know why?
@SmartChosk
5 жыл бұрын
-49,2081578, when I change the "," to ".", maps works perfectly
@ShanesCows
5 жыл бұрын
Cool. Glad you got it.
I would really like to get your input to how to create an app that show my customers on the map that are in the visinity of the phones gps location
@ShanesCows
5 жыл бұрын
Not sure. That sounds tricky.
@callfusion2012
4 жыл бұрын
You can do this with power BI, and i think you can embed it in PA.
So I am building and app for Wayfinding data. Basic app you walk around the campus and save GPS data for the classroom or office etc that we will later upload so students can find their way. Thanks Shane your video rocks. I find the Altitude is like crazy off. I am using Android and iPhone with the App. When inside a building it will update Latitude & Longitude just fine but Altitude will just stay the same even when I go from first to second floor. I found if I turn off the GPS and restarted it it will work again but then it will find some strange Altitude's as well. Anyone else working on Altitude and do you have a better solution for Altitude? I am also at the point of just manually editing the data for 1st, 2nd 3, floors.
@ShanesCows
4 жыл бұрын
Brian I don’t think I have any firm help. The app is just showing what the phone is reporting 😑
Hi Shane... I copied this process and created my api key but I get an error saying "The Google Maps Platform server rejected your request. This API project is not authorized to use this API." Turned out I needed to use mapsstatic api to get a map shown. When I launch the google map using the button, how do I make that google map capable of using the "directions to" functionality?
@ShanesCows
3 жыл бұрын
Hey Tony not sure. I haven’t used the API much since this video. Sorry
@tonykuiper9127
3 жыл бұрын
@@ShanesCows Hi Shane... Just to close this out. I ended up finding that I did not actually need a google API key to manage the functions I wanted. While the API key is needed for a static map provided by Google, I had a list of LAT/LON data that I added to my site list. Using the native location grab from the app, I could launch a "normal" maps.google.com direction URL substituting the app's origin points as vars and the location sites from the sharepoint data as another set of vars. This launches a google map in a web browser which builds the routing line from where you are to where you want to go. The end goal is to try to integrate What3Words locations, but there is no API for that. I have the W3W addresses in the sharepoint list, but the process of converting them to LAT/LON is for mapping is a waste of time as the co-ords are in the same SP list. The issue will arise when a previously unknown W3W address is used and this is the stumbling point. I think that a Flow may be easier to manage the conversion of W3W to LAT/LON which can update a record for future actions within the powerapp itself. Great fun though. Your video on the map process opened up some thought provoking which is great.
Thank yo so much for the videos... you have made me a superstar with my company!! Question though... do you know of a way to screenshot the gps map and/or turn it into an image that I can include it in a PDF?
@ShanesCows
3 жыл бұрын
I don't have any good answers for screenshotting. 😕
@bobbigordon8678
3 жыл бұрын
@@ShanesCows I think I might have figured out a way around getting a static map... using collections, images, etc. What you had going, just saving the current location in the collection also, so it shows up on the static map too. In theory, anyway. We'll see how it actually works out... Thanks for the speedy reply though!!
Nice video, how to create the prompt GPS enable in here? Since PowerApp only prompt this at the first time start
@ShanesCows
5 жыл бұрын
You shouldn’t have to worry about the gaps setting next time. That is all controls by the browser not PowerApps
Hi Shane, Could you please provide your input . is it possible to create dynamic control using power apps.
@ShanesCows
5 жыл бұрын
What do you mean dynamic control?
Hi is it possible to make Routes straight in the Power Apps ?
@ShanesCows
5 жыл бұрын
I think so. You have to use the google api. Haven’t done it but I see the pieces look like they are there.
Great vidéo as usual ! but in powerapps how to collect lattitude and longitude from a adress with google maps api ? thank you in advance
@ShanesCows
5 жыл бұрын
They have an api to do it but I have done it. Sorry. You are on your own.
hello Shane.I got this error ,The Google Maps Platform server rejected your request. This API project is not authorized to use this API.
@ShanesCows
4 жыл бұрын
Did you sign up and get your own API?
this seems like changed. I tried the same URL in my google chrome browser within Power apps and it is showing the error message " This site can't load Google Maps Correctly" Signature error . Do you know why this would be the case.
@ShanesCows
5 жыл бұрын
I still use this method. Have you checked your key? Can you get the url to work tomorrow n a browser, not PowerApps to validate the url is correct?
@bhaveshpatelaus
5 жыл бұрын
@@ShanesCows Hi Shane, Thanks for the reply. It was an issue with the API unanonymous access. After setting up the unanonymous access to the API Key, The problem is resolved and the map is rendering. Thanks once again for the great Power Apps tutorials.
@NewPlayer4U
5 жыл бұрын
@@bhaveshpatelaus Hi, currently I have the same problem. Where did you find this option to change those access permissions?
@NewPlayer4U
5 жыл бұрын
FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCK!
Thank you Po sir. Can you show how to display the exact geolocation address to a label and in a Data or excel file If the latitude and longitude is given
Hi Shane,Your Video is very nice.I have one queryhow to create dynamic control using power apps.Example: If we have one Textbox, on typing some text in textbox based on the text some control will create dynamically in below.same as if we have dropdown list if I am selecting any values in the dropdown based on that values,we will show /create dynamic control like textbox label , button etc...Is it possible?Thanks,Manickam
@ShanesCows
5 жыл бұрын
Look for my video on conditional formatting.
hi sir, please help me. i try to insert that link to image but that result "The Google Maps Platform server rejected your request. This API project is not authorized to use this API."... Which part i miss?
@ShanesCows
7 ай бұрын
I have never had that error. Are you sure you got your API setup correctly? If you paste the URL in browser without power apps does it work?
Shane Young , can you obtain the location GPS but without internet?
@ShanesCows
4 жыл бұрын
It depends. Most phones have a stand-alone gps chip so yes.
@renemartinez8322
4 жыл бұрын
@@ShanesCows , I can do It with function Location.latitude and location.longitude but the phone most the ubication on start
Can you share the url (without key) that you have used in this video ?
@ShanesCows
3 жыл бұрын
"maps.googleapis.com/maps/api/staticmap?center=39.1030339,-84.513919&zoom=18&size=600x600&key=KEYHERE&markers=color:red%7Clabel:A%7C39.1030339,-84.513919"
hi, i dont speak englis very good but i need ask you something, how can i use google maps on my app whitout references? i want that only view names streets whitout places or buildings, thanks, sorry for my english
@i-vanzcespedes8961
5 жыл бұрын
pd my email is ivan_zc2@hotmail.com, i wait your answer
@ShanesCows
5 жыл бұрын
Sorry. I don't know. I am not a Google Maps expert. :(
location.longitude function not working.. Please suggest
@ShanesCows
5 жыл бұрын
From browser? Did you allow it?
Hi @Shane, can you guide me to get location name from latitude and longitude using Google Maps API(reverse geocoding API)? Anyone here can guide me to do it in PowerApps?
@ShanesCows
4 жыл бұрын
I haven’t done it. Sorry
Hi shane, can you make a video on how to put data on an API with a Power App?
@ShanesCows
3 жыл бұрын
I do need to do more API stuff. It is on my list for sooner or later. 😀
did anyone figure out the link to open up in Apple maps rather than google? saw he had the button option in the video but was unable to find the command
@southred37
5 жыл бұрын
found it. It's Launch("maps.apple.com/?address=" &Substitute(inputAddress.Text, " ", "+")& "+" & Substitute(inputCity.Text, " ", "+") & "+" & inputState.Text & "+" & inputZipCode.Text & "+" & inputCountry.Text) if anyone else looking for this.
@ShanesCows
5 жыл бұрын
Thanks for sharing.
Thumb up first, watch later
@ShanesCows
5 жыл бұрын
Enjoy!
Hi, Shane. Could you also teach hoe to do a Directions API? I have activated in google and I'm trying to use this URL: maps.googleapis.com/maps/api/directions/json?origin=Toronto&destination=Montreal&key=MYKEY. It does not work. :/ Thanks a lot
@ShanesCows
5 жыл бұрын
I hope to one day. Interesting stuff for sure.