Comment 9 for bug 1230153

Revision history for this message
Martin Borho (martin-borho) wrote : Re: Return more fine-grained territorial divisions for city search results

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