Questions tagged [transit]

Transit is a format and set of libraries for conveying values between applications written in different programming languages.

Transit is a format and set of libraries for conveying values between applications written in different programming languages.

47 questions
7
votes
2 answers

Custom Transit writer for Joda time in Clojure

Clojure's transit does not support the Joda time format out of the box. How can I add write support for org.joda.time.DateTime?
David J.
  • 31,569
  • 22
  • 122
  • 174
4
votes
2 answers

How to decode, and then format, tagged LocalDateTime value

This is my Clojurescript function, (defn message-list [messages] (println messages) ;; stmt#1 [:ul.messages (for [{:keys [timestamp message name]} @messages] ^{:key timestamp} [:li [:time (.toLocaleString timestamp)] ;;…
Adeel Ansari
  • 39,541
  • 12
  • 93
  • 133
4
votes
2 answers

How to get all transit stations in Google Maps Directions api?

I made a HTTP request to a Google Maps Directions which includes transit step. The transit step in the response only returns object with information about departure and arrival stops and a number of stops in between them (5).
purfufna
  • 101
  • 1
  • 6
4
votes
1 answer

jQuery Transit queued transitions only working properly on id but not class

I'm quite new to Javascript and jQuery and am now trying to use the jQuery Transit plugin to animate 3 divs simultaneously. Each of them has a unique ID and all have the same class. Now, according to the Transit documentation I can just queue the…
eve
  • 247
  • 6
  • 16
4
votes
1 answer

Use Velocity.js or Transit.js for CSS/JS/jQuery animations?

I have been using jQuery's .animate() to animate websites and absolutely love how it works. However I just learned that Velocity.js and Transit.js perform way faster, can animate CSS3 transitions and can be used in jQuery just like…
Jan Werkhoven
  • 2,656
  • 1
  • 22
  • 31
2
votes
0 answers

Fewer stations with Public Transit API v8 than with v3

So far I use the Transit Public API v3 and now I want to switch to v8. But with the v8 I get less stations. Example: v3 (result 13 stations):…
Kiorba
  • 21
  • 1
2
votes
2 answers

Is there any way to convert Transport for London's TransXChange data to GTFS?

There used to be a tool by Google called Transxchange2GoogleTransit, but the project looks abandoned. It's not working with the latest NaPTAN data format which was released two years ago.
Louay Alakkad
  • 7,132
  • 2
  • 22
  • 45
2
votes
2 answers

splitting gtfs transit data into smaller ones

I sometime have a very large size of gtfs zip file - valid for a period of 6 months, but this is not economic for loading such big data size into a low resource (for example, 2 gig of memory and 10 gig hard disk) EC2 server. I hope to be able split…
Dung
  • 19,199
  • 9
  • 59
  • 54
2
votes
2 answers

How to write some transit-clj in a file and how to retrieve the data structure from this file

Say I have: (def c [{:id 12 :name "John"}]) How do I write this in a file? How do I get back this data structure?
leontalbot
  • 2,513
  • 1
  • 23
  • 32
1
vote
0 answers

How to get distances and durations for HERE public transit api?

I am able to retrieve some public transit route with the HERE api v8: https://developer.here.com/documentation/public-transit/dev_guide/routing/route-example.html And I would like to determine: total distance in km total duration in hours total…
Stefan
  • 10,010
  • 7
  • 61
  • 117
1
vote
0 answers

Know if value is defined as Nullable or NotNullable when resolving custom scalar type

I'm creating custom scalar types that override the built in Int and Float. I'd like to know whether the schema defines the value as nullable or not. I'd like to resolve an Int differently than Int! in my custom scalar type What I want to do is…
1
vote
0 answers

Bulk Google Traffic Queries

I am a Business Analyst. So this is a question asking if something can be done. I am working with developers on a project. We are using Google Traffic. Our problem is: We have a trip with (lets say 9 stops). Each stop has a different known…
1
vote
1 answer

pass date from clojure server to cljs frontend via transit format

A clojure server reads a datetime column from a mysql database. By using jdbc this action usually returns an instance of java.sql.Timestamp I'm bringing this data to a frontend via the transit format. One could coerce the date to a timestamp and…
Anton Harald
  • 5,772
  • 4
  • 27
  • 61
1
vote
0 answers

Google Maps 'station' in json output

i've a question about Google Maps Public Transportation, i want to fetch all data from Google Maps to my smartphone. I've here an url, that gives me the data as json format. JSON : JSON Output Google Maps: Google Maps But i can't see the stations…
aldimeola1122
  • 806
  • 5
  • 13
  • 23
1
vote
3 answers

Transit between view controllers using code

Im a new programmer and I am stuck with a problem. I simply want to transit from ViewController to NOViewController when the livesLeft reaches to 0. (When you're dead, the "death"screen should appear) Big thanks in advance! if (livesLeft == 0) { …
MrHaze
  • 43
  • 6
1
2 3 4