Topic: GoogleAPI geocoding language parameter

Hello,
How can I set up parameters for the googleAPIQuery ?

I'm looking to set the language of the geocoding params, but I don't understand where exactly ?

Because if not specified google uses the language of the request domain where the script is launched, i.e if i launch from unity the request will be in english, and from my browser it's in another language.

And as i'm trying to restrict some regions I get errors in my administrative areas requests (my region is called "Corsica" or "Corse" in function of the domain language and so on..)
I've added the wanted language in the onlinemap.instance.language of course, but It doesn't affect the google geocoding requests.

Re: GoogleAPI geocoding language parameter

Hello.

Example:

OnlineMapsGoogleGeocoding.Find(new OnlineMapsGoogleGeocoding.GeocodingParams("Corsica")
{
    // The language in which to return results. 
    // https://developers.google.com/maps/faq#languagesupport
    language = "en",

    // The region code, specified as a ccTLD ("top-level domain") two-character value.
    // This parameter will only influence, not fully restrict, results from the geocoder.
    // https://developers.google.com/maps/documentation/geocoding/intro#RegionCodes
    region = "eu"
}).OnComplete += OnComplete;
Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: GoogleAPI geocoding language parameter

thank you very much,
understood now smile