for example:
var city, country;
geocoder.geocode(
{'address': city + ', ' + country}, function(results, status) {}
);
the problem is when the var city
is wrong and is a random streetname (in a random city)
he puts this location in results, but I only want cities...
Is there a way to use geocode()
only for searching a city?