Get full address details based on current location's latitude and longitude in Flutter

前端 未结 4 836
别跟我提以往
别跟我提以往 2021-01-12 17:39

I have used the location plugin in the flutter, I can get the latitude and longitude only. How to get the full ad

4条回答
  •  有刺的猬
    2021-01-12 18:27

    You'll need to use a "reverse geocoding" service, such as Google's API: https://developers.google.com/maps/documentation/geocoding/start. There are others out there as well... just google for "geocoding".

    Update: apparently there's a local API as well. See: https://pub.dartlang.org/packages/geocoder

提交回复
热议问题