swift - How do i calculate the distance from point A to point B in IOS google maps SDK? -


my goal calculate distance point point b using ios google maps sdk.

i found out there api call distance matrix api. questions are

  1. do need make http request using alamofire ios use distance matrix api?
  2. do need run own server (etc node.js, django, rails) make request distance matrix?

  3. or in ios google maps sdk?

1 -> yes, need make http request.

2 -> no, not need run own server. need google api key make requests google servers. can api key creating google account , following instructions in below link:- https://developers.google.com/maps/documentation/distance-matrix/start

3 -> not need integrate full ios google sdk if need perform 1 of these tasks sdk. can hit api following instructions below doc distance matrix api doc:- https://developers.google.com/maps/documentation/distance-matrix/intro?hl=en#requestparameters


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -