I'm in the progress of implementing the location search in the weather app with geonames.org and I'm ended up with the following search parameters, which are serving in my view the best results:
style=full featureClass=P // see => http://www.geonames.org/export/codes.html name_startsWith=term
Examples:
with namestarts_with and feature class: http://api.geonames.org/search?style=full&username=uweatherdev&name_startsWith=Hamburg&maxRows=25&featureClass=P
with default fulltext search and feature class: http://api.geonames.org/search?style=full&username=uweatherdev&q=Hamburg&maxRows=25&featureClass=P
without featureClass: http://api.geonames.org/search?style=full&username=uweatherdev&name_startsWith=Hamburg&maxRows=25 (first two are doubles)
About the sparse place in the listitem subtitle: I'm just adding adminName1, adminName2, adminName3 and country if tehy are available.
http://imageshack.us/a/img200/291/m43.png
Text gets cut, but the location is immediately identificable. Also the text would be fully readable in larger screens. So for me this would be ok
I'm in the progress of implementing the location search in the weather app with geonames.org and I'm ended up with the following search parameters, which are serving in my view the best results:
style=full www.geonames. org/export/ codes.html =term
featureClass=P // see => http://
name_startsWith
Examples:
with namestarts_with and feature class: api.geonames. org/search? style=full& username= uweatherdev& name_startsWith =Hamburg& maxRows= 25&featureClass =P
http://
with default fulltext search and feature class: api.geonames. org/search? style=full& username= uweatherdev& q=Hamburg& maxRows= 25&featureClass =P
http://
without featureClass: api.geonames. org/search? style=full& username= uweatherdev& name_startsWith =Hamburg& maxRows= 25 (first two are doubles)
http://
About the sparse place in the listitem subtitle: I'm just adding adminName1, adminName2, adminName3 and country if tehy are available.
http:// imageshack. us/a/img200/ 291/m43. png
Text gets cut, but the location is immediately identificable. Also the text would be fully readable in larger screens. So for me this would be ok