It's the 15th anniversary of Google Maps Platform - Check out the latest news and announcements

Google.Maps.TileLoading.ICountryProvider

Interface for classes that provide the user's country.

Summary

Tests that can't depend directly on Unity should provide a fake implementation of this interface instead of subclassing CountryProvider.

Inheritance

Direct Known Subclasses:Google.Maps.CountryProvider

Public functions

GetCountry()
string
Gets the country code (in ISO 3166-1 alpha-2 format) for the user's country.

Public functions

GetCountry

string GetCountry()

Gets the country code (in ISO 3166-1 alpha-2 format) for the user's country.

Caution: When this method returns null, or an empty string, or CountryProvider.DefaultCountryCode, then the SDK makes no assumptions about the user's location. This can lead to poorly localized or missing names.