ich versuche gerade ein Script in typescript / javascript zu Python zu konvertieren. Bin auch schon recht weit.
Allerdings wird jetzt folgende Datenstruktur definiert und benutzt, bei der ich einfach nicht weiß, wie sie korrekt in Python aussieht ... kann jemnd bitte helfen?
Code: Alles auswählen
export interface EUPOIInformation {
phone: string;
waypointID: number;
lang: 1;
src: 'HERE';
coord: {
lat: number;
alt: number;
lon: number;
type: 0;
},
addr: string;
zip: string;
placeid: string;
name: string;
}
Code: Alles auswählen
poiinfo = {
'phone': '',
'waypointID': 0,
'lang': 1,
'src': 'HERE',
'coord': {'lat': 0, 'alt': 0, 'lon': 0, 'type': 0},
'addr': '',
'zip': '',
'placeid': '',
'name': ''}