Posts [ 21 to 31 of 31 ]

Re: Integrate google maps: Cartographer v YM4R

The only explanation I can come up with is that you don't get any locations returned from you geosearch. Hence, you don't define the "conditions" variable. Then, you try to pass that nil variable to the :conditions parameter and it does not work. Are you getting any location back from your geosearch?

Re: Integrate google maps: Cartographer v YM4R

amoo3 wrote:

Also, my console says that @location.id returns 27824910, or some other random number (It should return either 1, 2 or both). Thats why I get 0 results, but why does it return that?

That seems really strange, indeed. I take it you do not have 27824910th row in your table? What do you get as output when you try to access other attributes of that result (like @location.name or so)? Perhaps you can see in the development log what is being returned? Also... make sure it is a single location that is returned and not a collection with only 1 item in it.

Regarding Jo s' problem: I am certain that this is the general internationalisation problem (like Brandon said already). I live in the UK and finding coordinates via the postcode seems not possible. At least not since the recent past if I am right. I have not used any geosearch for a little while, but I think local search maps does get coordinates via the postcode in the UK now. When living in the US all these things seem to be no problem at all. Lucky them