GithubHelp home page GithubHelp logo

haimingxu679 / maps-sdk-for-ios-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlemaps-samples/maps-sdk-for-ios-samples

0.0 0.0 0.0 1.37 MB

Samples for the Google Maps SDK for iOS

Home Page: https://developers.google.com/maps/documentation/ios-sdk/

License: Apache License 2.0

Objective-C 54.66% Ruby 0.29% Swift 44.85% C 0.15% Shell 0.06%

maps-sdk-for-ios-samples's Introduction

GitHub contributors Apache-2.0

Google Maps SDK for iOS and Google Places API for iOS sample code

This repository contains sample code for use with the Google Maps SDK for iOS and Google Places API for iOS.

GoogleMaps

The GoogleMaps and GoogleMaps-Swift sub-directory contains the sample code that is downloaded when you run pod try GoogleMaps. To use this project:

$ cd GoogleMaps
$ pod install
$ open GoogleMapsDemos.xcworkspace

For Swift samples:

$ cd GoogleMaps-Swift
$ pod install
$ open GoogleMapsSwiftDemos.xcworkspace

You will need to add an API Key to GoogleMapsDemos/SDKDemoAPIKey.h. Please see the documentation for details on how to get an API Key.

GooglePlaces

The GooglePlaces and GooglePlaces-Swift sub-directory contains the sample code that is downloaded when you run pod try GooglePlaces. To use this project:

$ cd GooglePlaces
$ pod install
$ open GooglePlacesDemos.xcworkspace

For Swift samples:

$ cd GooglePlaces-Swift
$ pod install
$ open GooglePlacesSwiftDemos.xcworkspace

You will need to add an API Key to GooglePlacesDemos/SDKDemoAPIKey.h. Please see the documentation for details on how to get an API Key.

MapsAndPlacesDemo

Description

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. Click this link to watch a video demonstration.

This project was made by Haiming Xu as an internship project from 05/2020 to 08/2020

Requirements

  • If you are emulating this from you Mac, please make sure to set the emulated phone's location (otherwise, location features will not work)
  • A Google Cloud Platform API key with Maps SDK for iOS and Places SDK for iOS enabled
  • A light and dark themed map, which can be created here (make sure you sign in first)
  • 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)

Installation

  1. Make sure you are in the right folder (MapsAndPlacesDemo)
  2. Run pod install
  3. Open MapsAndPlacesDemo.xcworkspace
  4. Drag the data set (dataset.json) into the Xcode file explorer (left pane)

Tutorials

The tutorials sub-directory contains sample code that accompanies tutorials in the developer documentation, such as Adding a Map with a Marker, and more. Follow the tutorials for a quick guide to using the SDK.

Snippets

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

Support

NOTE: We are not accepting external contributions at this time.

If you find a bug or have a feature request related to these samples, please file an issue.

If you find a bug or have a feature request related to one of the SDKs, you can file an issue on either the Google Maps SDK for iOS Issue Tracker.or the Places SDK for iOS Issue Tracker.

You can also discover additional support services for the Google Maps Platform, including developer communities, technical guidance, and expert support at the Google Maps Platform support resources page.

Thanks!

maps-sdk-for-ios-samples's People

Contributors

arriolac avatar domesticmouse avatar jpoehnelt avatar willum070 avatar sarahmaddox avatar googlemaps-bot avatar haimingxu679 avatar amuramoto avatar jenperson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.