I have a very weired problem with maps: When I search maps.google.com for 'rue du sapin, la marsa, tunisie' it finds it and works as expected.
Now I'm using the Api and I configured it this way
private static final String MAPS_REQUEST_URL = "http://maps.googleapis.com/maps/api/geocode/json?sensor=false&language=FR&components=country:TN&address=";
When I request this url with 'rue du sapin, la marsa, tunisie' it returns Rue du Sapin, Carthago, Tunisie
I tried to play with the region, language, country parameters but nothing makes it work: it seams Google is translating la marsa to cartahago (in its internal version: which is geographically somehow correct, since la marsa is near carthago.
But nobody in Tunisia will call La marsa: carthago it's non sense.
So the question is: why does the web client use the good terms and the Api not?
Checking with chrome developer, (on the network tab), I have this request that is executed. I don't know how to translate it to the other api's url
curl 'https://maps.google.com/maps/suggest?q=rue+du+sapin,+la+mars&cp=21&hl=en&gl=&v=2&clid=1&json=a&ll=34.768691,10.008545&spn=5.955003,16.907959&vpsrc=6&authuser=0&auth=526fd0392GzY4pXSd2dS4DPzdNUGxkJ-kLI&src=1,2&num=5&numps=2&callback=_xdc_._1fhndbld0j' -H ':host: maps.google.com' -H 'accept-encoding: gzip,deflate,sdch' -H 'accept-language: en-US,en;q=0.8,fr;q=0.6,cs;q=0.4,it;q=0.2,ar;q=0.2' -H 'user-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36' -H ':path: /maps/suggest?q=rue+du+sapin,+la+mars&cp=21&hl=en&gl=&v=2&clid=1&json=a&ll=34.768691,10.008545&spn=5.955003,16.907959&vpsrc=6&authuser=0&auth=526fd0392GzY4pXSd2dS4DPzdNUGxkJ-kLI&src=1,2&num=5&numps=2&callback=_xdc_._1fhndbld0j' -H 'accept: */*' -H ':version: HTTP/1.1' -H 'referer: https://maps.google.com/' -H 'cookie: SS=(...)' -H ':scheme: https' -H 'x-chrome-variations: CIO2yQEIhrbJAQiltskBCKm2yQEIxLbJAQiehsoBCNeHygEIlorKAQ==' -H ':method: GET' --compressed
It seams this answer is related to my problem (even though from far away) Google Map APIs : UK specific results
Thanks in advance for every answer