Autocomplete and Geolookup

  • 1
  • Problem
  • Updated 4 years ago
  • (Edited)
when i use your autocomplete API and i search for "izola slovenija" and I select the right one I get the following result:
{ "name": "Izola, Slovenia", 
"type": "city", 
"c": "SI",
"zmw": "00000.7.14105",
"tz": "Europe/Ljubljana",
"tzs": "CET",
"l": "/q/zmw:00000.7.14105",
"ll": "45.536945 13.661944",
"lat": "45.536945",
"lon": "13.661944"

Than, I ask for weather data through you geolookup like:,13.661944.json

and I get the following result:
"location": {    "type": "INTLCITY",
    "country": "LJ",
    "country_iso3166": "SI",
    "country_name": "Slovenia",
    "state": "",
    "city": "Baredi",
    "tz_short": "CET",
    "tz_long": "Europe/Ljubljana",
    "lat": "45.530000",
    "lon": "13.660000",
    "zip": "00000",
    "magic": "8",
    "wmo": "14105",
    "l": "/q/zmw:00000.8.14105",
    "requesturl": "global/stations/14105.html",

which is not exactly fine with me.. since the user is show the city of Baredi, but was searching for Izola. I know Baredi is close to Izola but my users will be confused with different name.
Similar happens with many different cases, not just Izola.. this is just an example.

Is there a way, I can get exact match from geolookup to what your autocomplete returns??
Would be a great help. Thank you.
Photo of Dev Tsmedia

Dev Tsmedia

  • 2 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1

Be the first to post a reply!