While im zooming my city (Russia, Perm)
i am trying to see direction from one address to another, but it zooms on whole country and shows me directions from other city to another city... but if i add the name of the city in my query it shows me right directions, so how to add name of the city to the script?
Thats why i can't start to use hotspots in my project :unsure
So what? You are going to use directions only for 1 city now?
I think that you are out of luck with that.
If for example the map was showing you 1 address in russia and one in ukraine, then we could use region biasing to set that the preferred results would be russian. But since both results are in russia I can't do anything.
Google map just tries to find the best match - and for some reason the best match is in another city. There is no other way than adding the city name in the query. The Problem with that is that if you add the city name to all query requests then users on your site won't be able to use the directions for anything else.
Btw I don't think that what you try to do is correct. Even if you test it on maps.google.com - if I just enter 2 street names, then google is giving me directions between 2 cities. We cannot expect that it knows which streets you are referring to. That is why I as a user always add the city name to my search.
My site is for one city now, so user gona search (as my friends have tried) without pointing the city name, coz they think it gona search only their city.
maybe ill make a dropdown and something like different sandboxes for different city names (i dont know how it will) but the option to choose the city is important for me.
Also found a problem: when i am choosin an object on map and pressing on direction to that object, Hotspots asks me "From" which point im goin to the object and i am entering my address, so it is just showing me and address from default map point to my address. Not direction to the object from my address (but in the right menu it shows Right points) so i need to press "get direction" again but from the right menu and when it works
how it looks?
i am clickin on hotspot, it pops up, so iam clickin on "direction" and it shows me default city point as point "B" (point A works good) the problem exists only in hotspot pop up, right menu is also workin good.