Musings and confusings about the Place Cleanup gramplet

The Place Cleanup gramplet add-on has become a integral part of cultivating my Place Tree.

There are behaviors that are unpredictable… but probably just because I have not sussed out the rules yet. Can we have a discussion about the use, limits and easter eggs of this tool? The discussion would be used to flesh out the wiki article.

Let’s circle back to the configuring with a Geonames account, alternate name language preferences, and the peccadillos of the matching routines. And Jump right into the updates that accompany a successful match.

When 'OK’ing a selection of Names, sometimes a Type comes with but often the type goes to “Unknown”. Is this due to a deficiency in the GeoNames server data?

The returned names often have exact duplicate names… mostly the duplicate names have different languages. (Although often the duplicate is just the loaner word name for that language or with NO language specified. (As an example in the capture above, “San José” is obviously a loaner word from Spanish and isn’t the primary ‘en’ variant. But that would be nearly impossible for the GeoName server to know.) But WHY isn’t there a “Jan Jose” with NO LANGUAGE suppressed in the list above when it is the same as the Primary in English?

Here’s what the geoname server provides for a valid place name ID request with a registered username:
http://api.geonames.org/get?&username=<username>&geonameId=5392171

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<geoname>
<toponymName>San Jose</toponymName>
<name>San Jose</name>
<lat>37.33939</lat>
<lng>-121.89496</lng>
<geonameId>5392171</geonameId>
<countryCode>US</countryCode>
<countryName>United States</countryName>
<fcl>P</fcl>
<fcode>PPLA2</fcode>
<fclName>city, village,...</fclName>
<fcodeName>seat of a second-order administrative division</fcodeName>
<population>1026908</population>
<adminCode1 ISO3166-2="CA">CA</adminCode1>
<adminName1>California</adminName1>
<asciiName>San Jose</asciiName>
<alternateNames>
Iosephopolis,Pueblo De Alvarado,Pueblo De San Jose De Guadalupe,SJC,San Chose,San Choze,San Chozė,San Jose,San Jose De Alvarado,San Jose De Guadalupe *,San Jose i California,San José,San Khose,San Khoze,San Xose,San Xosé,San-Joseo,San-Khaseh,San-Khose,San-Xose,Sanhose,Sanhosē,can hoce,sa n jwz,saeneojei,saina hoze,san hwzyh,san ose,san'noze,san-khose,sana hose,sana hoze,sanhose,sena hoje,sheng he xi,sn hwzh,sn‌khwzh kalyfrnya,syana hose,Σαν Χοσέ,Сан Хозе,Сан Хосе,Сан-Хасэ,Сан-Хосе,Սան Խոսե,סן חוזה,سا ن جوز,سان هوزيه,سان ہوزے، کیلیفورنیا,سن‌خوزه، کالیفرنیا,सान होसे,सॅन होजे,सैन होज़े,স্যান হোসে,ਸਾਨ ਹੋਜ਼ੇ,સાન હોસે,சான் ஹொசே,శాన్ ఓసె,ಸ್ಯಾನ್‌ ಜೋಸ್‌‌,แซนโฮเซ,სან-ხოსე,サンノゼ,聖荷西,산호세,새너제이
</alternateNames>
<elevation>26</elevation>
<srtm3>23</srtm3>
<astergdem>34</astergdem>
<continentCode>NA</continentCode>
<adminCode2>085</adminCode2>
<adminName2>Santa Clara</adminName2>
<alternateName isPreferredName="true" lang="ko">산호세</alternateName>
<alternateName lang="ko">새너제이</alternateName>
<alternateName lang="post">95101</alternateName>
<alternateName lang="post">95103</alternateName>
<alternateName lang="post">95106</alternateName>
<alternateName lang="post">95108</alternateName>
<alternateName lang="post">95109</alternateName>
<alternateName lang="post">95110</alternateName>
<alternateName lang="post">95111</alternateName>
<alternateName lang="post">95112</alternateName>
<alternateName lang="post">95113</alternateName>
<alternateName lang="post">95115</alternateName>
<alternateName lang="post">95116</alternateName>
<alternateName lang="post">95117</alternateName>
<alternateName lang="post">95118</alternateName>
<alternateName lang="post">95119</alternateName>
<alternateName lang="post">95120</alternateName>
<alternateName lang="post">95121</alternateName>
<alternateName lang="post">95122</alternateName>
<alternateName lang="post">95123</alternateName>
<alternateName lang="post">95124</alternateName>
<alternateName lang="post">95125</alternateName>
<alternateName lang="post">95126</alternateName>
<alternateName lang="post">95127</alternateName>
<alternateName lang="post">95128</alternateName>
<alternateName lang="post">95129</alternateName>
<alternateName lang="post">95130</alternateName>
<alternateName lang="post">95131</alternateName>
<alternateName lang="post">95132</alternateName>
<alternateName lang="post">95133</alternateName>
<alternateName lang="post">95134</alternateName>
<alternateName lang="post">95135</alternateName>
<alternateName lang="post">95136</alternateName>
<alternateName lang="post">95138</alternateName>
<alternateName lang="post">95139</alternateName>
<alternateName lang="post">95141</alternateName>
<alternateName lang="post">95148</alternateName>
<alternateName lang="post">95150</alternateName>
<alternateName lang="post">95151</alternateName>
<alternateName lang="post">95152</alternateName>
<alternateName lang="post">95153</alternateName>
<alternateName lang="post">95154</alternateName>
<alternateName lang="post">95155</alternateName>
<alternateName lang="post">95156</alternateName>
<alternateName lang="post">95157</alternateName>
<alternateName lang="post">95158</alternateName>
<alternateName lang="post">95159</alternateName>
<alternateName lang="post">95160</alternateName>
<alternateName lang="post">95161</alternateName>
<alternateName lang="post">95164</alternateName>
<alternateName lang="post">95170</alternateName>
<alternateName lang="post">95172</alternateName>
<alternateName lang="post">95173</alternateName>
<alternateName lang="post">95190</alternateName>
<alternateName lang="post">95191</alternateName>
<alternateName lang="post">95192</alternateName>
<alternateName lang="post">95193</alternateName>
<alternateName lang="post">95194</alternateName>
<alternateName lang="post">95196</alternateName>
<alternateName lang="link">http://id.loc.gov/authorities/names/n79102890</alternateName>
<alternateName lang="link">
https://en.wikipedia.org/wiki/San_Jose%2C_California
</alternateName>
<alternateName lang="link">
https://ru.wikipedia.org/wiki/%D0%A1%D0%B0%D0%BD-%D0%A5%D0%BE%D1%81%D0%B5_%28%D0%9A%D0%B0%D0%BB%D0%B8%D1%84%D0%BE%D1%80%D0%BD%D0%B8%D1%8F%29
</alternateName>
<alternateName lang="la">Iosephopolis</alternateName>
<alternateName>Pueblo De Alvarado</alternateName>
<alternateName>Pueblo De San Jose De Guadalupe</alternateName>
<alternateName lang="lt">San Chozė</alternateName>
<alternateName lang="lv">Sanhosē</alternateName>
<alternateName lang="da">San Jose</alternateName>
<alternateName isPreferredName="true" lang="en">San Jose</alternateName>
<alternateName lang="eo">San Jose</alternateName>
<alternateName lang="et">San Jose</alternateName>
<alternateName lang="it">San Jose</alternateName>
<alternateName lang="no">San Jose</alternateName>
<alternateName lang="pl">San Jose</alternateName>
<alternateName lang="ro">San Jose</alternateName>
<alternateName lang="sv">San Jose</alternateName>
<alternateName lang="tr">San Jose</alternateName>
<alternateName lang="vi">San Jose</alternateName>
<alternateName lang="ast">San José</alternateName>
<alternateName lang="ca">San José</alternateName>
<alternateName lang="cs">San José</alternateName>
<alternateName lang="de">San José</alternateName>
<alternateName lang="en">San José</alternateName>
<alternateName lang="es">San José</alternateName>
<alternateName lang="fi">San José</alternateName>
<alternateName lang="fr">San José</alternateName>
<alternateName lang="hu">San José</alternateName>
<alternateName lang="jv">San José</alternateName>
<alternateName lang="lb">San José</alternateName>
<alternateName lang="nah">San José</alternateName>
<alternateName lang="nl">San José</alternateName>
<alternateName lang="pl">San José</alternateName>
<alternateName lang="pt">San José</alternateName>
<alternateName lang="sc">San José</alternateName>
<alternateName lang="sk">San José</alternateName>
<alternateName>San Jose De Alvarado</alternateName>
<alternateName>San Jose De Guadalupe *</alternateName>
<alternateName lang="nn">San Jose i California</alternateName>
<alternateName lang="eo">San-Joseo</alternateName>
<alternateName lang="az">San-Xose</alternateName>
<alternateName lang="ug">San Xosé</alternateName>
<alternateName lang="iata">SJC</alternateName>
<alternateName lang="unlc">USAZB</alternateName>
<alternateName lang="unlc">USS2J</alternateName>
<alternateName lang="unlc">USSJC</alternateName>
<alternateName lang="el">Σαν Χοσέ</alternateName>
<alternateName lang="be">Сан-Хасэ</alternateName>
<alternateName lang="mk">Сан Хозе</alternateName>
<alternateName lang="sr">Сан Хозе</alternateName>
<alternateName lang="bg">Сан Хосе</alternateName>
<alternateName lang="kk">Сан Хосе</alternateName>
<alternateName lang="ro">Сан Хосе</alternateName>
<alternateName lang="mhr">Сан-Хосе</alternateName>
<alternateName lang="mrj">Сан-Хосе</alternateName>
<alternateName lang="os">Сан-Хосе</alternateName>
<alternateName lang="ru">Сан-Хосе</alternateName>
<alternateName lang="uk">Сан-Хосе</alternateName>
<alternateName lang="ka">სან-ხოსე</alternateName>
<alternateName lang="xmf">სან-ხოსე</alternateName>
<alternateName lang="hy">Սան Խոսե</alternateName>
<alternateName lang="he">סן חוזה</alternateName>
<alternateName lang="pnb">سا ن جوز</alternateName>
<alternateName lang="ar">سان هوزيه</alternateName>
<alternateName lang="ur">سان ہوزے، کیلیفورنیا</alternateName>
<alternateName lang="fa">سن‌خوزه، کالیفرنیا</alternateName>
<alternateName lang="ne">सान होसे</alternateName>
<alternateName lang="new">सान होसे</alternateName>
<alternateName lang="mr">सॅन होजे</alternateName>
<alternateName lang="hi">सैन होज़े</alternateName>
<alternateName lang="bn">স্যান হোসে</alternateName>
<alternateName lang="pa">ਸਾਨ ਹੋਜ਼ੇ</alternateName>
<alternateName lang="gu">સાન હોસે</alternateName>
<alternateName lang="ta">சான் ஹொசே</alternateName>
<alternateName lang="te">శాన్ ఓసె</alternateName>
<alternateName lang="kn">ಸ್ಯಾನ್‌ ಜೋಸ್‌‌</alternateName>
<alternateName lang="th">แซนโฮเซ</alternateName>
<alternateName lang="ja">サンノゼ</alternateName>
<alternateName lang="gan">聖荷西</alternateName>
<alternateName lang="zh">聖荷西</alternateName>
<alternateName lang="zh-TW">聖荷西</alternateName>
<timezone dstOffset="-7.0" gmtOffset="-8.0">America/Los_Angeles</timezone>
<bbox>
<west>-122.04567</west>
<north>37.46917</north>
<east>-121.58915</east>
<south>37.12552</south>
<accuracyLevel>0</accuracyLevel>
</bbox>
</geoname>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.