• 點部落
  • 首頁
  • RSS
    • 登入

約翰的程式工作誌

醬寫也可以

2018-09-06

Objective-C - draw line in App with Google map & googleAPI(Direction)

  • 235
  • 0
  • 走到哪寫到哪

Firstable, we need to get a Google API key

then, build a response model for it,

call direction API, get the result in App and do the transfer from JSON to our result model.

finally, use polylines from the result to draw it on mapview, done!

...繼續閱讀 »
  • Objective-C
  • GoogleAPI
  • Direction
  • PolyLine
2018-05-04

Objective-C - 定位同時將地圖對應成手機前方

  • 474
  • 0
  • 走到哪寫到哪

「就是有很多人搞不清楚東西南北…」,老闆一臉平淡的說著

「好吧,按下按鈕之後,讓使用者看著手機知道手機畫面的上方就是他面朝方向…收到」碼農準備出動!

...繼續閱讀 »
  • Objective-C
  • LocationManager
  • CLLocationDirection
  • ClosureBlock
  • 1

系列文章

  • 服務規範
  • 聯絡我們
© 2025 點部落 Ver. 1.0.0.0
電魔小鋪有限公司 製作、維運;登豐數位科技 提供資安檢測