Search code examples
swiftgoogle-mapsgeolocationmapkitxcode8

Swift: Speed limit for a particular location on MapKit or Google Maps?


I just want please a way to know the speed limit in the touched location on the map (MapKit or Google Maps) in Swift.


Solution

  • The Google Maps Roads API provides the speed limit for a given road segment. A warning about data fidelity:

    The accuracy of speed limit data returned by the Google Maps Roads API cannot be guaranteed. The speed limit data provided is not real-time, and may be estimated, inaccurate, incomplete, and/or outdated.

    The bad news is that you need a Google Maps APIs Premium Plan to use it.

    Please checkout the links above for further details.