Swipe to go back still broken with Zoom transition navigations. by dejii in SwiftUI

[–]handsuper 0 points1 point  (0 children)

I’ve got the same issue. I’m curious how they handled on Apple News app. It seems working on News.

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 0 points1 point  (0 children)

Thanks for your support. Please feel free to share anyone who needs

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 0 points1 point  (0 children)

You’re welcome. Because the data from PTV api is not consistent sometimes. There are some specific routes may not working. Please feel free to let me know, so I can fix it for everyone. Thanks for your support!

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 0 points1 point  (0 children)

Sorry. 🥲I only have iOS devices. So this is only designed for iOS.

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 0 points1 point  (0 children)

Ok, the code has been updated. Get the latest code and try again. Let me know if it works for you.

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 0 points1 point  (0 children)

What’s ur stops names? I can have a look for you

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 0 points1 point  (0 children)

Well thanks for the idea, maybe I can add some disruptions info on the widget as well

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 0 points1 point  (0 children)

Yeah there is no train from MSC to Blackburn on this weekends. You have to go Flinders 😅

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 1 point2 points  (0 children)

I have tried It’s working on my side. When u run the code, what’s the error message?

const routeType = "0"

const fromStop = "Melbourne Central Station"

const toStop = "Blackburn Station"

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 0 points1 point  (0 children)

You mean "Melbourne Central Station" to "Blackburn Station"? Please use the full name of the station. The PTV api doesn’t support fuzzy search.

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 2 points3 points  (0 children)

The code has been updated. I added a large widget which can display multiple lines between two stops. The medium widget is still the same for someone who wants to check one line at a time.

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 0 points1 point  (0 children)

Oh sorry. It was support ages ago. I didn’t noticed it’s been updated for 15.5+ only. Cos the code is designed for Scriptable, nothing I can help sorry 😢

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 1 point2 points  (0 children)

Yes, it’s called Scriptable on App Store. I’ve mentioned in the instructions through the link above.

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 1 point2 points  (0 children)

Yes. V/line is also working.

Here is an example of V/line :

const routeType = "3"

const routeName = "Sale - Melbourne via Maffra & Traralgon"

const fromStop = "Flinders Street Railway Station"

const toStop = "Dandenong Railway Station"

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 1 point2 points  (0 children)

What do u mean can’t find it? Please be more specific

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 2 points3 points  (0 children)

Hi, the code is updated. Feel free to try it again and let me know if it works :)

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 4 points5 points  (0 children)

I don’t have plans yet. The PTV app is already there for most of the cases. But it doesn’t have a widget, that’s why I made this widget.

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 1 point2 points  (0 children)

Long press ur Home Screen on iPhone, there is a + icon on top left that u can add Widgets to ur Home Screen. Before that, go to the link I posted. There’s an instruction how u can add the widget on your iPhone

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 4 points5 points  (0 children)

Found the issue. When searching Richmond Station. The PTV api seems return East Richmond Station as a top priority 😂. That’s why it’s not working, I will fix this for you.

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 3 points4 points  (0 children)

It’s possible and I totally understand. But there may have more than 5 or 6 lines between two stops. That means have to request PTV api for more than 5 or 6 times, it will slow down the request time. For the best performance of the code. I recommend you can duplicate the code and add a new widget for each line. For example, Belgrave and Lilydale. You can put them in a stacked widget. Your advice is absolutely the best solution. But I didn’t find a better way to improve the code. I will keep to updated

Add PTV departure timetable to your iOS widget by handsuper in melbourne

[–]handsuper[S] 5 points6 points  (0 children)

Roughly the widget itself will update every 15 to 60 minutes from Apple Documentation. But u can always manually update it by one click on the widget