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"
-
Download source code
-
open terminal and type: $ cd /Users/NS/Downloads/MapSample-NewBrank
$ pod install
if cocoapod not available, you should install it: $ sudo gem install cocoapods
-
open file : MapsSample.xcworkspace
-
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
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