Christian Geiselmann already said it in his answer: There is no object in the first sentence, according to German grammar. Maybe it may be called "direct object" if translated into other languages, but German has nothing like direct objects.
Do not think in terms like direct or indirect object whan you think about German grammar. This may help often, but sometimes (like in your example) it is misleading! Better learn the terms used in German grammar.
German has nothing that is called »direktes Objekt« or »indirektes Objekt«. This term may fit in other languages, but German grammar has grammatical cases, and we classify objects by cases.
What you call a direct object, is most often one of these:
- an accusative object (Akkusativobjekt)
This is an object in accusative case, like needed for verbs like sehen (to see), anklagen (to accuse, this is where the name comes from) and others.
Ich sehe den Mann.
Der Staatsanwalt klagt den Mann an.
- a prepositional object (Präpositionalobjekt)
This is an object in none of the four cases, beginning with a preposition, followed by a nominal group in accusative or dative case, often seen after verbs like denken (to think), or diskutieren (to discuss).
Ich denke an den Mann.
Ich diskutiere mit dem Mann.
- an adverbial determination (adverbiale Bestimmung)
This isn't even an object, but looks similar to prepositional objects, and is found at almost all verbs. Your example belongs to this group.
Er steht auf dem Platz.
Der Zug fährt um 14 Uhr.
What you call an indirect object is most often
- a dative object (Dativobjekt)
This is an object in dative case, and it is needed for words like gehören (to belong to) or geben (to give, the name comes from latin verb dare (do das dare dedi datum) which means to give)
Es gehört dem Mann.
Ich gebe es dem Mann.
But German also has genitive objects (Gentivobjekt), as needed for verbs like gedenken (to commemorate) or bedürfen (to need) which are neither direct nor indirect.
Die Gemeinde gedenkt der Toten.
Die Opfer bedürfen der Hilfe.
Also nominative objects (Nominativobjekt) are neither direct not indirect. You more often find the name Gleichsetzungsnominativ for it. Verbs like sein (to be) or bleiben (to stay) need it.
Ich bin ein Mann.
Er bleibt der Chef.
analysis of your sentences:
Ein ICE fährt um 14 Uhr.
- ein ICE
Subjekt im Nominativ, Einzahl
- fährt
Verb in der Gegenwart, 3. Person, Einzahl
- um 14 Uhr
adverbiale Bestimmung der Zeit
Gibt es keinen Zug heute morgen?
- gibt
Verb in der Gegenwart, 3. Person, Einzahl
- es
Subjekt im Nominativ, Einzahl (expletives Pronomen)
- keinen Zug
Akkusativobjekt, Einzahl
- heute morgen
adverbiale Bestimmung des Verbs