フィールド · 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]

テスト環境で合成データを使用してください。

関連ジェネレーター

シナリオを見る