Login About Gallery
Random location at given distance
COMMENT
My answer to https://www.reddit.com/r/shortcuts/comments/r5xjqv/can_you_help_me_out_with_shortcuts_math/ — @atnbueno (2021-12-01) - The comma replacements are because it’s the decimal separator in Spanish, and “Calculate Expression” requires periods - The two initial variables depend on the current location of the user
NUMBER
83
VARIABLES
Set variable
1° of latitude in km
to
Número
NUMBER
111
VARIABLES
Set variable
1° of longitude in km
to
Número
SCRIPTING
Ask
Distance in km?
Input Type
Number
Default Answer
0
MATHS
Random number between
1
and
36000
DOCUMENTS
Show
Centidegrees
in Quick Look
LOCATION
Get current location
DOCUMENTS
Replace
,
with
.
in
1° of latitude in km
/
Centidegrees
*sind(
Ubicación actual
/100)+
Distance in km
Case Sensitive
Regular Expression
calculateexpression Under Construction
DOCUMENTS
Replace
,
with
.
in
Resultado del cálculo
Case Sensitive
Regular Expression
VARIABLES
Set variable
Target Latitude
to
Texto actualizado
DOCUMENTS
Replace
,
with
.
in
1° of longitude in km
/
Centidegrees
*cosd(
Ubicación actual
/100)+
Distance in km
Case Sensitive
Regular Expression
calculateexpression Under Construction
DOCUMENTS
Replace
,
with
.
in
Resultado del cálculo
Case Sensitive
Regular Expression
VARIABLES
Set variable
Target Longitude
to
Texto actualizado
TEXT
Target Longitude
,
Target Latitude
MAPS
Show
Target
in Maps

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 2 years ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0