google-mapsgoogle-maps-api-3jquery-pluginsautocompletegeocomplete

jQuery Geocomplete Plugin Autocomplete Landmark


Try "San Jose Convention Center" over here - http://ubilabs.github.io/geocomplete/examples/map.html

It won't work.

Try the same here - https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete

It will work.

Anyone know how to get something like this working with the jquery plugin?


Solution

  • Set the types-option to ['geocode','establishment']

    The default for the geocomplete-plugin is ['geocode'], so it will return only results with the type geocode.

    The places-autocomplete-example uses no types-parameter per default, so it will not filter the results by type.