You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-31Lines changed: 4 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,18 +135,11 @@ You can provide your credentials using any of the following methods:
135
135
- Credentials file
136
136
137
137
#### Default credentials
138
+
Place the credentials file into
138
139
139
-
- Place the credentials file into:
140
-
For Linux/MacOS: $HOME/.here/credentials.properties
141
-
For Windows: %USERPROFILE%\.here\credentials.properties
140
+
For Linux/MacOS: `$HOME/.here/credentials.properties`
142
141
143
-
##### code snippet to initantiate LS object:
144
-
```
145
-
# credentials will be picked up from credentials.properties file placed at default location.
146
-
from here_location_services import LS
147
-
148
-
ls = LS()
149
-
```
142
+
For Windows: `%USERPROFILE%\.here\credentials.properties`
150
143
151
144
#### Environment Variables
152
145
@@ -158,31 +151,11 @@ HERE_ACCESS_KEY_ID
158
151
HERE_ACCESS_KEY_SECRET
159
152
HERE_TOKEN_ENDPOINT_URL
160
153
```
161
-
##### code snippet to initantiate LS object:
162
-
```
163
-
from here_location_services import LS
164
-
from here_location_services.platform.credentials import PlatformCredentials
165
-
166
-
167
-
credentials = PlatformCredentials.from_env()
168
-
169
-
ls = LS(platfrom_credentials=credentials)
170
-
```
171
154
172
155
#### Credentials File
173
156
174
157
You can specify any credentials file as an alternative to that found in `~/.here/credentials.properties`. An error is generated if there is no file present at the path, or if the file is not properly formatted.
175
-
##### code snippet to initantiate LS object:
176
-
177
-
```
178
-
from here_location_services import LS
179
-
from here_location_services.platform.credentials import PlatformCredentials
Copy file name to clipboardExpand all lines: docs/source/prerequisites.rst
+3-28Lines changed: 3 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,10 @@ Prerequisites
3
3
4
4
Before you install the ``xyzspaces`` package make sure you meet the following prerequisites:
5
5
6
+
* A Python installation, 3.7+ recommended, with the ``pip`` or ``conda`` command available to install dependencies.
7
+
6
8
Data Hub
7
9
--------
8
-
* A Python installation, 3.7+ recommended, with the ``pip`` or ``conda`` command available to install dependencies.
9
10
* A HERE developer account, free and available under `HERE Developer Portal`_.
10
11
* An XYZ API access token from your XYZ Hub server or the `XYZ portal`_ (see also its `Getting Started`_ section) in an environment variable named XYZ_TOKEN which you can set like this (with a valid value, of course)::
11
12
@@ -18,7 +19,6 @@ Data Hub
18
19
19
20
Interactive Map Layer
20
21
---------------------
21
-
* A Python installation, 3.7+ recommended, with the ``pip`` or ``conda`` command available to install dependencies.
22
22
23
23
* To interact with Interactive Map Layers you will need an account on the HERE Platform. To get more details on the HERE Platform account please check our documentation `Get a HERE account <https://developer.here.com/documentation/identity-access-management/dev_guide/topics/obtain-user-credentials.html>`_.
24
24
@@ -56,12 +56,6 @@ Default credentials
56
56
57
57
%USERPROFILE%\.here\credentials.properties
58
58
59
-
code snippet to initantiate LS object::
60
-
61
-
# credentials will be picked up from credentials.properties file placed at default location.
62
-
from here_location_services import LS
63
-
64
-
ls = LS()
65
59
66
60
Environment Variables
67
61
~~~~~~~~~~~~~~~~~~~~~~
@@ -73,27 +67,8 @@ You can override default credentials by assigning values to the following enviro
73
67
HERE_ACCESS_KEY_SECRET
74
68
HERE_TOKEN_ENDPOINT_URL
75
69
76
-
code snippet to initantiate LS object::
77
-
78
-
from here_location_services import LS
79
-
from here_location_services.platform.credentials import PlatformCredentials
80
-
81
-
82
-
credentials = PlatformCredentials.from_env()
83
-
84
-
ls = LS(platfrom_credentials=credentials)
85
70
86
71
Credentials File
87
72
~~~~~~~~~~~~~~~~
88
-
You can specify any credentials file as an alternative to that found in `~/.here/credentials.properties`. An error is generated if there is no file present at the path, or if the file is not properly formatted.
89
-
code snippet to initantiate LS object::
90
-
91
-
from here_location_services import LS
92
-
from here_location_services.platform.credentials import PlatformCredentials
93
-
94
-
95
-
credentials = PlatformCredentials.from_credentials_file("<Path to file>")
96
-
97
-
ls = LS(platfrom_credentials=credentials)
98
-
73
+
You can specify any credentials file as an alternative to that found in ``~/.here/credentials.properties``. An error is generated if there is no file present at the path, or if the file is not properly formatted.
0 commit comments