roads-api-samples

Sample Android app demonstrating usage of the GMP Roads API

Github星跟踪图

Google Roads API Sample

About

The Google Maps Roads API identifies the roads a vehicle was traveling along and provides additional metadata about those roads, such as speed limits.
Analytics

This sample demonstrates some advanced usage of the Roads API on Android and is intended to support the Advanced Usage documentation.

The code supporting this article has been provided as a single Android app for illustrative purposes.
In practice you should not distribute your server-side API keys in an Android app as your key cannot
be secured against unauthorised access from a third party. Instead, to secure your keys you should
deploy the API-facing code as a server-side proxy and have your Android app send requests via the
proxy, ensuring requests are authorized.

Building the app

This app requires two keys before it will run, one for the Google Maps API for Android and one for the Roads API.

To obtain a Google Maps API for Android key, follow the instructions in the API's Getting Started guide and add it to the google_maps_key field in app/src/debug/res/values/api_keys.xml.

To obtain a Roads API key, follow the instructions in the API key section of the Roads docs and add it
to the google_maps_web_services_key field in app/src/debug/res/values/api_keys.xml.

Then plug your phone in and run:

./gradlew installDebug

Alternatively, import the source code into Android Studio (File, Import Project) and hit the :arrow_forward: play button.

License

Copyright 2015 Google Inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

主要指标

概览
名称与所有者googlemaps/roads-api-samples
主编程语言Java
编程语言Java (语言数: 1)
平台
许可证Apache License 2.0
所有者活动
创建于2015-03-18 22:59:26
推送于2022-05-10 15:39:18
最后一次提交2022-05-09 15:35:46
发布数0
用户参与
星数116
关注者数34
派生数95
提交数18
已启用问题?
问题数6
打开的问题数0
拉请求数12
打开的拉请求数1
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?