Skip to content

Commit 687665e

Browse files
authored
chore: update README per template (#228)
* chore: update README per template * add CoC
1 parent aef8f9a commit 687665e

File tree

2 files changed

+133
-25
lines changed

2 files changed

+133
-25
lines changed

CODE_OF_CONDUCT.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Google Open Source Community Guidelines
2+
3+
At Google, we recognize and celebrate the creativity and collaboration of open
4+
source contributors and the diversity of skills, experiences, cultures, and
5+
opinions they bring to the projects and communities they participate in.
6+
7+
Every one of Google's open source projects and communities are inclusive
8+
environments, based on treating all individuals respectfully, regardless of
9+
gender identity and expression, sexual orientation, disabilities,
10+
neurodiversity, physical appearance, body size, ethnicity, nationality, race,
11+
age, religion, or similar personal characteristic.
12+
13+
We value diverse opinions, but we value respectful behavior more.
14+
15+
Respectful behavior includes:
16+
17+
* Being considerate, kind, constructive, and helpful.
18+
* Not engaging in demeaning, discriminatory, harassing, hateful, sexualized, or
19+
physically threatening behavior, speech, and imagery.
20+
* Not engaging in unwanted physical contact.
21+
22+
Some Google open source projects [may adopt][] an explicit project code of
23+
conduct, which may have additional detailed expectations for participants. Most
24+
of those projects will use our [modified Contributor Covenant][].
25+
26+
[may adopt]: https://opensource.google/docs/releasing/preparing/#conduct
27+
[modified Contributor Covenant]: https://opensource.google/docs/releasing/template/CODE_OF_CONDUCT/
28+
29+
## Resolve peacefully
30+
31+
We do not believe that all conflict is necessarily bad; healthy debate and
32+
disagreement often yields positive results. However, it is never okay to be
33+
disrespectful.
34+
35+
If you see someone behaving disrespectfully, you are encouraged to address the
36+
behavior directly with those involved. Many issues can be resolved quickly and
37+
easily, and this gives people more control over the outcome of their dispute.
38+
If you are unable to resolve the matter for any reason, or if the behavior is
39+
threatening or harassing, report it. We are dedicated to providing an
40+
environment where participants feel welcome and safe.
41+
42+
## Reporting problems
43+
44+
Some Google open source projects may adopt a project-specific code of conduct.
45+
In those cases, a Google employee will be identified as the Project Steward,
46+
who will receive and handle reports of code of conduct violations. In the event
47+
that a project hasn’t identified a Project Steward, you can report problems by
48+
49+
50+
We will investigate every complaint, but you may not receive a direct response.
51+
We will use our discretion in determining when and how to follow up on reported
52+
incidents, which may range from not taking action to permanent expulsion from
53+
the project and project-sponsored spaces. We will notify the accused of the
54+
report and provide them an opportunity to discuss it before any action is
55+
taken. The identity of the reporter will be omitted from the details of the
56+
report supplied to the accused. In potentially harmful situations, such as
57+
ongoing harassment or threats to anyone's safety, we may take action without
58+
notice.
59+
60+
*This document was adapted from the [IndieWeb Code of Conduct][] and can also
61+
be found at <https://opensource.google/conduct/>.*
62+
63+
[IndieWeb Code of Conduct]: https://indieweb.org/code-of-conduct

README.md

Lines changed: 70 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,34 @@
1-
![GitHub contributors](https://img.shields.io/github/contributors/googlemaps/maps-sdk-for-ios-samples)
2-
![Apache-2.0](https://img.shields.io/badge/license-Apache-blue)
1+
[![Build](https://github.com/googlemaps-samples/maps-sdk-for-ios-samples/actions/workflows/build.yml/badge.svg)](https://github.com/googlemaps-samples/maps-sdk-for-ios-samples/actions/workflows/build.yml)
2+
3+
![Contributors](https://img.shields.io/github/contributors/googlemaps-samples/maps-sdk-for-ios-samples?color=green)
4+
[![License](https://img.shields.io/github/license/googlemaps-samples/maps-sdk-for-ios-samples?color=blue)][license]
5+
[![StackOverflow](https://img.shields.io/stackexchange/stackoverflow/t/google-maps?color=orange&label=google-maps&logo=stackoverflow)](https://stackoverflow.com/questions/tagged/google-maps)
6+
[![Discord](https://img.shields.io/discord/676948200904589322?color=6A7EC2&logo=discord&logoColor=ffffff)][Discord server]
37

48
# Google Maps SDK for iOS, Google Places SDK for iOS, and Google Navigation SDK for iOS sample code
59

6-
This repository contains sample code for use with the Google Maps SDK for iOS, Google Places SDK for iOS and Google Navigation SDK for iOS.
10+
## Description
11+
12+
This repository provides one or more samples demonstrating use of various **iOS SDKs** in the Google Maps Platform.
13+
14+
## Samples in this repo
15+
16+
This repository contains sample code for use with the
17+
18+
- [Google Maps SDK for iOS][ios-sdk]
19+
- [Google Places SDK for iOS](https://developers.google.com/maps/documentation/places/ios-sdk), and
20+
- [Google Navigation SDK for iOS](https://developers.google.com/maps/documentation/navigation/ios-sdk)
21+
22+
## Requirements
23+
24+
To run the samples, you will need:
25+
26+
- To [sign up with Google Maps Platform]
27+
- A Google Maps Platform [project] with the relevant SDK enabled
28+
- An [API key] associated with the project above ... follow the [API key instructions] if you're new to the process
29+
- Swift or Objective-C
30+
- Xcode 15+
31+
- (Deployment target of) iOS 15+
732

833
## GoogleMaps
934

@@ -26,9 +51,7 @@ $ pod install
2651
$ open GoogleMapsSwiftDemos.xcworkspace
2752
```
2853

29-
You will need to add an API Key to `GoogleMapsDemos/SDKDemoAPIKey.h`. Please see the
30-
[documentation](https://developers.google.com/maps/documentation/ios-sdk/start#get-key)
31-
for details on how to get an API Key.
54+
Add your API Key to `GoogleMapsDemos/SDKDemoAPIKey.h`.
3255

3356
## GoogleMaps-SwiftUI
3457

@@ -39,8 +62,6 @@ $ cd GoogleMaps-SwiftUI
3962
$ open GoogleMaps-SwiftUI.xcodeproj
4063
```
4164

42-
You will need to add an API Key to your configuration. Please see the [documentation](https://developers.google.com/maps/documentation/ios-sdk/start#get-key) for details on how to get an API Key.
43-
4465
This project uses Swift Package Manager and requires the [GoogleMaps package](https://github.com/googlemaps/ios-maps-sdk). The sample code demonstrates best practices for integrating Google Maps into SwiftUI-based iOS applications.
4566

4667
## GooglePlaces
@@ -62,9 +83,7 @@ $ pod install
6283
$ open GooglePlacesSwiftDemos.xcworkspace
6384
```
6485

65-
You will need to add an API Key to `GooglePlacesDemos/SDKDemoAPIKey.h`. Please see the
66-
[documentation](https://developers.google.com/places/ios-api/start#get-key)
67-
for details on how to get an API Key.
86+
Add your API Key to `GooglePlacesDemos/SDKDemoAPIKey.h`.
6887

6988
## GoogleNavigation
7089

@@ -85,21 +104,18 @@ $ pod install
85104
$ open GoogleNavigationSwiftDemos.xcworkspace
86105
```
87106

88-
You will need to add an API Key to `GoogleNavigationDemos/SDKDemoAPIKey.h`. Please see the
89-
[documentation](https://developers.google.com/maps/documentation/navigation/ios-sdk/get-api-key)
90-
for details on how to get an API Key.
107+
Add your API Key to `GoogleNavigationDemos/SDKDemoAPIKey.h`.
91108

92109
## MapsAndPlacesDemo
93-
### Description
110+
94111
This demo application looks to bridge some of the features found in the GooglePlaces and GoogleMaps demo applications as well as utilize some of the ways the two API's can work together.
95112
Click this [link](https://www.youtube.com/watch?v=u4Ih8EWqZio) to watch a video demonstration.
96113

97-
__This project was made by Haiming Xu as an internship project from 05/2020 to 08/2020__
98-
### Requirements
99114
- If you are emulating this from you Mac, please make sure to set the emulated phone's location (otherwise, location features will not work)
100115
- A [Google Cloud Platform API key](https://developers.google.com/maps/documentation/ios-sdk/start#get-key) with Maps SDK for iOS and Places SDK for iOS enabled
101116
- A light and dark themed map, which can be created [here](https://console.cloud.google.com/google/maps-apis/client-styles?project=verdant-medium-278819&folder=&organizationId=) (make sure you sign in first)
102117
- If you want a different data set, ensure that it follows the correct formatting (and is also a JSON file) like the one provided (the data set provided can be found in dataset.json)
118+
103119
### Installation
104120
1. Make sure you are in the right folder (MapsAndPlacesDemo)
105121
2. Run `pod install`
@@ -109,23 +125,52 @@ __This project was made by Haiming Xu as an internship project from 05/2020 to 0
109125
## Tutorials
110126

111127
The `tutorials` sub-directory contains sample code that accompanies tutorials in the developer
112-
documentation, such as
128+
documentation, such as
113129
[Adding a Map with a Marker](https://developers.google.com/maps/documentation/ios-sdk/map-with-marker),
114130
and more. Follow the tutorials for a quick guide to using the SDK.
115131

116132
## Snippets
117133

118134
The `snippets` sub-directory contains code snippets that can be found in the developer documentation site.
119135

136+
## Contributing
137+
138+
External contributions are not accepted for this repository. See [contributing guide] for more info.
139+
140+
## Terms of Service
141+
142+
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].
143+
144+
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.
145+
120146
## Support
121147

122-
If you find a bug or have a feature request related to these samples, please [file an issue](https://github.com/googlemaps/maps-sdk-for-ios-samples/issues).
148+
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.
149+
150+
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].
151+
152+
If you find a bug or have a feature request related to one of the SDKs, you can file an issue at their respective pages:
153+
154+
- [Maps SDK for iOS Issue Tracker](https://developers.google.com/maps/documentation/ios-sdk/support#issue-tracker)
155+
- [Places SDK for iOS Issue Tracker](https://developers.google.com/maps/documentation/places/ios-sdk/support#issue-tracker)
156+
- [Navigation SDK for iOS Issue Tracker](https://developers.google.com/maps/documentation/navigation/ios-sdk/support#issue-tracker)
123157

124-
If you find a bug or have a feature request related to one of the SDKs, you can file an issue on either the
125-
[Google Maps SDK for iOS Issue Tracker](https://developers.google.com/maps/documentation/ios-sdk/support#issue-tracker).or the
126-
[Places SDK for iOS Issue Tracker](https://issuetracker.google.com/savedsearches/5050150).
158+
You can also discuss these samples on our [Discord server].
127159

128-
You can also discover additional support services for the Google Maps Platform, including developer communities,
129-
technical guidance, and expert support at the Google Maps Platform [support resources page](https://developers.google.com/maps/support/).
160+
[ios-sdk]: https://developers.google.com/maps/documentation/ios-sdk
161+
[API key]: https://developers.google.com/maps/documentation/ios-sdk/get-api-key
162+
[API key instructions]: https://developers.google.com/maps/documentation/ios-sdk/config#get-key
130163

131-
Thanks!
164+
[code of conduct]: ?tab=coc-ov-file#readme
165+
[contributing guide]: CONTRIBUTING.md
166+
[Deprecation Policy]: https://cloud.google.com/maps-platform/terms
167+
[developer community channels]: https://developers.google.com/maps/developer-community
168+
[Discord server]: https://discord.gg/hYsWbmk
169+
[file an issue]: https://github.com/googlemaps-samples/maps-sdk-for-ios-samples/issues/new/choose
170+
[license]: LICENSE
171+
[pull request]: https://github.com/googlemaps-samples/maps-sdk-for-ios-samples/compare
172+
[project]: https://developers.google.com/maps/documentation/ios-sdk/cloud-setup#enabling-apis
173+
[Sign up with Google Maps Platform]: https://console.cloud.google.com/google/maps-apis/start
174+
[SLA]: https://cloud.google.com/maps-platform/terms/sla
175+
[Technical Support Services Guidelines]: https://cloud.google.com/maps-platform/terms/tssg
176+
[Terms of Service]: https://cloud.google.com/maps-platform/terms

0 commit comments

Comments
 (0)