markjoshwel / surplus

Plus Code/latlong/query to iOS-Shortcuts-like shareable text
https://surplus.joshwel.co
The Unlicense
0 stars 1 forks source link

New feature: type-to-type conversion #18

Closed markjoshwel closed 1 year ago

markjoshwel commented 1 year ago

hilariously, any non-string-to-string conversion is just running surplus()

markjoshwel commented 1 year ago

undertaking this might be sizeable, so i might delay it for 2.1.0

however, as i am currently working on 2.0.0 i'll develop with this in mind so that i don't have to botch my way around and into fresh code

markjoshwel commented 1 year ago

map of what to do

surplus conversions

pluscode
    --> pluscode    --> (return __str__ of querytype)
    --> localcode   --> ???
    --> latlong --> (return Latlong.__str__)
    --> sharetext   --> (normal pre-2.1 surplus operation)
localcode
    --> pluscode    --> PlusCodeQueryType.to_full_length(...)
    --> localcode   --> (return __str__ of querytype)
    --> latlong --> (return Latlong.__str__)
    --> sharetext   --> (normal pre-2.1 surplus operation)
latlong
    --> pluscode    --> (use PlusCodes lib)
    --> localcode   --> ???
    --> latlong --> (return __str__ of querytype)
    --> sharetext   --> (normal pre-2.1 surplus operation)
querystring
    --> pluscode    --> (get latlong, then use PlusCodes lib)
    --> localcode   --> ???
    --> latlong --> (return Latlong.__str__)
    --> sharetext   --> (normal pre-2.1 surplus operation)