如何辨别纽约“皇后风格”来自远程地址的街道地址,以及带有单位的地址#
我需要区分皇后风格 地址,来自有效的范围地址和带有单元# 的地址。例如:
皇后区风格:123-125 Some Street, NY
范围地址:6414-6418 37th Ln SE, Olympia, WA 98503
单位地址:1990-A Gildersleeve Ave, Bronx, NY。
在#3 的情况下,A 是街道地址 1990 处的单元#。单元# 也可以是数字,例如:1990-12。范围地址标识街道上的一系列地址,而不是唯一的可交付地址。
那么,问题是,有没有一种简单的方法可以从其他案例中识别出皇后区风格的地址?
---- 更新 ---
谢谢大家。从您的回答来看,似乎没有简单的方法可以做到这一点。我基本上需要知道 ABCD-WXYZ 形式的街道地址是否是指向单个属性的皇后区风格地址,或者它是否是一个范围地址。
一些后续问题怎么样:
1)纽约市的所有地址都是 ABCD-WXYZ 形式吗? 2)美国还有其他地方使用这种称呼方式吗?维基百科似乎暗示这是真的,但没有给出任何例子。
I need to distinguish between a Queens style address, from a valid ranged address, and an address with a unit#. For eg:
Queens style: 123-125 Some Street, NY
Ranged Address: 6414-6418 37th Ln SE, Olympia, WA 98503
Address with unit#: 1990-A Gildersleeve Ave, Bronx, NY.
In the case of #3, A is a unit# at street address 1990. THe unit# might be a number as well, for eg: 1990-12. A ranged address identifies a range of addresses on a street, and not a unique deliverable address.
So, the question is, is there an easy way to identify the Queens style address from the other cases?
---- UPDATE ---
Thanks, all. From your answers, it seems that there is no easy way to do this. I basically need to know if a street address in the form ABCD-WXYZ is a Queens-style address pointing to a single property, or if it is a ranged address.
How about some followup questions:
1) Are all addresses in NY City of the form ABCD-WXYZ?
2) Are there any other places in US where this style of addressing is used? Wikipedia seems to imply that is true, but does not give any examples.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这是来自在那里长大的记忆,所以要小心:
像这样的地址
首先可以通过确定 11423 邮政编码是否位于皇后区来破译。如果没有,那就下注。
接下来,它写着“100th Avenue”。这意味着“198”指的是“198th Street”:街道始终从北向南延伸,大道始终从东向西延伸。你会从“Road”和“Place”等词中得到一些有趣的东西,但“Place”是一条“Street”,而我相信“Road”是一条“Avenue”。
要找到该建筑物,请从南侧的 198 街(偶数)开始,然后开始计数。你会发现198-16位于199街和100街的拐角处,就像我住在那里时一样,因为如果它在199街的另一边,那就是200多号了。
至于如何区分,你可以先应用上面的规则,看看你是否能想出一些有意义的东西。也许街道永远不会与大道相交?也许数字不会上升那么高(我不相信有第 300 街,我也不确定是否有第 300 大道)。也许建筑物编号太高(如果您住在第 100 大道 198-200 号,那么您会住在一条很长的街道上,特别是因为第 100 大道上的 198 街到 199 街的距离不是很大:这是一个很短的街区朝那个方向)。
This is from the memory of growing up there, so beware:
An address like
Can be deciphered first by deciding whether the 11423 zip code is in Queens. If not, then punt.
Next, it says "100th Avenue". That implies that the "198" is referring to "198th Street": Streets always run North to South, and Avenues always run East to West. You get some interesting things with "Road" and "Place" and such, but "Place" is a "Street", and I believe that "Road" is an "Avenue".
To find the building, start at 198th Street, on the South side (even numbers), and start counting. You'll find that 198-16 is on the corner of 199th Street and 100th Avenue, just like it was when I lived there, because if it was on the other side of 199th street, it would have been 200-something.
As to how to distinguish, you could start by applying the above rules, and seeing if you come up with something that makes sense. Maybe the Street never intersects the Avenue? Maybe the numbers don't go up that high (I don't believe there is a 300th Street, and I'm not sure about a 300th Avenue). Maybe the building number is too high (you'd live on a very long street if you lived at 198-200 100th Avenue, especially because the distance from 198th Street to 199th Street on 100th Avenue isn't very great: it's a short block in that direction).
不幸的是,地址没有足够的信息来“验证自己”,就像信用卡上的 mod 10 校验和一样。这意味着,如果没有外部信息,实际上无法确切地知道与原始的、未处理的输入格式相比,标准化格式的地址应该是什么样子。
这就是地址验证网络服务之类的东西发挥作用的地方。每月只需花费几美元(通常约为 20 美元),您就可以验证您的地址数据库并对其进行清理,还可以防止错误或重复的地址进入您的系统并像癌症一样在系统中传播。大多数地址验证 Web 服务都会标准化地址的格式并公开地址的各个组成部分,以便您可以执行其他过程或检查等。
请注意,我是 SmartyStreets 的创始人。我们提供名为 LiveAddress 的地址验证 Web 服务 API。无论您是否是客户,我们都非常欢迎您亲自与我联系,询问有关地址的问题。我非常乐意提供帮助。
Unfortunately addresses don't have enough to "verify themselves" like a mod 10 checksum on a credit card. This means that without external information, there really is no way to know for sure how the address is supposed to look in a standardized format as compared to the original, unprocessed input format.
This is where something like an address verification web service would come into play. For a few dollars a month (usually about $20) you can verify your address database and clean it up and also prevent bad or duplicate addresses from getting into your system and spreading through it like a cancer. Most address validation web services will standardize the format of the address and expose the various component parts of the address so you can do additional process or inspection or whatever.
Just so you are aware, I'm the founder of SmartyStreets. We offer an address verification web service API called LiveAddress. You're more than welcome to contact me personally with questions about addresses whether you're a customer or not. I'm more than happy to help.
那么您会知道第二个地址不在皇后区,因为 XY 格式基于该行政区的街道和大道。皇后区共有 6414 条大道或街道(每条不到 280 条)。门牌号不应超过 100,因为他们会重置每个编号的十字路口/大道。因此 X 和 Y 很少有相同数量的数字。但最终,有效的地址将包含门牌号、街道名称、城市、州/省(如果有)、邮政编码或地址代码、国家(如果是国际),否则不会发送,因此您很少会只得到房子如果没有明确暗示其他信息,则为数字。
在我们拥有邮政编码系统之前,创建该系统是为了避免与其他行政区混淆。我的意思是,在阿斯托里亚的某些地点,如果您不提供邮政编码或社区名称(或使用破折号系统),谷歌地图将指向长岛市,并且在内行政区。该市没有其他行政区使用该系统。这只是皇后区的一颗宝石。然而,在州外,我相信(不要引用我的话)费城使用这个系统。我知道这是一篇旧帖子,但我刚刚看到它并想给我两分钱。
Well you would know that the second address isn't in Queens because the X-Y format is based on the streets and avenues of the borough. There aren't 6414 avenues or streets in Queens (less than 280 of each). The house number shouldn't go much over 100 because they reset every numbered cross street/avenue. So the X and Y would rarely have the same amount of digits. Ultimately though, a valid address would have the house number, street name, city, state/province if available, zip code or address code, country if international, otherwise they won't be sent, so you rarely would be given just the house number, if the other information weren't clearly implied.
The system was created to avoid confusion with the other boroughs before we had the Zip code system. I mean, there are some locations in Astoria, that if you don't give a zip code or a neighborhood name (or use the dash system), google maps will point to Long Island City and that's within the borough. No other borough in the city uses this system. It's just a Queens gem. Outside of the state, however, I believe (don't quote me on this) that Philadelphia uses this system. I know this is an old post, but I just saw it and wanted to give my two cents.
通常,如果没有其他信息,您无法区分这些不同的地址样式。幸运的是,其余地址提供了一些关于正在使用的地址样式的线索。
您的第一个示例是皇后区风格的地址。知道该地址位于纽约,并且知道它具有特定的街道名称,您也许能够推断出它位于皇后区,并进行相应的处理。如果您有邮政编码,那就更好了,因为这样您就可以将皇后区样式地址的处理限制为仅那些具有特定邮政编码的地址。
Generally, you can't distinguish between these different address styles, without additional information. Fortunately, the remainder of the addresses provide some clues as to what address style is in use.
Your first example is a Queens style address. Knowing that the address is in NY, and knowing that it has a specific street name, you might be able to infer that it's in Queens, and treat accordingly. If you had the ZIP code, that would be even better, because then you could restrict treatment of Queens style addresses to only those that have specific ZIP codes.