Skip to content

Provide an option property to provide custom circumferences in address.nearbyGPSCoordinate #878

@Shinigami92

Description

@Shinigami92

Clear and concise description of the problem

Currently address.nearbyGPSCoordinate is hardly based on earth, but we can change that simply by provide the possibility to provide a custom circumference given by the user.

// TODO @Shinigami92 2022-04-26: Provide an option property to provide custom circumferences.
const kmPerDegree = 40_000 / 360; // in km/°

Suggested solution

nearbyGPSCoordinate(
  coordinate?: [latitude: number, longitude: number],
  options: {
    radius: number = 10,
    isMetric: boolean = false
    circumference: number = 40_000
  }
)

Alternative

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: featureRequest for new featurem: locationSomething is referring to the location modulep: 1-normalNothing urgents: waiting for user interestWaiting for more users interested in this feature

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions