@googlemaps/solar 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -99
- package/build/protos/protos.d.ts +4 -518
- package/build/protos/protos.js +51 -1724
- package/build/protos/protos.json +22 -193
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
|
|
2
|
-
[//]: # "
|
|
2
|
+
[//]: # "The comments you see below are used to generate those parts of the template in later states."
|
|
3
3
|
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
|
|
4
4
|
|
|
5
|
-
# [Solar API:
|
|
6
|
-
|
|
7
|
-
[](https://cloud.google.com/terms/launch-stages)
|
|
8
|
-
[](https://www.npmjs.org/package/@googlemaps/solar)
|
|
9
|
-
|
|
5
|
+
# [Solar API: Nodejs Client][homepage]
|
|
10
6
|
|
|
7
|
+
This library is considered to be in **preview**. This means it is still a
|
|
8
|
+
work-in-progress and under active development. Any release is subject to
|
|
9
|
+
backwards-incompatible changes at any time.
|
|
11
10
|
|
|
11
|
+
[](https://www.npmjs.org/package/@googlemaps/solar)
|
|
12
12
|
|
|
13
13
|
Solar API client for Node.js
|
|
14
14
|
|
|
15
|
+
[//]: # "partials.introduction"
|
|
15
16
|
|
|
16
17
|
A comprehensive list of changes in each version may be found in
|
|
17
|
-
[the CHANGELOG]
|
|
18
|
+
[the CHANGELOG][homepage_changelog].
|
|
18
19
|
|
|
19
|
-
* [Solar API
|
|
20
|
-
* [Solar API Documentation]
|
|
21
|
-
* [github.com/googleapis/google-cloud-node/packages/google-maps-solar](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-solar)
|
|
20
|
+
* [Solar API Nodejs Client API Reference](https://cloud.google.com/nodejs/docs/reference/solar/latest)
|
|
21
|
+
* [Solar API Documentation](https://developers.google.com/maps/documentation/solar/overview)
|
|
22
22
|
|
|
23
23
|
Read more about the client libraries for Cloud APIs, including the older
|
|
24
24
|
Google APIs Client Libraries, in [Client Libraries Explained][explained].
|
|
@@ -27,18 +27,15 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
|
|
|
27
27
|
|
|
28
28
|
**Table of contents:**
|
|
29
29
|
|
|
30
|
-
|
|
31
30
|
* [Quickstart](#quickstart)
|
|
32
31
|
* [Before you begin](#before-you-begin)
|
|
33
32
|
* [Installing the client library](#installing-the-client-library)
|
|
34
|
-
|
|
35
|
-
* [Samples](#samples)
|
|
33
|
+
|
|
36
34
|
* [Versioning](#versioning)
|
|
37
35
|
* [Contributing](#contributing)
|
|
38
36
|
* [License](#license)
|
|
39
37
|
|
|
40
38
|
## Quickstart
|
|
41
|
-
|
|
42
39
|
### Before you begin
|
|
43
40
|
|
|
44
41
|
1. [Select or create a Cloud Platform project][projects].
|
|
@@ -46,87 +43,45 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
|
|
|
46
43
|
1. [Enable the Solar API API][enable_api].
|
|
47
44
|
1. [Set up authentication][auth] so you can access the
|
|
48
45
|
API from your local workstation.
|
|
49
|
-
|
|
50
46
|
### Installing the client library
|
|
51
47
|
|
|
52
48
|
```bash
|
|
53
49
|
npm install @googlemaps/solar
|
|
54
50
|
```
|
|
55
51
|
|
|
52
|
+
## Terms of Service
|
|
56
53
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* This snippet has been automatically generated and should be regarded as a code template only.
|
|
62
|
-
* It will require modifications to work.
|
|
63
|
-
* It may require correct/in-range values for request initialization.
|
|
64
|
-
* TODO(developer): Uncomment these variables before running the sample.
|
|
65
|
-
*/
|
|
66
|
-
/**
|
|
67
|
-
* Required. The longitude and latitude from which the API looks for the
|
|
68
|
-
* nearest known building.
|
|
69
|
-
*/
|
|
70
|
-
// const location = {
|
|
71
|
-
// latitude: 37.7900161,
|
|
72
|
-
// longitude: -122.3900146,
|
|
73
|
-
// };
|
|
74
|
-
/**
|
|
75
|
-
* Optional. The minimum quality level allowed in the results. No result with
|
|
76
|
-
* lower quality than this will be returned. Not specifying this is
|
|
77
|
-
* equivalent to restricting to HIGH quality only.
|
|
78
|
-
*/
|
|
79
|
-
// const requiredQuality = {}
|
|
80
|
-
/**
|
|
81
|
-
* Optional. Whether to require exact quality of the imagery.
|
|
82
|
-
* If set to false, the `required_quality` field is interpreted as the minimum
|
|
83
|
-
* required quality, such that HIGH quality imagery may be returned when
|
|
84
|
-
* `required_quality` is set to MEDIUM. If set to true, `required_quality`
|
|
85
|
-
* is interpreted as the exact required quality and only `MEDIUM` quality
|
|
86
|
-
* imagery is returned if `required_quality` is set to `MEDIUM`.
|
|
87
|
-
*/
|
|
88
|
-
// const exactQualityRequired = true
|
|
89
|
-
|
|
90
|
-
// Imports the Solar library
|
|
91
|
-
const {SolarClient} = require('@googlemaps/solar').v1;
|
|
92
|
-
|
|
93
|
-
// Instantiates a client
|
|
94
|
-
const solarClient = new SolarClient();
|
|
95
|
-
|
|
96
|
-
async function callFindClosestBuildingInsights() {
|
|
97
|
-
// Construct request
|
|
98
|
-
const request = {
|
|
99
|
-
location,
|
|
100
|
-
requiredQuality,
|
|
101
|
-
exactQualityRequired,
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
// Run request
|
|
105
|
-
const response = await solarClient.findClosestBuildingInsights(request);
|
|
106
|
-
console.log(response);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
callFindClosestBuildingInsights();
|
|
110
|
-
|
|
111
|
-
```
|
|
54
|
+
`@googlemaps/solar` uses Google Maps Platform services. Use of Google
|
|
55
|
+
Maps Platform services through this library is subject to the
|
|
56
|
+
[Google Maps Platform Terms of Service][gmp-tos].
|
|
112
57
|
|
|
58
|
+
This library is not a Google Maps Platform Core Service.
|
|
59
|
+
Therefore, the Google Maps Platform Terms of Service (e.g., Technical
|
|
60
|
+
Support Services, Service Level Agreements, and Deprecation Policy)
|
|
61
|
+
do not apply to this library.
|
|
113
62
|
|
|
63
|
+
### European Economic Area (EEA) developers
|
|
114
64
|
|
|
115
|
-
|
|
65
|
+
If your billing address is in the European Economic Area, effective on
|
|
66
|
+
8 July 2025, the [Google Maps Platform EEA Terms of Service][gmp-tos-eea]
|
|
67
|
+
will apply to your use of the Services. Functionality varies by region.
|
|
68
|
+
[Learn more][gmp-tos-eea-faq].
|
|
116
69
|
|
|
117
|
-
|
|
70
|
+
[gmp-tos]: https://cloud.google.com/maps-platform/terms
|
|
71
|
+
[gmp-tos-eea]: https://cloud.google.com/terms/maps-platform/eea
|
|
72
|
+
[gmp-tos-eea-faq]: https://developers.google.com/maps/comms/eea/faq
|
|
118
73
|
|
|
119
|
-
|
|
120
|
-
| --------------------------- | --------------------------------- | ------ |
|
|
121
|
-
| Solar.find_closest_building_insights | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-solar/samples/generated/v1/solar.find_closest_building_insights.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-solar/samples/generated/v1/solar.find_closest_building_insights.js,packages/google-maps-solar/samples/README.md) |
|
|
122
|
-
| Solar.get_data_layers | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-solar/samples/generated/v1/solar.get_data_layers.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-solar/samples/generated/v1/solar.get_data_layers.js,packages/google-maps-solar/samples/README.md) |
|
|
123
|
-
| Solar.get_geo_tiff | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-solar/samples/generated/v1/solar.get_geo_tiff.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-solar/samples/generated/v1/solar.get_geo_tiff.js,packages/google-maps-solar/samples/README.md) |
|
|
124
|
-
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-solar/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-solar/samples/quickstart.js,packages/google-maps-solar/samples/README.md) |
|
|
74
|
+
## Samples
|
|
125
75
|
|
|
76
|
+
Samples are in the [`samples/`][homepage_samples] directory. Each sample's `README.md` has instructions for running its sample.
|
|
126
77
|
|
|
78
|
+
| Sample | Source Code |
|
|
79
|
+
| --------------------------- | --------------------------------- |
|
|
80
|
+
| maps | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-solar/samples/generated/v1/snippet_metadata_google.maps.solar.v1.json) |
|
|
81
|
+
| find closest building insights | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-solar/samples/generated/v1/solar.find_closest_building_insights.js) |
|
|
82
|
+
| get data layers | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-solar/samples/generated/v1/solar.get_data_layers.js) |
|
|
83
|
+
| get geo tiff | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-solar/samples/generated/v1/solar.get_geo_tiff.js) |
|
|
127
84
|
|
|
128
|
-
The [Solar API Node.js Client API Reference][client-docs] documentation
|
|
129
|
-
also contains samples.
|
|
130
85
|
|
|
131
86
|
## Supported Node.js Versions
|
|
132
87
|
|
|
@@ -153,41 +108,29 @@ for versions compatible with Node.js 8.
|
|
|
153
108
|
|
|
154
109
|
This library follows [Semantic Versioning](http://semver.org/).
|
|
155
110
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
This library is considered to be in **preview**. This means it is still a
|
|
163
|
-
work-in-progress and under active development. Any release is subject to
|
|
164
|
-
backwards-incompatible changes at any time.
|
|
165
|
-
|
|
166
|
-
|
|
167
111
|
More Information: [Google Cloud Platform Launch Stages][launch_stages]
|
|
168
112
|
|
|
169
113
|
[launch_stages]: https://cloud.google.com/terms/launch-stages
|
|
170
114
|
|
|
171
115
|
## Contributing
|
|
172
116
|
|
|
173
|
-
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
|
|
117
|
+
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-solar/CONTRIBUTING.md).
|
|
174
118
|
|
|
175
|
-
Please note that this `README.md
|
|
119
|
+
Please note that this `README.md`
|
|
176
120
|
and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
|
|
177
|
-
are generated from a central template.
|
|
178
|
-
to its templates in
|
|
179
|
-
[directory](https://github.com/googleapis/synthtool).
|
|
121
|
+
are generated from a central template.
|
|
180
122
|
|
|
181
123
|
## License
|
|
182
124
|
|
|
183
125
|
Apache Version 2.0
|
|
184
126
|
|
|
185
|
-
See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
|
|
127
|
+
See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-solar/LICENSE)
|
|
186
128
|
|
|
187
|
-
[client-docs]: https://cloud.google.com/nodejs/docs/reference/solar/latest
|
|
188
|
-
[product-docs]: https://developers.google.com/maps/documentation/solar/overview
|
|
189
129
|
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
|
|
190
130
|
[projects]: https://console.cloud.google.com/project
|
|
191
131
|
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
|
|
192
132
|
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=solar.googleapis.com
|
|
193
133
|
[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
|
|
134
|
+
[homepage_samples]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-solar/samples
|
|
135
|
+
[homepage_changelog]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-solar/CHANGELOG.md
|
|
136
|
+
[homepage]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-solar
|