The sedamo API returns a XML containing the address in Romanisation (that is, re-written in Latin characters A~Z only, even avoiding decorations such as “é”), and in the native script. Here shown for the sedamo code CT-QP-ED-TP (which is the code for the Hall of Prayer for Good Harvests inside the Temple of Heaven in Beijing, China).
<?xml version="1.0" encoding="utf-8" ?> <address> <sedamo>CTQPEDTP</sedamo> <addtype>other</addtype> <format>8</format> <comment></comment> <countryENGLISH>China (PRC)</countryENGLISH> <countryFRENCH>République Populaire de Chine</countryFRENCH> <countryFRENCHcap>RÉPUBLIQUE POPULAIRE DE CHINE</countryFRENCHcap> <latin> <addline1>Qi Nian Dian</addline1> <addline2>Tian Tan Nei</addline2> <street>Chong Wen Qu</street> <houseno>27</houseno> <district>Chong Wen Qu</district> <postcode>100061</postcode> <city>Beijing (Peking)</city> <province>Beijing Municipality</province> <formatted> Beijing Municipality Beijing (Peking) 100061 Chong Wen Qu Qi Nian Dian Tian Tan Nei China (PRC) RÉPUBLIQUE POPULAIRE DE CHINE </formatted> </latin> <native> <addline1>祈年殿</addline1> <addline2>天坛内</addline2> <street></street> <houseno></houseno> <district>崇文区</district> <postcode>100061</postcode> <city>北京市</city> <province>北京</province> <formatted> 北京 北京市 100061 崇文区 祈年殿 天坛内 BEIJING (PEKING) China (PRC) RÉPUBLIQUE POPULAIRE DE CHINE </formatted> </native> </address>
To address a letter or a mail parcel, it is enough to pick the address→native→formatted node from this XML and print it as the postal address.