faker icon indicating copy to clipboard operation
faker copied to clipboard

Add an accuracy option to the latitude and longitude of an address

Open tomtwinkle opened this issue 1 year ago • 2 comments

The current latitude and longitude generation logic generates values with a maximum precision of 15 float places

Example:

  • latitude -13.170896530151367
  • longitude -128.38621520996094

This is larger than the actual latitude and longitude accuracy returned by GoogleMaps GeocodeAPI, etc., and the generated values cannot be stored with accurate accuracy when mapped to json or stored in a database such as MySQL.

Example:

  • latitude -13.17089653
  • longitude -128.38621521

Therefore, we propose to change it so that the accuracy can be specified as an optional argument.

tomtwinkle avatar Nov 01 '23 04:11 tomtwinkle