Hi Everyone,
I would like to display the journey time for both driving and public transport as displayed below.
I would have the users postcode and the postcode of the listing as part of the dataset.
Is there a simple way to do this?
Hi Everyone,
I would like to display the journey time for both driving and public transport as displayed below.
I would have the users postcode and the postcode of the listing as part of the dataset.
Is there a simple way to do this?
Yes, you can build something that integrates both public transit and car driving time using @AliFarahatâs plugin. Itâs a bit tricky getting started, but let me know if you need help and Iâll pull together some documentation. (Note: you need your own Google Maps API keys for this plugin).
The Bubble plugin will give you estimates. But (as far as I know), doesnât allow for mode of transportation, so it defaults to driving.
Hi Dan,
Thanks for getting back to me. I have managed to generate my own API Key, but I am lost as to how to get this to work in bubble. I have downloaded the plug-in and began playing around with it. Unfortunately I havenât been able to get it to work yet and the links provided in the plugin page arenât really useful.
Id be so grateful if you were able to instruct how to do it. Or even point me in the right direction.
I could either look at Userâs postcode or Userâs current location as the origin and the Postcode of the employer as the destination. As mentioned earlier I would like to display the amount of time spent travelling for both driving and public transport.
Best regards,
Mike
Hey Mike - have you gotten to the âGet Data from an External APIâ step of getting things set up? Your setup should look fairly similar to this below. (Note: youâll set up the Get Data from an External API twice. The variable you will change is âmodeâ - driving for driving, transit for transit).
Note: you can use âCurrent geographic positionâ for the origin or a pre-set address.
Hi Dan,
Thanks for the help.
Yes this bit I have done, itâs what to do with the API Key, where to put it etc that I am struggling with now. There seems to be one API Key, but I am not sure what to do with it?
Take the API key and paste it in all of the fields you showed. (Note: be sure to keep your API key(s) secret, no need to post here ).
I have pasted the API Key into all of the fields and set up the âGet data from APIâ as you have done in your earlier post.
When I run in the preview it doesnât seem to be pulling any data and the space is left blank?
Is yours working?
Thanks,
Mike
Hi Everyone,
Problem now solved. The issue was I had not activated the Distance and Duration Key in the Google Console.
A couple of questions;
Thanks for your help.
Mike
Im not out of trouble just yetâŠ
In preview mode its taking roughly 60 seconds for the times to load. Everything else loads instantly when I click refresh, but the durations only pop up about a minute later.
Any ideas?
@AliFarahat - for the Maps plugin, @m.lewis makes a good point. Would likely be helpful to prompt a bit further on the need to activate in the Google console and steps for doing so on the plugin info page.
Hello @dan1 and everyone
The maps plug-in will go through a round of updated in several weeks. We will improve documentation and create demo and support page for it when that happens.
I know it can be a bit frustrating to get everything setup for this plug-in but once you do itâs almost problem free.
If anyone needs help please DM me
Hi @AliFarahat , thanks for the response.
I am having an issue whereby the data is displayed only sometimes when in run mode. I canât figure out the issue when looking at the debugger. It just displays data sometimes, and sometimes doesnâtâŠ
I appreciate I havenât given you much to go off.
Mike
Can you share the call parameters your using
If I remember correctly to origin and destination must be lat,long coordinate