필드 · Nearby GPS Coordinate
필드 · Nearby GPS Coordinate · location.nearbyGPSCoordinate. 생성 메서드 · 예시
location.nearbyGPSCoordinate
생성 설정
데이터를 생성하면 결과가 표시됩니다.
매개변수 & 예시
Generates a random GPS coordinate within the specified radius from the given coordinate.
location.nearbyGPSCoordinate(options?: { origin?, radius?, isMetric? })- options
- The options for generating a GPS coordinate.
- options.origin
- The original coordinate to get a new coordinate close to. If no coordinate is given, a random one will be chosen.
- options.radius
- The maximum distance from the given coordinate to the new coordinate. Defaults to 10.
- options.isMetric
- If true assume the radius to be in kilometers. If false for miles. Defaults to false.
예시
[51.48290948789801,-0.12967356253568596]테스트 환경에서 합성 데이터를 사용하세요.