How to Implement Google Street View in Podio

In this post, I will show you how we can embed Google Street View in your Podio app OR if you already have it integrated but for some reason its not showing the view, then how to debug what the problem is.

Overview

What is Google Street View? Google Street View is a technology featured in Google Maps and Google Earth that provides interactive panoramas from positions along many streets in the world. It was launched in 2007 in several cities in the United States, and has since expanded to include cities and rural areas worldwide.

In Podio, its use to show you an dynamic image of the property/place based on the property address you fill in and suppose you are talking to your Seller, and you have this Map view already opened in front of you then you can easily know how the property looks like and can talk further with the Seller. Thats is very helpful.

Approach?

To integrate Google Street View into your Podio app, we use a calculation field and there we write some custom code that takes the property address from an another field and generates a Google Map link that then shows the Google Street view on that Podio item. Because its a calculation type field and we are fetching the property address value from an another field, that’s why it works dynamically. So whenever you will update the property address, the Google Street View will get dynamically changed.

To add the Google Street View, you first have to

  • add a Calculation field in the app, and add the below code in that field.
var prop = @Property Address;
"![alt-text](https://maps.googleapis.com/maps/api/streetview?size=600x300&location=" + prop + "&fov=70&key=YOUR_API_KEY)"

This is how it should look like

Street View Podio Calculation
  • Now just save the App and check the item again you must see the Google Street View

Troubleshoot

If in case you don’t see the Google Street View and getting an error icon then most probably its because of the Google Map API Key. To confirm that, you can

  • check the console bar of your browser and there you must see an error related to the Google Map API key. Refer the below image.
Browser Console Error
  • You can right click on it and choose open in a new Tab. There you would be able to see the exact error message.
Complete Error Message

As shown in the above image, we can easily say that because we don’t have paid Google Map API key, thats why the Google Street View is not showing up.

Solution

To resolve this issue, you simply have to buy an Google Map API key from Google Console Account and update that Google Map API key in the calculation field we have added and that’s it. It will work.

I did some quick research and it turns out, that Google has recently made some changes.

Google Map API Usage and Billing

You can follow the below mentioned steps to get the Google Map API key from Google Console account.

Google Maps API Set Up

  1. Initiate your Google Cloud Platform by clicking this link https://cloud.google.com/maps-platform/user-guide/… ) and click on Get Started.
  2. Create a New “Project” and add the “Street View API”, published one.
  3. Set up Billing for the new Project (In the Overview section at the bottom left)
  4. Select APIs from the Dashboard on the left and then select “Street View API” to open the API details
  5. Click on the “Credentials” tab and then click the “Create credentials” button (If given the option, create credential as an “API Key”)
  6. Copy the API Key

Podio Fix:

  1. Go to Modify Template in the App where your Google Street View Map field is.
  2. Select that field and change it to the following:
    • Where it says, “@Property Address“, you will need to replace it with the field that references the property address.
    • Where it says, “YOUR_API_KEY“, you will replace it with the API Key that you just created from your Google APIs Page.
Street View Podio Calculation Code with API Key

That’s it. Everything is good. You should be able to see the Google Map view right away. You might have to hard refresh the Podio page couple of times to remove the cache (if any) from the browser or you can wait for a while after you get the API keys just to be sure that the whole process is completed.

If you want to have this feature or if you already have it but have a few questions, you are welcome to ask me the same. I would be more than happy to assist you.

Thank you!

LET’S KEEP IN TOUCH!

Sign up to receive awesome content in your inbox, every month. 😎

Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Cart
Scroll to Top