Coder Social home page Coder Social logo

amitdhawan / iosgooglemapsdirections Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 62.63 MB

The project is an example app for iOS to populate google map with placemarks, waypoints and draw polyline joining the waypoints. The placemark info like latitude, longitude, address etc are hosted on a gist file on github.It also shows how a marker can move animatedly on the polyline.

License: MIT License

Swift 53.29% Ruby 0.08% Objective-C 44.37% C 0.06% Shell 2.21%
google-maps-api google-maps polyline gms marker google google-direction-api google-maps-services

iosgooglemapsdirections's Introduction

GoogleMapsDirections

The project is an example to populate google map with placemarks, waypoints and draw polyline joining the waypoints. The placemark info like latitude, longitude, address etc are hosted on a gist file on github.

Settings for Google Console

In order to integrate the google api services like maps, directions etc. you need to have a google account and enable the api services on google console.

Follow steps below to set up google console
  • Go to Google Console and sign in/ sign up.

  • Create a project

  • Select the project created and got to Dashboard -> Enable APIS AND services

  • Enable services named Google Maps Directions API, Google Maps SDK for iOS and Google Maps Embed API.

  • Create an API key from the Credentials section in the left menu.

  • Make sure you add restrictions to your api key to be used through your iOS app only.

Third party libraries used in project

Steps to run the project

  • Make sure cocopods is installed on your mac.Follow link Cocoapods if not installed.

  • Go to the project directory in Terminal and run command pod update. This step is optional to get the latest google and Moya networking library versions.

  • Open the file Locations.xcworkspace in Locations folder using Xcode.

  • Run the project in Xcode.̨

  • Add the API-KEY you got from google console to kGMapsAPIKey in constants.swift file.

Demo

Demo

Any suggestions are welcome, if you like the project don't forget to add a star on this repo :-)

iosgooglemapsdirections's People

Contributors

amitdhawan avatar

Stargazers

 avatar

Watchers

 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.