Module:Ordnance Survey coordinates/doc

Usage

Converts a OS grid ref to a lat/long hyperlink to geohack.

{{#invoke:Ordnance Survey coordinates|main|SK135733}} ← Two-letter code interpreted as OS grid ref in Great Britain
{{#invoke:Ordnance Survey coordinates|main|O169318}} ← One-letter code interpreted as Irish OS grid ref
{{#invoke:Ordnance Survey coordinates|main|439668_1175316}} ← Two digit strings interpreted as easting/northing in meters in Great Britain
{{#invoke:Ordnance Survey coordinates|main|i88888_99999}} ← String starting with i is easting/northing in meters in Ireland
{{#invoke:Ordnance Survey coordinates|main|SK135733|Miller's Dale}} ← Second argument is used as link text
{{#invoke:Ordnance Survey coordinates|main|SK135733_scale:25000_region:GB-DBY}} ← extra underscored parameters passed to geohack
  • The oscoord function returns the link wrapped in a span.
  • The |rawurl= parameter returns the simple URL, not a link.
  • The |direct= parameter returns a direct link to an OSmap, rather than a link to the geohack page
  • Template that wraps main is available at {{Ordnance Survey url}}.
  • For other template wrapping, see Template:Gbmapping/doc

Also converts from lat/long back to OS grid ref:

{{#invoke:Ordnance Survey coordinates|WGS2OSGB|53.256538|-1.799102}} → SK1350073300
{{#invoke:Ordnance Survey coordinates|LL2OS|53.256538|-1.799102}}SK1350073300
{{#invoke:Ordnance Survey coordinates|LL2OS|53.256538|-1.799102|scale:25000}}SK1350073300

License

Tracking categories


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.