Skip to content

Commit dafe844

Browse files
authored
chore: update README (#1211)
1 parent e5bc8f7 commit dafe844

File tree

2 files changed

+99
-36
lines changed

2 files changed

+99
-36
lines changed

CONTRIBUTING.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# How to Contribute
2+
3+
We'd love to accept your patches and contributions to this project. There are
4+
just a few small guidelines you need to follow.
5+
6+
## Contributor License Agreement
7+
8+
Contributions to this project must be accompanied by a Contributor License
9+
Agreement. You (or your employer) retain the copyright to your contribution;
10+
this simply gives us permission to use and redistribute your contributions as
11+
part of the project. Head over to <https://cla.developers.google.com/> to see
12+
your current agreements on file or to sign a new one.
13+
14+
You generally only need to submit a CLA once, so if you've already submitted one
15+
(even if it was for a different project), you probably don't need to do it
16+
again.
17+
18+
## Code reviews
19+
20+
All submissions, including submissions by project members, require review. We
21+
use GitHub pull requests for this purpose. Consult
22+
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
23+
information on using pull requests.
24+
25+
## Community Guidelines
26+
27+
This project follows
28+
[Google's Open Source Community Guidelines](https://opensource.google/conduct/).

README.md

+71-36
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@
1111
This open-source library contains utilities that are useful for a wide
1212
range of applications using the [Google Maps SDK for Android][android-site].
1313

14-
- **Marker clustering** — handles the display of a large number of points
1514
- **Marker animation** - animates a marker from one position to another
16-
- **Heat maps** — display a large number of points as a heat map
17-
- **IconGenerator** — display text on your Markers
18-
- **Poly decoding and encoding** — compact encoding for paths,
15+
- **Marker clustering** — handles the display of a large number of points
16+
- **Marker icons** — display text on your Markers
17+
- **Heatmaps** — display a large number of points as a heat map
18+
- **Import KML** — displays KML data on the map
19+
- **Import GeoJSON** — displays and styles GeoJSON data on the map
20+
- **Polyline encoding and decoding** — compact encoding for paths,
1921
interoperability with Maps API web services
2022
- **Spherical geometry** — for example: computeDistance, computeHeading,
2123
computeArea
22-
- **KML** — displays KML data
23-
- **GeoJSON** — displays and styles GeoJSON data
24-
- **StreetView Utility** — checks if a given StreetView location exists
24+
- **Street View metadata** — checks if a Street View panorama exists at a given location
2525

26-
<p align="center"><img width="90%" vspace="20" src="https://cloud.githubusercontent.com/assets/1950036/6629704/f57bc6d8-c908-11e4-815a-0d909fe02f99.gif"></p>
26+
You can also find Kotlin extensions for this library in [Maps Android KTX][android-maps-ktx].
2727

28-
You can also find Kotlin extensions for this library [here][android-maps-ktx].
28+
<p align="center"><img width="90%" vspace="20" src="https://cloud.githubusercontent.com/assets/1950036/6629704/f57bc6d8-c908-11e4-815a-0d909fe02f99.gif"></p>
2929

3030
## Requirements
3131

@@ -53,31 +53,78 @@ dependencies {
5353

5454
<img src="https://developers.google.com/maps/documentation/android-sdk/images/utility-markercluster.png" width="150" align=right>
5555

56-
This repository includes a [demo app](demo) that illustrates the use of this library.
56+
This repository includes a [sample app](demo) that illustrates the use of this library.
5757

5858
To run the demo app, you'll have to:
5959

6060
1. [Get a Maps API key](https://developers.google.com/maps/documentation/android-sdk/get-api-key)
61-
1. Open the file `local.properties` in the root project (this file should *NOT* be under version control to protect your API key)
61+
1. Add a file `local.properties` in the root project (this file should *NOT* be under version control to protect your API key)
6262
1. Add a single line to `local.properties` that looks like `MAPS_API_KEY=YOUR_API_KEY`, where `YOUR_API_KEY` is the API key you obtained in the first step
6363
1. Build and run the `debug` variant for the Maps SDK for Android version
6464

6565
## Documentation
6666

67-
See the generated [reference docs][javadoc] for a full list of classes and their methods.
67+
See the generated javadoc [reference documentation][javadoc] for a full list of classes and their methods.
68+
69+
## Usage
6870

69-
Written guides for using the utilities are published in
71+
Full guides for using the utilities are published in
7072
[Google Maps Platform documentation][devsite-guide].
7173

7274
<details>
73-
<summary><strong>Migration Guide from v0.x to 1.0</strong></summary>
75+
<summary>Marker utilities</summary>
7476

75-
### Migration Guide from v0.x to 1.0
77+
### Marker utilities
7678

77-
Improvements made in version [1.0.0](https://github.com/googlemaps/android-maps-utils/releases/tag/1.0.0) of the library to support multiple layers on the map caused breaking changes to versions prior to it. These changes also modify behaviors that are documented in the [Maps SDK for Android Maps documentation](https://developers.google.com/maps/documentation/android-sdk/intro) site. This section outlines all those changes and how you can migrate to use this library since version 1.0.0.
79+
- Marker animation [source](https://github.com/googlemaps/android-maps-utils/blob/main/library/src/main/java/com/google/maps/android/ui/AnimationUtil.java), [sample code](https://github.com/googlemaps/android-maps-utils/blob/main/demo/src/main/java/com/google/maps/android/utils/demo/AnimationUtilDemoActivity.java)
80+
- Marker clustering [source](https://github.com/googlemaps/android-maps-utils/tree/main/library/src/main/java/com/google/maps/android/clustering), [guide](https://developers.google.com/maps/documentation/android-sdk/utility/marker-clustering)
81+
- Marker icons [source](https://github.com/googlemaps/android-maps-utils/blob/main/library/src/main/java/com/google/maps/android/ui/IconGenerator.java), [sample code](https://github.com/googlemaps/android-maps-utils/blob/main/demo/src/main/java/com/google/maps/android/utils/demo/IconGeneratorDemoActivity.java)
7882

83+
</details>
84+
85+
<details>
86+
<summary>Data visualization utilities</summary>
87+
88+
### Data visualization utilities
89+
90+
- Display heat maps [source](https://github.com/googlemaps/android-maps-utils/tree/main/library/src/main/java/com/google/maps/android/heatmaps), [guide](https://developers.google.com/maps/documentation/android-sdk/utility/heatmap)
91+
- Import GeoJSON [source](https://github.com/googlemaps/android-maps-utils/tree/main/library/src/main/java/com/google/maps/android/data/geojson), [guide](https://developers.google.com/maps/documentation/android-sdk/utility/geojson)
92+
- Import KML [source](https://github.com/googlemaps/android-maps-utils/tree/main/library/src/main/java/com/google/maps/android/data/kml), [guide](https://developers.google.com/maps/documentation/android-sdk/utility/kml)
93+
94+
</details>
95+
96+
<details>
97+
<summary>Polyline and spherical geometry utilities</summary>
98+
99+
### Additional utilities
100+
101+
- Polyline encoding and decoding [source](https://github.com/googlemaps/android-maps-utils/blob/main/library/src/main/java/com/google/maps/android/PolyUtil.java), [encoding sample](https://github.com/googlemaps/android-maps-utils/blob/main/demo/src/main/java/com/google/maps/android/utils/demo/PolySimplifyDemoActivity.java), [decoding sample](https://github.com/googlemaps/android-maps-utils/blob/main/demo/src/main/java/com/google/maps/android/utils/demo/PolyDecodeDemoActivity.java)
102+
- Spherical geometry [source](https://github.com/googlemaps/android-maps-utils/blob/main/library/src/main/java/com/google/maps/android/SphericalUtil.java), [compute distance sample](https://github.com/googlemaps/android-maps-utils/blob/main/demo/src/main/java/com/google/maps/android/utils/demo/DistanceDemoActivity.java)
103+
104+
</details>
105+
106+
<details>
107+
<summary>Street View metadata utility</summary>
108+
109+
### Street View metadata utility
110+
111+
The StreetViewUtil class provides functionality to check whether a location is supported in StreetView. You can avoid errors when [adding a Street View panorama](https://developers.google.com/maps/documentation/android-sdk/streetview) to an Android app by calling this metadata utility and only adding a Street View panorama if the response is `OK`.
112+
113+
```kotlin
114+
StreetViewUtils.fetchStreetViewData(LatLng(8.1425918, 11.5386121), BuildConfig.MAPS_API_KEY)
115+
```
116+
117+
`fetchStreetViewData` will return `NOT_FOUND`, `OK` or `ZERO_RESULTS`, depending on the response.
118+
119+
</details>
120+
121+
<details>
122+
<summary>Migration Guide from v0.x to 1.0</summary>
123+
124+
### Migrating from v0.x to 1.0
125+
126+
Improvements made in version [1.0.0](https://github.com/googlemaps/android-maps-utils/releases/tag/1.0.0) of the library to support multiple layers on the map caused breaking changes to versions prior to it. These changes also modify behaviors that are documented in the [Maps SDK for Android Maps documentation](https://developers.google.com/maps/documentation/android-sdk/intro) site. This section outlines all those changes and how you can migrate to use this library since version 1.0.0.
79127

80-
## Usage
81128

82129
### Adding Click Events
83130

@@ -290,36 +337,24 @@ _Old_
290337

291338
</details>
292339

293-
## Usage guide
294-
295-
The full documentation can be found here [Google Maps Platform documentation][devsite-guide].
296-
297-
For a quick snippet on the StreetViewUtil class, keep reading.
298-
299-
The StreetViewUtil class provides functionality to check whether a location is supported in StreetView. To call it, use the following snippet:
340+
## Contributing
300341

301-
```kotlin
302-
StreetViewUtils.fetchStreetViewData(LatLng(8.1425918, 11.5386121), BuildConfig.MAPS_API_KEY)
303-
```
304-
305-
`fetchStreetViewData` will return `NOT_FOUND`, `OK` or `ZERO_RESULTS`, depending on the response.
342+
Contributions are welcome and encouraged! See the [contributing guide](CONTRIBUTING.md) for more info.
306343

307344
## Support
308345

309-
Encounter an issue while using this library?
346+
This library is offered via an open source [license](LICENSE). It is not governed by the Google Maps Platform [Technical Support Services Guidelines](https://cloud.google.com/maps-platform/terms/tssg?utm_source=github&utm_medium=documentation&utm_campaign=&utm_content=web_components), the [SLA](https://cloud.google.com/maps-platform/terms/sla?utm_source=github&utm_medium=documentation&utm_campaign=&utm_content=web_components), or the [Deprecation Policy](https://cloud.google.com/maps-platform/terms?utm_source=github&utm_medium=documentation&utm_campaign=&utm_content=web_components) (however, any Google Maps Platform services used by the library remain subject to the Google Maps Platform Terms of Service).
310347

311-
If you find a bug or have a feature request, please [file an issue].
312-
Or, if you'd like to contribute, send us a [pull request] and refer to our [code of conduct].
348+
This library adheres to [semantic versioning](https://semver.org/) to indicate when backwards-incompatible changes are introduced.
313349

314-
You can also discuss this library on our [Discord server].
350+
If you find a bug, or have a feature request, please [file an issue] on GitHub.
315351

316-
For more information, check out the detailed guide on the
317-
[Google Developers site][devsite-guide].
352+
If you would like to get answers to technical questions from other Google Maps Platform developers, ask through one of our [developer community channels](https://developers.google.com/maps/developer-community?utm_source=github&utm_medium=documentation&utm_campaign=&utm_content=web_components) including the Google Maps Platform [Discord server].
318353

319354
[file an issue]: https://github.com/googlemaps/android-maps-utils/issues/new/choose
320355
[pull request]: https://github.com/googlemaps/android-maps-utils/compare
321356
[code of conduct]: CODE_OF_CONDUCT.md
322-
[Discord channel]: https://discord.gg/hYsWbmk
357+
[Discord server]: https://discord.gg/hYsWbmk
323358
[android-site]: https://developers.google.com/maps/documentation/android-sdk
324359
[devsite-guide]: https://developers.google.com/maps/documentation/android-sdk/utility
325360
[javadoc]: https://www.javadoc.io/doc/com.google.maps.android/android-maps-utils/latest/index.html

0 commit comments

Comments
 (0)