Page MenuHomePhabricator

Region code returned by Geocode API is missing country code.
Closed, InvalidPublic

Description

Example: GB-BNE returned as BNE

Page: https://en.wikipedia.org/wiki/Top_Field_and_Cozens_Grove

Contains: {{coord| 51.7416| -0.03164 |type:landmark_region:GB-BNE|display=title}}

Links sucessfully to Geohack https://tools.wmflabs.org/geohack/geohack.php?pagename=Top_Field_and_Cozens_Grove&params=51.7416_N_-0.03164_E_type:landmark_region:GB-BNE

But Geocode API : https://en.wikipedia.org/w/api.php?action=query&list=geosearch&gslimit=1&gsradius=10&gsprop=region&gscoord=51.7416|-0.03164&format=json

returns:

[{"pageid":45421328,"ns":0,"title":"Top Field and Cozens Grove","lat":51.7416,"lon":-0.03164,"dist":0,"primary":"","region":"BNE"}]

Event Timeline

Rich_Farmbrough raised the priority of this task from to Needs Triage.
Rich_Farmbrough updated the task description. (Show Details)
Rich_Farmbrough added a project: GeoData.
Rich_Farmbrough added a subscriber: Rich_Farmbrough.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptJan 17 2016, 2:44 PM
Rich_Farmbrough renamed this task from Region code returned by to Region code returned by Geocode API is missing country code..Jan 17 2016, 2:45 PM
Rich_Farmbrough set Security to None.
MaxSem closed this task as Invalid.Jan 19 2016, 9:30 PM
MaxSem claimed this task.
MaxSem added a subscriber: MaxSem.