Set Country Regions¶
Source data often contains more information than necessary for your specific map application. For example, an administrative places dataset might cover an entire country, multiple countries, or even the whole world, while you may only need political boundaries for North America or the USA.
To address this, the SDK allows you to specify a region to limit the geographic extent of data that will be tiled and rendered.
Currently, global map tiles are enabled by default for all users to provide a seamless visual experience of our international maps.
While the Search and Routing APIs cover worldwide data, they are enabled by default only for India for all customers. If you wish to use our Search and Routing SDKs and APIs for other regions in your applications, please reach out to our API Support team.
Why restrict access? Limiting the geographic scope reduces the volume of data queried and transferred, which helps lower your API transaction costs and improve processing speed.
Now, what you as a developer need to do is to specify a region in our APIs/SDKs from the list of globally applicable region values and that's it !! See Country List
To set the region, refer to the below code. Default is India ( "IND")
Kotlin¶
MapplsAccountManager.getInstance().region = "KWT"
Java¶
MapplsAccountManager.getInstance().setRegion("KWT");
For any queries and support, please contact:
Email us at apisupport@mappls.com
Support
Need support? contact us!