github.com/StackExchange/dnscontrol/v4@v4.11.0/documentation/language-reference/domain-modifiers/LOC_BUILDER_DMM_STR.md (about) 1 --- 2 name: LOC_BUILDER_DMM_STR 3 parameters: 4 - label 5 - str 6 - alt 7 - ttl 8 parameters_object: true 9 parameter_types: 10 label: string? 11 str: string 12 alt: number? 13 ttl: Duration? 14 --- 15 16 `LOC_BUILDER_DMM({})` actually takes an object with the following properties: 17 18 - label (string, optional, defaults to `@`) 19 - str (string) 20 - alt (float32, optional) 21 - ttl (optional) 22 23 A helper to build [`LOC`](LOC.md) records. Supply three parameters instead of 12. 24 25 Internally assumes some defaults for [`LOC`](LOC.md) records. 26 27 28 Accepts a string with decimal minutes (DMM) coordinates in the form: 25.24°S 153.15°E 29 30 Note that the following are acceptable forms (symbols differ): 31 * `25.24°S 153.15°E` 32 * `25.24 S 153.15 E` 33 * `25.24° S 153.15° E` 34 * `25.24S 153.15E` 35 36 {% code title="dnsconfig.js" %} 37 ```javascript 38 D("example.com", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER), 39 LOC_BUILDER_STR({ 40 label: "tasmania", 41 str: "42°S 147°E", 42 alt: 3, 43 }), 44 END); 45 ``` 46 {% endcode %} 47 48 49 Part of the series: 50 * [`LOC()`](LOC.md) - build a `LOC` by supplying all 12 parameters 51 * [`LOC_BUILDER_DD({})`](LOC_BUILDER_DD.md) - accepts cartesian x, y 52 * [`LOC_BUILDER_DMS_STR({})`](LOC_BUILDER_DMS_STR.md) - accepts DMS 33°51′31″S 151°12′51″E 53 * [`LOC_BUILDER_DMM_STR({})`](LOC_BUILDER_DMM_STR.md) - accepts DMM 25.24°S 153.15°E 54 * [`LOC_BUILDER_STR({})`](LOC_BUILDER_STR.md) - tries the coordinate string in all `LOC_BUILDER_DM*_STR()` functions until one works