rapideditor / country-coder

đŸ“âžĄïž đŸ‡©đŸ‡° Convert longitude-latitude pairs to ISO 3166-1 codes quickly and locally
https://ideditor.codes
ISC License
220 stars 17 forks source link

FeedBack - Code #119

Closed c0ncentus closed 12 months ago

c0ncentus commented 1 year ago

hi !

This package is awesome so, i forked it and wanted to put 0 dependencies.

I add typescript on this js package (2) [...].

well... I don't want make pull request because want to make some custom stuff with borders (babylon 5 map)

export interface GeoBorderProps {
    wikidata?: string;
    nameEn?: string;
    aliases?: string[];
    country?: string;
    groups?: string[];
    driveSide?: "right" | "left";
    roadSpeedUnit?: "mph" | "km/h";
    roadHeightUnit?: "ft" | "m";
    callingCodes?: string[];
    iso1A2?: string,
    iso1A3?: string
    level?: GeoLevel,
    m49?: string,
    iso1N3?: string,
    isoStatus?: "usrAssn" | "excRes" | "official",
    ccTLD?: string,

    emojiFlag?: string,
    members?: string[],
    maxLevel?: string | undefined;
    withProp?: string | undefined;
    id?: string,
}
export type GeoBorderKeys= keyof GeoBorderProps

I hope it helps

bhousel commented 12 months ago

Thanks! Sorry to say I also find the package hard to work with. 😆