This commit is contained in:
2026-02-01 22:36:56 +01:00
parent 81999207c2
commit 7a3b6b273b
20 changed files with 321221 additions and 0 deletions

43
prompt Normal file
View File

@@ -0,0 +1,43 @@
Given this map of a train system. Extract the stations layout in the following xml format:
<map>
<line name="Stammstrecke" color="None">
<station x="303" y="566" angle="0" textpos="below"
lines="[S3,S4,S6,S8]">München-Pasing</station>
<station x="325" y="556" angle="30" textpos="above" lines="[S1,S2,S3,S4,S6,S8]">München-Laim Pbf</station>
</line>
<line name="S4" color="red">
<station x="55" y="556" angle="315" textpos="above">Geltendorf</station>
<station x="70" y="556" angle="315" textpos="above">Türkenfeld</station>
</line>
</map>
Rules:
1. have a separate line for the trunk line named Stammstrecke.
2. If a station occurs multiple times only add it to the first
3. only if a station has multiple lines like in rule 2 pack them into the optional lines attributes
4. The x,y coordinate is the middle of the white station point in the image.
5. The angle parameter is the angle of the beside a station and the texpos is the position relative to the station middle point point. valid values are: above, below, left, right
Extract all lines. Do not focus on anything specific. Do not stop until all lines are extracted.