英国地理定位的电话号码
是否有提供英国电话号码的纬度和经度的服务?
例如:
查询:0141 574 xxx,返回:(55.8659829,-4.2602205) [格拉斯哥市中心]
请允许我强调,我并不是在寻找反向目录查询。我对“当地”更感兴趣,例如通过电话了解天气情况或“最近的披萨店在哪里?”
如果此服务不存在,您关于如何实现它或从哪里获取数据的建议也将非常有用。
我知道 Ofcom 提供了一个包含适合地理定位的地名 [1] 的区号列表,但我对分辨率有疑虑。我认为这在较小的城镇和农村地区是一个特殊问题,因为区号将覆盖较大的地理区域。
第二个例子:
区号:01555,Ofcom:拉纳克
然而:
01555 860xxx 是克罗斯福德(拉纳克以西 4 英里)
01555 77xxxx 是卡鲁克(西北 5 英里)
01555 89xxxx 是 Lesmahagow(西南 5 英里)
01555 840xxx 是 Carnwath(东北 7 英里)
因此 01555 覆盖约 80 平方英里。那不是特别本地化。
[1] Ofcom 区号工具:http:// /www.ofcom.org.uk/consumer/2009/09/telephone-area-codes-tool/
Is there a service that provides latitude and longitude for UK phone numbers?
For example:
Query: 0141 574 xxx, Returns: (55.8659829, -4.2602205) [Glasgow City Centre]
Allow me to stress that I am not looking for a reverse-directory-enquires. I am more interested in 'local area' for things like weather by phone or "Where's my nearest Pizza Shop?"
If this service doesn't exist your suggestions on how to implement it or where to get data from would also be incredibly useful.
I am aware that Ofcom provides a list of area codes with a place name [1] suitable for geolocation, but I have my concerns about resolution. I see this as a particular problem in smaller towns and rural areas where an area code will cover a large geographical area.
Second Example:
Area Code: 01555, Ofcom: Lanark
However:
01555 860xxx is Crossford (4 miles W of Lanark)
01555 77xxxx is Carluke (5 miles NW)
01555 89xxxx is Lesmahagow (5 miles SW)
01555 840xxx is Carnwath (7 miles NE)
Therefore 01555 covers about ~80 sq miles. That's not particularly local.
[1] Ofcom Area Code Tool: http://www.ofcom.org.uk/consumer/2009/09/telephone-area-codes-tool/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以获得分配给 BT 的号码的合理位置。
“L”数字映射到该区域内的特定交换:
对于有线提供商(尤其是使用光纤传输的提供商),有时每个区域只有一个交换机区号,因此每个 LL 范围内的号码覆盖整个区号。
对于分配给其他提供商的号码也存在类似的问题。此外,这些号码可能会被分配为 VoIP 并在另一个区域甚至完全不同的国家/地区使用。对于非 BT 号码,位置数据不可靠。
对于移动并保留号码的人来说,位置数据也会不准确。
也就是说,CodeLook 在显示正确数据方面做得相当合理: http://www.telecom -tariffs.co.uk/codelook.htm
You can get a resonable location for numbers allocated to BT.
The "L" digits map to a particular exchange within that area:
For cable providers (especially those using fibre optic delivery), there is sometimes only one exchange per area code and therefore the numbers in each LL range cover the entire area code.
For numbers allocoted to other providers there's a similar problem. Additionally, those numbers may be allocated as VoIP and in use in another area or even in a completely different country. For non-BT numbers location data cannot be relied on.
For people who have moved and kept their number, location data will also be inaccurate.
That said, CodeLook does a reasonable job of showing the right data: http://www.telecom-tariffs.co.uk/codelook.htm
您可能会遇到一个问题,即并非区号后面的所有数字都是地理数字。有些已被分配给有线电视提供商。我知道我自己的号码属于我自己,也是一个住在我当前位置东北约 5 英里处的人,链接......我们属于同一有线电视提供商。
You may have a problem in that not all numerics after area codes are geographic. Some have been block allocated to Cable Providers. I know my own number has belonged to myself and also a person who lived about 5 miles northeast of my current location, the link... we belong to the same cable provider.
它们是什么类型的电话号码?如果他们是企业,您认为使用 Google API 等搜索整个号码并从页面中提取实际地址的可能性如何? - 我知道这比那更难,只是探索一些可能性..;-
What sort of telephone numbers are they? If they are businesses, what do you think of the possibility of searching for the whole number using say, Googles API, and lifting the actual address from the page? - I know thats harder to do than that, just exploring some possibilities ..;-