Issue with the Geocomplete script and Locality

I have tried to put example and tested script which detects all fields like:
99 Hollywood Freeway, Los Angeles, CA, United States
But when I use other country it will not be detected Town or City.
How to manage this as it seems Locality is not detected.

<!DOCTYPE html>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="styles.css" />
    <style type="text/css" media="screen">
      .map_canvas { float: left; }
      form { width: 300px; float: left; }
      fieldset { width: 320px; margin-top: 20px}
      fieldset label { display: block; margin: 0.5em 0 0em; }
      fieldset input { width: 95%; }

    <div class="map_canvas"></div>

      <input id="geocomplete" type="text" placeholder="Type in an address" value="Empire State Bldg" />
      <input id="find" type="button" value="find" />


        <input name="name" type="text" value="">

        <label>POI Name</label>
        <input name="point_of_interest" type="text" value="">

        <input name="lat" type="text" value="">

        <input name="lng" type="text" value="">

        <input name="location" type="text" value="">

        <label>Location Type</label>
        <input name="location_type" type="text" value="">

        <label>Formatted Address</label>
        <input name="formatted_address" type="text" value="">

        <input name="bounds" type="text" value="">

        <input name="viewport" type="text" value="">

        <input name="route" type="text" value="">

        <label>Street Number</label>
        <input name="street_number" type="text" value="">

        <label>Postal Code</label>
        <input name="postal_code" type="text" value="">

        <input name="locality" type="text" value="">

        <label>Sub Locality</label>
        <input name="sublocality" type="text" value="">

        <input name="country" type="text" value="">

        <label>Country Code</label>
        <input name="country_short" type="text" value="">

        <input name="administrative_area_level_1" type="text" value="">

        <label>Place ID</label>
        <input name="place_id" type="text" value="">

        <input name="id" type="text" value="">

        <input name="reference" type="text" value="">

        <input name="url" type="text" value="">

        <input name="website" type="text" value="">

    <script src=";libraries=places"></script>
    <script src=""></script>

    <script src="../jquery.geocomplete.js"></script>

          map: ".map_canvas",
          details: "form",
          types: ["geocode", "establishment"],



Is this an issue with the Google map API as some locality do not transform into City.

When I do a search for “Cathedral Square, New Zealand” it correctly shows information with the locality being Christchurch.

Do you have any failed searches that we can use to help troubleshoot the problem?

Thank you for your time. Check please example: 2a Titova cesta, Slovenia
It should be quoted Maribor as specific Locality or city.

But if you put Titova 2a, Sanski Most it will be Locality.

Maybe there is an issue that many options with the same name can not be the correct record.

Go to and search there for Titova 2a, Sanski

You will find that it can’t be found there either.

I have done query Titova 2a, Sanski Most, Bosnia and Herzegovina
inside GEOcomplete and it will show Locality.

It seems missing Locality for some cities:
Titova ulica 2a will show RADEČE inside Geocomplete but not Locality just postal code:1433

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.