1*55e87721SMatt Gilbride# Google Maps Platform Datasets API Client for Java 2*55e87721SMatt Gilbride 3*55e87721SMatt GilbrideJava idiomatic client for [Maps Platform Datasets API][product-docs]. 4*55e87721SMatt Gilbride 5*55e87721SMatt Gilbride[![Maven][maven-version-image]][maven-version-link] 6*55e87721SMatt Gilbride![Stability][stability-image] 7*55e87721SMatt Gilbride 8*55e87721SMatt Gilbride- [Product Documentation][product-docs] 9*55e87721SMatt Gilbride- [Client Library Documentation][javadocs] 10*55e87721SMatt Gilbride 11*55e87721SMatt Gilbride> Note: This client is a work-in-progress, and may occasionally 12*55e87721SMatt Gilbride> make backwards-incompatible changes. 13*55e87721SMatt Gilbride 14*55e87721SMatt Gilbride 15*55e87721SMatt Gilbride## Quickstart 16*55e87721SMatt Gilbride 17*55e87721SMatt Gilbride 18*55e87721SMatt GilbrideIf you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: 19*55e87721SMatt Gilbride 20*55e87721SMatt Gilbride```xml 21*55e87721SMatt Gilbride<dependencyManagement> 22*55e87721SMatt Gilbride <dependencies> 23*55e87721SMatt Gilbride <dependency> 24*55e87721SMatt Gilbride <groupId>com.google.cloud</groupId> 25*55e87721SMatt Gilbride <artifactId>libraries-bom</artifactId> 26*55e87721SMatt Gilbride <version>26.12.0</version> 27*55e87721SMatt Gilbride <type>pom</type> 28*55e87721SMatt Gilbride <scope>import</scope> 29*55e87721SMatt Gilbride </dependency> 30*55e87721SMatt Gilbride </dependencies> 31*55e87721SMatt Gilbride</dependencyManagement> 32*55e87721SMatt Gilbride 33*55e87721SMatt Gilbride<dependencies> 34*55e87721SMatt Gilbride <dependency> 35*55e87721SMatt Gilbride <groupId>com.google.maps</groupId> 36*55e87721SMatt Gilbride <artifactId>google-maps-mapsplatformdatasets</artifactId> 37*55e87721SMatt Gilbride </dependency> 38*55e87721SMatt Gilbride``` 39*55e87721SMatt Gilbride 40*55e87721SMatt GilbrideIf you are using Maven without the BOM, add this to your dependencies: 41*55e87721SMatt Gilbride 42*55e87721SMatt Gilbride<!-- {x-version-update-start:google-maps-mapsplatformdatasets:released} --> 43*55e87721SMatt Gilbride 44*55e87721SMatt Gilbride```xml 45*55e87721SMatt Gilbride<dependency> 46*55e87721SMatt Gilbride <groupId>com.google.maps</groupId> 47*55e87721SMatt Gilbride <artifactId>google-maps-mapsplatformdatasets</artifactId> 48*55e87721SMatt Gilbride <version>0.6.0</version> 49*55e87721SMatt Gilbride</dependency> 50*55e87721SMatt Gilbride``` 51*55e87721SMatt Gilbride 52*55e87721SMatt GilbrideIf you are using Gradle without BOM, add this to your dependencies: 53*55e87721SMatt Gilbride 54*55e87721SMatt Gilbride```Groovy 55*55e87721SMatt Gilbrideimplementation 'com.google.maps:google-maps-mapsplatformdatasets:0.6.0' 56*55e87721SMatt Gilbride``` 57*55e87721SMatt Gilbride 58*55e87721SMatt GilbrideIf you are using SBT, add this to your dependencies: 59*55e87721SMatt Gilbride 60*55e87721SMatt Gilbride```Scala 61*55e87721SMatt GilbridelibraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.6.0" 62*55e87721SMatt Gilbride``` 63*55e87721SMatt Gilbride<!-- {x-version-update-end} --> 64*55e87721SMatt Gilbride 65*55e87721SMatt Gilbride## Authentication 66*55e87721SMatt Gilbride 67*55e87721SMatt GilbrideSee the [Authentication][authentication] section in the base directory's README. 68*55e87721SMatt Gilbride 69*55e87721SMatt Gilbride## Authorization 70*55e87721SMatt Gilbride 71*55e87721SMatt GilbrideThe client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Maps Platform Datasets API APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Maps Platform Datasets API API calls. 72*55e87721SMatt Gilbride 73*55e87721SMatt Gilbride## Getting Started 74*55e87721SMatt Gilbride 75*55e87721SMatt Gilbride### Prerequisites 76*55e87721SMatt Gilbride 77*55e87721SMatt GilbrideYou will need a [Google Cloud Platform Console][developer-console] project with the Maps Platform Datasets API [API enabled][enable-api]. 78*55e87721SMatt GilbrideYou will need to [enable billing][enable-billing] to use Google Maps Platform Datasets API. 79*55e87721SMatt Gilbride[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by 80*55e87721SMatt Gilbride[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: 81*55e87721SMatt Gilbride`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. 82*55e87721SMatt Gilbride 83*55e87721SMatt Gilbride### Installation and setup 84*55e87721SMatt Gilbride 85*55e87721SMatt GilbrideYou'll need to obtain the `google-maps-mapsplatformdatasets` library. See the [Quickstart](#quickstart) section 86*55e87721SMatt Gilbrideto add `google-maps-mapsplatformdatasets` as a dependency in your code. 87*55e87721SMatt Gilbride 88*55e87721SMatt Gilbride## About Maps Platform Datasets API 89*55e87721SMatt Gilbride 90*55e87721SMatt Gilbride 91*55e87721SMatt Gilbride[Maps Platform Datasets API][product-docs] The Maps Platform Datasets API enables developers to ingest geospatially-tied datasets 92*55e87721SMatt Gilbride that they can use to enrich their experience of Maps Platform solutions (e.g. styling, routing). 93*55e87721SMatt Gilbride 94*55e87721SMatt GilbrideSee the [Maps Platform Datasets API client library docs][javadocs] to learn how to 95*55e87721SMatt Gilbrideuse this Maps Platform Datasets API Client Library. 96*55e87721SMatt Gilbride 97*55e87721SMatt Gilbride 98*55e87721SMatt Gilbride 99*55e87721SMatt Gilbride 100*55e87721SMatt Gilbride 101*55e87721SMatt Gilbride 102*55e87721SMatt Gilbride## Troubleshooting 103*55e87721SMatt Gilbride 104*55e87721SMatt GilbrideTo get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. 105*55e87721SMatt Gilbride 106*55e87721SMatt Gilbride## Transport 107*55e87721SMatt Gilbride 108*55e87721SMatt GilbrideMaps Platform Datasets API uses gRPC for the transport layer. 109*55e87721SMatt Gilbride 110*55e87721SMatt Gilbride## Supported Java Versions 111*55e87721SMatt Gilbride 112*55e87721SMatt GilbrideJava 8 or above is required for using this client. 113*55e87721SMatt Gilbride 114*55e87721SMatt GilbrideGoogle's Java client libraries, 115*55e87721SMatt Gilbride[Google Cloud Client Libraries][cloudlibs] 116*55e87721SMatt Gilbrideand 117*55e87721SMatt Gilbride[Google Cloud API Libraries][apilibs], 118*55e87721SMatt Gilbridefollow the 119*55e87721SMatt Gilbride[Oracle Java SE support roadmap][oracle] 120*55e87721SMatt Gilbride(see the Oracle Java SE Product Releases section). 121*55e87721SMatt Gilbride 122*55e87721SMatt Gilbride### For new development 123*55e87721SMatt Gilbride 124*55e87721SMatt GilbrideIn general, new feature development occurs with support for the lowest Java 125*55e87721SMatt GilbrideLTS version covered by Oracle's Premier Support (which typically lasts 5 years 126*55e87721SMatt Gilbridefrom initial General Availability). If the minimum required JVM for a given 127*55e87721SMatt Gilbridelibrary is changed, it is accompanied by a [semver][semver] major release. 128*55e87721SMatt Gilbride 129*55e87721SMatt GilbrideJava 11 and (in September 2021) Java 17 are the best choices for new 130*55e87721SMatt Gilbridedevelopment. 131*55e87721SMatt Gilbride 132*55e87721SMatt Gilbride### Keeping production systems current 133*55e87721SMatt Gilbride 134*55e87721SMatt GilbrideGoogle tests its client libraries with all current LTS versions covered by 135*55e87721SMatt GilbrideOracle's Extended Support (which typically lasts 8 years from initial 136*55e87721SMatt GilbrideGeneral Availability). 137*55e87721SMatt Gilbride 138*55e87721SMatt Gilbride#### Legacy support 139*55e87721SMatt Gilbride 140*55e87721SMatt GilbrideGoogle's client libraries support legacy versions of Java runtimes with long 141*55e87721SMatt Gilbrideterm stable libraries that don't receive feature updates on a best efforts basis 142*55e87721SMatt Gilbrideas it may not be possible to backport all patches. 143*55e87721SMatt Gilbride 144*55e87721SMatt GilbrideGoogle provides updates on a best efforts basis to apps that continue to use 145*55e87721SMatt GilbrideJava 7, though apps might need to upgrade to current versions of the library 146*55e87721SMatt Gilbridethat supports their JVM. 147*55e87721SMatt Gilbride 148*55e87721SMatt Gilbride#### Where to find specific information 149*55e87721SMatt Gilbride 150*55e87721SMatt GilbrideThe latest versions and the supported Java versions are identified on 151*55e87721SMatt Gilbridethe individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` 152*55e87721SMatt Gilbrideand on [google-cloud-java][g-c-j]. 153*55e87721SMatt Gilbride 154*55e87721SMatt Gilbride## Versioning 155*55e87721SMatt Gilbride 156*55e87721SMatt Gilbride 157*55e87721SMatt GilbrideThis library follows [Semantic Versioning](http://semver.org/). 158*55e87721SMatt Gilbride 159*55e87721SMatt Gilbride 160*55e87721SMatt GilbrideIt is currently in major version zero (``0.y.z``), which means that anything may change at any time 161*55e87721SMatt Gilbrideand the public API should not be considered stable. 162*55e87721SMatt Gilbride 163*55e87721SMatt Gilbride 164*55e87721SMatt Gilbride## Contributing 165*55e87721SMatt Gilbride 166*55e87721SMatt Gilbride 167*55e87721SMatt GilbrideContributions to this library are always welcome and highly encouraged. 168*55e87721SMatt Gilbride 169*55e87721SMatt GilbrideSee [CONTRIBUTING][contributing] for more information how to get started. 170*55e87721SMatt Gilbride 171*55e87721SMatt GilbridePlease note that this project is released with a Contributor Code of Conduct. By participating in 172*55e87721SMatt Gilbridethis project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more 173*55e87721SMatt Gilbrideinformation. 174*55e87721SMatt Gilbride 175*55e87721SMatt Gilbride 176*55e87721SMatt Gilbride## License 177*55e87721SMatt Gilbride 178*55e87721SMatt GilbrideApache 2.0 - See [LICENSE][license] for more information. 179*55e87721SMatt Gilbride 180*55e87721SMatt Gilbride## CI Status 181*55e87721SMatt Gilbride 182*55e87721SMatt GilbrideJava Version | Status 183*55e87721SMatt Gilbride------------ | ------ 184*55e87721SMatt GilbrideJava 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] 185*55e87721SMatt GilbrideJava 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] 186*55e87721SMatt GilbrideJava 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] 187*55e87721SMatt GilbrideJava 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] 188*55e87721SMatt Gilbride 189*55e87721SMatt GilbrideJava is a registered trademark of Oracle and/or its affiliates. 190*55e87721SMatt Gilbride 191*55e87721SMatt Gilbride[product-docs]: https://developers.google.com/maps/documentation 192*55e87721SMatt Gilbride[javadocs]: https://cloud.google.com/java/docs/reference/google-maps-mapsplatformdatasets/latest/overview 193*55e87721SMatt Gilbride[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-maps-mapsplatformdatasets/java7.svg 194*55e87721SMatt Gilbride[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-maps-mapsplatformdatasets/java7.html 195*55e87721SMatt Gilbride[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-maps-mapsplatformdatasets/java8.svg 196*55e87721SMatt Gilbride[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-maps-mapsplatformdatasets/java8.html 197*55e87721SMatt Gilbride[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-maps-mapsplatformdatasets/java8-osx.svg 198*55e87721SMatt Gilbride[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-maps-mapsplatformdatasets/java8-osx.html 199*55e87721SMatt Gilbride[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-maps-mapsplatformdatasets/java8-win.svg 200*55e87721SMatt Gilbride[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-maps-mapsplatformdatasets/java8-win.html 201*55e87721SMatt Gilbride[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-maps-mapsplatformdatasets/java11.svg 202*55e87721SMatt Gilbride[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-maps-mapsplatformdatasets/java11.html 203*55e87721SMatt Gilbride[stability-image]: https://img.shields.io/badge/stability-preview-yellow 204*55e87721SMatt Gilbride[maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-mapsplatformdatasets.svg 205*55e87721SMatt Gilbride[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.3.0 206*55e87721SMatt Gilbride[authentication]: https://github.com/googleapis/google-cloud-java#authentication 207*55e87721SMatt Gilbride[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes 208*55e87721SMatt Gilbride[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles 209*55e87721SMatt Gilbride[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy 210*55e87721SMatt Gilbride[developer-console]: https://console.developers.google.com/ 211*55e87721SMatt Gilbride[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects 212*55e87721SMatt Gilbride[cloud-cli]: https://cloud.google.com/cli 213*55e87721SMatt Gilbride[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md 214*55e87721SMatt Gilbride[contributing]: https://github.com/googleapis/java-maps-mapsplatformdatasets/blob/main/CONTRIBUTING.md 215*55e87721SMatt Gilbride[code-of-conduct]: https://github.com/googleapis/java-maps-mapsplatformdatasets/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct 216*55e87721SMatt Gilbride[license]: https://github.com/googleapis/java-maps-mapsplatformdatasets/blob/main/LICENSE 217*55e87721SMatt Gilbride[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing 218*55e87721SMatt Gilbride[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=mapsplatformdatasets.googleapis.com 219*55e87721SMatt Gilbride[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM 220*55e87721SMatt Gilbride[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png 221*55e87721SMatt Gilbride 222*55e87721SMatt Gilbride[semver]: https://semver.org/ 223*55e87721SMatt Gilbride[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained 224*55e87721SMatt Gilbride[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries 225*55e87721SMatt Gilbride[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html 226*55e87721SMatt Gilbride[g-c-j]: http://github.com/googleapis/google-cloud-java 227