|
1 | | -# ☀️ Solar Potential demo |
| 1 | +[](https://github.com/googlemaps-samples/js-solar-potential/actions/workflows/build.yml) |
| 2 | +[](https://github.com/googlemaps-samples/js-solar-potential/actions/workflows/tests.yml) |
| 3 | + |
| 4 | + |
| 5 | +[][license] |
| 6 | +[](https://stackoverflow.com/questions/tagged/google-maps) |
| 7 | +[][Discord server] |
2 | 8 |
|
3 | | -> _This is not an officially supported Google product._ |
| 9 | +# ☀️ Solar Potential demo |
4 | 10 |
|
5 | | -The [Solar API](https://developers.google.com/maps/documentation/solar/overview) |
6 | | -offers many benefits to solar marketplace websites, solar installers, and solar SaaS designers. |
| 11 | +## Description |
7 | 12 |
|
8 | | -This is a demo app that showcases and displays the information from the Solar API into a map. |
| 13 | +This repository provides a sample app demonstrating use of the **[Solar API]**. The Solar API offers many benefits to solar marketplace websites, solar installers, and solar SaaS designers. |
9 | 14 |
|
10 | | -## Before you begin |
| 15 | +The demo app showcases and displays the information from the Solar API on a map. |
11 | 16 |
|
12 | | -You need a Google Cloud project with a billing account and the Maps JavaScript API and Solar API enabled. |
| 17 | +## Requirements |
13 | 18 |
|
14 | | -To learn more, see [Set up in Cloud Console](https://developers.google.com/maps/documentation/javascript/cloud-setup). |
| 19 | +To run the samples, you will need: |
15 | 20 |
|
16 | | -Additionally, you need a development environment with [Node.js](https://nodejs.org/en) installed. |
| 21 | +- To [sign up with Google Maps Platform] |
| 22 | +- A Google Maps Platform [project] with the **Maps JavaScript and Solar APIs** enabled |
| 23 | +- An [API key] associated with the project above |
| 24 | +- Current version of Node.js and NPM |
17 | 25 |
|
18 | 26 | ## Google Maps API key |
19 | 27 |
|
20 | | -This app requires a Google Maps API key to work, follow the [Use API Keys](https://developers.google.com/maps/documentation/javascript/get-api-key) guide to create a new one. |
21 | | - |
22 | 28 | Once you have your API key, update the [`.env`](.env) file with your key. |
23 | 29 |
|
24 | 30 | ```sh |
25 | | -VITE_GOOGLE_MAPS_API_KEY="My Google Maps API key" |
| 31 | +VITE_GOOGLE_MAPS_API_KEY="YOUR_API_KEY" |
26 | 32 | ``` |
27 | 33 |
|
28 | 34 | ## Running the app |
@@ -89,3 +95,38 @@ To fix any lint issues, use `npm run format` to automatically format all the cod |
89 | 95 | - [Tailwind](https://tailwindcss.com): CSS framework for design and styling. |
90 | 96 | - [ESLint](https://eslint.org): Statically analyze code to quickly find problems. |
91 | 97 | - [Prettier](https://prettier.io): Opinionated code formatter. |
| 98 | + |
| 99 | +## Contributing |
| 100 | + |
| 101 | +Contributions are welcome and encouraged! If you'd like to contribute, send us a [pull request] and refer to our [code of conduct] and [contributing guide]. |
| 102 | + |
| 103 | +## Terms of Service |
| 104 | + |
| 105 | +This sample uses Google Maps Platform services. Use of Google Maps Platform services through this sample is subject to the Google Maps Platform [Terms of Service]. |
| 106 | + |
| 107 | +This sample is not a Google Maps Platform Core Service. Therefore, the Google Maps Platform Terms of Service (e.g. Technical Support Services, Service Level Agreements, and Deprecation Policy) do not apply to the code in this sample. |
| 108 | + |
| 109 | +## Support |
| 110 | + |
| 111 | +This sample is offered via an open source [license]. It is not governed by the Google Maps Platform Support [Technical Support Services Guidelines], the [SLA], or the [Deprecation Policy]. However, any Google Maps Platform services used by the sample remain subject to the Google Maps Platform Terms of Service. |
| 112 | + |
| 113 | +If you find a bug, or have a feature request, please [file an issue] on GitHub. If you would like to get answers to technical questions from other Google Maps Platform developers, ask through one of our [developer community channels]. If you'd like to contribute, please check the [contributing guide]. |
| 114 | + |
| 115 | +You can also discuss this sample on our [Discord server]. |
| 116 | + |
| 117 | +[Solar API]: https://developers.google.com/maps/documentation/solar |
| 118 | +[API key]: https://developers.google.com/maps/documentation/solar/get-api-key |
| 119 | + |
| 120 | +[code of conduct]: ?tab=coc-ov-file#readme |
| 121 | +[contributing guide]: CONTRIBUTING |
| 122 | +[Deprecation Policy]: https://cloud.google.com/maps-platform/terms |
| 123 | +[developer community channels]: https://developers.google.com/maps/developer-community |
| 124 | +[Discord server]: https://discord.gg/hYsWbmk |
| 125 | +[file an issue]: https://github.com/googlemaps-samples/js-solar-potential/issues/new/choose |
| 126 | +[license]: LICENSE |
| 127 | +[pull request]: https://github.com/googlemaps-samples/js-solar-potential/compare |
| 128 | +[project]: https://developers.google.com/maps/documentation/solar/cloud-setup#enabling-apis |
| 129 | +[Sign up with Google Maps Platform]: https://console.cloud.google.com/google/maps-apis/start |
| 130 | +[SLA]: https://cloud.google.com/maps-platform/terms/sla |
| 131 | +[Technical Support Services Guidelines]: https://cloud.google.com/maps-platform/terms/tssg |
| 132 | +[Terms of Service]: https://cloud.google.com/maps-platform/terms |
0 commit comments