Author
Reply
  • #13316

    https://www.geonames.org/search.html?q=Frederick&country=

    I assume you actually mean https://www.geonames.org/search.html?q=Bowie&country= (not Frankton).

    Yes , that will give an easier to read answer in many cases. But we cannot use search.html directly from kiwitrees. Automated queries have to use the geonames ‘webservice’ through their API rules, including their requirement for a registered password (supplied internally by kiwitrees). So this is the kiwitrees generated URL:
    http://api.geonames.org/searchJSON?name_startsWith=Bowie&lang=en&fCode=CMTY&fCode=ADM4&fCode=PPL&fCode=PPLA&fCode=PPLC&style=FULL&maxRows=10&username=*********

    That gives us a long and complex-looking coded page, from which we can easily extract the town, county, state, country format we require. That is then displayed as per this image:

    bowie

    The other issue we have is that I have set a limit of 10 results. Testing indicated this allowed for a response in reasonable time, but at slight expense of perhaps missing some key entries. This is best avoided by you simply typing ahead a little further.

    Note also that kiwitrees’ URL for geonames starts with http rather than https. If we want to use the slightly safer, and perhaps(?) better https webservice they require each user to register (with charge-back approval for the cost of searching) and then store your own password in kiwitrees. I could modify the code to do that, but doubt any / many users would want to do that.

    Nigel
    My personal kiwitrees site is www.our-families.info