Questions tagged [geocomplete]

Geocomplete is an advanced jQuery plugin that wraps the Google Maps API's Geocoding and Places Autocomplete services

Geocomplete is an advanced jQuery plugin that wraps the Google Maps API's Geocoding and Places Autocomplete services. You simply provide an input that lets you search for locations with a nice autocomplete dropdown.


Documentation :

54 questions
1
vote
2 answers

extracting location_type from geocomplete (JQuery)

I'm trying to use the jquery library geocomplete to autocomplete a google address, and write to some hidden fields variables like the long, lat, location_type. It works for lat,lng which get written out, but I'm pulling my hairs to get the location…
Massagran
  • 1,781
  • 1
  • 20
  • 29
0
votes
1 answer

How do I investigate an exception in Rails?

I'm really new to rails and this is my first project. Can you help me to understand how to investigate the error? I wrote a search function using ransack and geocode to display objects in database based on their location. I got an exception…
BrumBrum
  • 35
  • 1
  • 6
0
votes
1 answer

Search function error if search term is too long Unsupported argument type: 0 (Integer)

My search form works great except if the search terms are too long, I dont know why this happens. Im using ransack for search. I got this for example: Started GET…
BrumBrum
  • 35
  • 1
  • 6
0
votes
0 answers

ArgumentError (Unsupported argument type: 0 (Integer)):

My search form looks for an object in the database based on the address field. Everything works fine if i search only for the city name, for example Milan, but the search breaks if a select the complete google maps address suggested via maps…
user13825492
0
votes
1 answer

Geocomplete cities without country information in gecomplete

am using Google Geocomplete to auto suggest my visitors when typing in citie It works well, but however it suggests country next to the city. For example, if i start to type Chennai, it will suggest Chennai,TamilNadu,India. I need only Chennai,…
0
votes
0 answers

How to reinitialize detailsAttribute onchange country from dropdown?

I am using geocompelete js library to fetch location from google but when i change the country from dropdown list it will showing the previous selected country results so i want to reinitialize the detailsAttribute when i select another country here…
Faisal
  • 21
  • 3
0
votes
1 answer

How can I reduce request quantity to GoogleMaps API with .geocomplete

I have text input with "geocomplete" on my web page. Every keyPress event sends request to GoogleMaps API. I would like to change this behavior in the way that request is sent each 3 character (not each letter) or set delay before request. I tried…
0
votes
0 answers

Geocomplete delay 1 second before we hit google for address complete

I am using Jquery's Geocomplete library. I want to delay for 1 second before we hit on google for address complete. I have written code which will do the delay work: var timeout = null; function doDelayedSearch(val) { if (val.length >= 3) { if…
Sachin Prasad
  • 5,365
  • 12
  • 54
  • 101
0
votes
1 answer

How can I obtain search results in English with Google Place Geocomplete?

My problem is: Place names are written in different ways depending on the Geolocation, i.e. "Majorca" in Spanish is "Mallorca". Is there a way to codify the results of a search so that, if the user types "Mallorca" (in their own language) in the…
0
votes
1 answer

Trying to add geocomplete to a Vue js webpack project

I've added Geocomplete to a Vue project before but not with Webpack. I tried using the npm module, which requires the following in index.html:
David J.
  • 1,753
  • 13
  • 47
  • 96
0
votes
1 answer

Geocomplete not working in Rails 5

I have a problem using geocomplete inside my Rails proyect, basically I want to autofill with a place using geocomplete, however the form refuses to work, I've tried with less complex geocomplete functions but nothing seems to be working…
Bluespheal
  • 123
  • 1
  • 10
0
votes
0 answers

How would I go about using Google's Geocomplete in React Native app?

I'm building a practice app using React Native and I'm curious to know how Google's Geocomplete works. I have the TextInput bar set up already along with everything else. All I need is for this to work. How should I start this? How would I use…
bojack
  • 73
  • 1
  • 7
0
votes
1 answer

Exception in setTimeout callback: ReferenceError: google is not defined

I think I have littered Stack Overflow with this same question over and over again. I have been trying to setup Geocomplete to work with my Meteor js app. This same code runs very perfectly well on non Meteor apps, but it's just proving stubborn on…
ken4ward
  • 2,246
  • 5
  • 49
  • 89
0
votes
2 answers

Using geocomplete in Meteor App

Please I quickly need a fix to this. I have been trying to add geocomplete to my Meteor js app but keeps getting errors. I have installed geocomplete via NPM into the Meteor app. How do I use it from there? Or is there any other Meteor package that…
ken4ward
  • 2,246
  • 5
  • 49
  • 89
0
votes
2 answers

Ruby on Rails: Google is not defined after render :new

I'm using geocomplete to enter an address field of a #create form. Google map apis are loaded in the head.