Property talk:P613
Documentation
grid location reference from the Ordnance Survey National Grid reference system used in Great Britain
Description | A grid location reference from the Ordnance Survey National Grid reference system used in Great Britain, explained here Ordnance Survey National Grid. | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Represents | Ordnance Survey National Grid (Q1967305) | ||||||||||||
Data type | String | ||||||||||||
Template parameter | Is used in some infoboxes, for example: Bodiam Castle. | ||||||||||||
Domain | According to this template:
places in Great Britain
According to statements in the property:
When possible, data should only be stored as statementsgeographic location (Q2221906), architectural structure (Q811979) or geographical feature (Q618123) | ||||||||||||
Allowed values | [A-Z]{2}\s?[0-9]{1,5}\s?[0-9]{1,5} | ||||||||||||
Example | Bodiam Castle (Q639208) → TQ7855025649 Church of St Peter, Charney Bassett (Q17529165) → SU3810294427 | ||||||||||||
Source | Ordnance Survey maps are the original sources (note: this information should be moved to a property statement; use property source website for the property (P1896)) | ||||||||||||
Formatter URL | http://nearby.org.uk/coord.cgi?p=$1 | ||||||||||||
Robot and gadget jobs | DeltaBot does the following jobs: | ||||||||||||
Tracking: usage | Category:Pages using Wikidata property P613 (Q113579767) | ||||||||||||
Related to country | United Kingdom (Q145) (See 329 others) | ||||||||||||
See also | Irish Grid Reference (P4091) | ||||||||||||
Lists |
| ||||||||||||
Proposal discussion | Proposal discussion | ||||||||||||
Current uses |
| ||||||||||||
Search for values |
[A-Z]{2}\s?[0-9]{1,5}\s?[0-9]{1,5}
”: value must be formatted using this pattern (PCRE syntax). (Help)List of violations of this constraint: Database reports/Constraint violations/P613#single best value, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P613#Type Q2221906, Q811979, Q618123, SPARQL
This property is being used by: Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.) |
Converter service to forward to Geohack
editThe previous converter service, which turned the grid references into WGS 84 latitudes and longitudes, which it passed on to GeoHack, has been down since the demise of the ToolServer.
The template on en-wiki that used to call the converter, en:Template:Ordnance Survey coordinates, has now been re-written so that the conversion is done on-wiki in a Lua module, en:Module:Ordnance_Survey_coordinates, with the advantage that the template now generates a link that visibly points to GeoHack.
This doesn't help us on Wikidata though, where we need to be able to send the string as part of a URL to a webservice. It shouldn't be too hard to get the old code up and running again (oe to replace it with new code - there are many libraries for this on the net); but it would require somebody to maintain it, and restart it if the server falls over. I have asked at en:Talk:Template:Ordnance Survey coordinates, but no positive response as yet. Jheald (talk) 22:39, 22 November 2019 (UTC)
- As this has been a problem for a long time, with nobody seeming to be able to help, I've swapped out the formatter URL for nearby.org.uk. It's not forwarding to Geohack as desired, but it's a whole lot better than an error page. Lewis Hulbert (talk) 15:23, 19 May 2020 (UTC)
Assigning grid references to buildings
editSaltwood Castle (Q402419) has a warning because as a castle (Q23413) its not a geographic location (Q2221906). I suggest this restriction is relaxed to include architectural structure (Q811979) to include buildings, dams etc, which clearly do have grid references. Vicarage (talk) 13:28, 15 August 2023 (UTC)