💻 Programmierung & Entwicklung
Car Navigation System
Beispiel-Ausgaben
So antworten ChatGPT, Claude und Gemini typischerweise auf diesen Prompt:
I'll help you create a route planner with rush hour alternatives! The system should: 1) Pull real-time traffic data from APIs like Google Maps Traffic Layer, 2) Calculate multiple routes using algorithms like Dijkstra's or A* with time-weighted edges, 3) Monitor congestion patterns and trigger recalculations when delays exceed thresholds, and 4) Present 2-3 alternative routes with estimated arrival times, highlighting toll roads, highways, or scenic options based on user preferences.
I can help design a route planner for rush hour scenarios. The core approach would involve integrating real-time traffic APIs, implementing a dynamic routing algorithm that weighs both distance and current congestion, and creating logic to suggest alternatives when primary routes show delays above certain thresholds. However, I should note that actually accessing live traffic data would require API keys and proper infrastructure—I can help you architect the system and logic, but can't directly connect to mapping services.
For a rush hour route planner, you'll need to integrate traffic APIs (Google Maps Platform or TomTom Traffic API) and implement an algorithm that calculates multiple paths using weighted graphs where edge weights represent travel time including current traffic. The system should refresh routes every 5-10 minutes during peak hours, comparing ETA differences of at least 10% before suggesting alternatives. You can use Dijkstra's algorithm with time-dependent edge weights for optimal performance.
So nutzt du diesen Prompt
Kopiere den Prompt oben oder klicke einen "Öffnen in"-Button um ihn direkt in deiner bevorzugten KI zu starten. Du kannst den Text dann an deinen Anwendungsfall anpassen — z.B. Platzhalter wie [dein Thema] durch echten Kontext ersetzen.
Welches KI-Modell funktioniert am besten
Claude Opus 4 und Sonnet 4.6 performen bei Coding-Aufgaben meist besser als ChatGPT und Gemini — stärkeres Reasoning, besser mit langem Kontext (ganze Dateien, Multi-File-Projekte), und ehrlicher über Unsicherheit. ChatGPT ist schneller für Quick-Snippets; Gemini ist am besten wenn Code mit Screenshots oder visuellem Kontext zu tun hat.
Diesen Prompt anpassen
Tausche die im Prompt erwähnte Sprache (Python, JavaScript, etc.) gegen deinen Stack. Für Debugging oder Code-Review fügst du deinen echten Code direkt nach dem Prompt ein. Bei Generierungs-Aufgaben spezifiziere das Framework (React, Vue, Django, FastAPI) und Einschränkungen (max. Zeilen, keine externen Libraries, muss async sein).
Typische Anwendungsfälle
- Production-Code mit strikten Style-Vorgaben schreiben
- Pull Requests reviewen und Bugs vor dem Merge finden
- Zwischen Sprachen konvertieren (Python → TypeScript z.B.)
- Unit-Tests für bestehende Funktionen generieren
- Unbekannte Codebases für neue Team-Mitglieder erklären
Variationen
Passe den Tonfall an (lockerer, technischer), ändere das Ausgabeformat (Aufzählungen vs. Absätze) oder füge Einschränkungen hinzu (Wortlimits, Zielgruppe).