]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/ParameterParser.php
geocodejson: type should contain the general feature class
[nominatim.git] / lib-php / ParameterParser.php
index 90e0cee317d8c1b0155f25c88248f80069288649..98b95388ce678f7d52a2711dc18b29829414801d 100644 (file)
@@ -114,11 +114,10 @@ class ParameterParser
         }
 
         foreach ($aLanguages as $sLanguage => $fLanguagePref) {
-            $this->addNameTag($aLangPrefOrder, $sLanguage);
+            $this->addNameTag($aLangPrefOrder, 'name:'.$sLanguage);
         }
-        $this->addNameTag($aLangPrefOrder, 'default');
+        $this->addNameTag($aLangPrefOrder, 'name');
         $this->addNameTag($aLangPrefOrder, 'brand');
-
         foreach ($aLanguages as $sLanguage => $fLanguagePref) {
             $this->addNameTag($aLangPrefOrder, 'official_name:'.$sLanguage);
             $this->addNameTag($aLangPrefOrder, 'short_name:'.$sLanguage);