Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-4153

Patch: LocationIQ City missing

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • Professional Edition
    • Scripts

    Description

      We had problems with Observium/OSM providing different results (correct city or unknown) for the same location string so I switched to LocationIQ.

      I found that now all Cities are Unknown. After running the test_geo.php script with debug mode I found that while LocationIQ returned the city correctly, the result was Unknown so I added more debug and found out that Observium was looking for a town index in the result while the result contained a city index.

      Maybe LocationIQ changed their result set at some point, so I patched it locally and it works now.

       

      So attached is my patch for includes/definitions/geo.inc.php

      Attachments

        Activity

          People

            landy Mike Stupalov
            AiYoriAoshi Benjamin Weik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: