22 lines
911 B
Plaintext
Executable File
22 lines
911 B
Plaintext
Executable File
-------------------------------------
|
|
-- Enabling location based feature --
|
|
-------------------------------------
|
|
|
|
Pre-requisites :
|
|
1. Map Box API key:
|
|
- For the API key, Sign in/sign up to 'https://www.mapbox.com/signin/'.
|
|
- On the dashboard, in the 'Access tokens' section, you can create a token or use the default public token.
|
|
- This token is the Map box API key.
|
|
2. IPStack API key:
|
|
- For the API key, Sign in/sign up to 'https://ipstack.com/login'.
|
|
- On the dashboard, in the 'Your API Access Key' section, you can find the IPStack API key.
|
|
|
|
|
|
Steps to enable the feature :
|
|
1. Edit the 'SampleAppConfig.properties' file in '<SAMPLE_APP_DIR>/config' folder.
|
|
2. To enable Location based feature change the value of 'location.based.features.enable' key to 'true'
|
|
3. Enter the values for the following keys
|
|
a. mapbox.api.key=<MAP_BOX_API_KEY>
|
|
b. ip.stack.api.key=<IPSTACK_API_KEY>
|
|
4. Restart Tomcat.
|