/MapSample

Primary LanguageObjective-C

MapSample

Please get new key api from google map api (https://developers.google.com/maps/ios/) and open AppDelegate.h change

define GOOGLE_API_KEY @"AIzaSyBG5Gc-wMw_rEMgL7HUGDEmnUL6QNfzY90"

  1. Download source code

  2. open terminal and type: $ cd /Users/NS/Downloads/MapSample-NewBrank

    $ pod install

    if cocoapod not available, you should install it: $ sudo gem install cocoapods

  3. open file : MapsSample.xcworkspace

  4. Build source


Với chức năng drag điểm, thì long touch (chạm vào điểm đó khoảng 1-2 giây) vào điểm đó và di chuyển đến điểm cần


ref:
https://developers.google.com/maps/
https://cocoapods.org

Thank you.

Vấn đề về Router (Google Direction api)

IOS Client............................My Server.........................Google Direction API
|-------------- GetDirection------->|.........................................|
|....................................................|----------getDirection --->|
|....................................................|<----- array coordinates--|
|<------- [(lat,long),....]-------------|
|
|--------
|..........|
|......(DRAW LINE to MAP)
|..........|
|<-------
DONE