我如何使用javascript从Twitter推文获取地址 [英] How I can get an address from a twitter tweet using javascript

查看:179
本文介绍了我如何使用javascript从Twitter推文获取地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试解析Twitter推文中的地址。



如果有人发推文如下:我们是11-1的Wacker和Monroe。 br />


java脚本函数需要找到这个地址:Wacker and Monroe,然后将New York,NY添加到最后。



然后通过调用传递物品集合:



items.add(Wacker and Monroe,New York,NY) ;



函数matchAddress(项目,推文,卡车){



//在这里填写代码< br $>
}





我正在寻找最佳实践甚至是起点。我只是不确定那一刻。

I am trying to parse addresses from twitter tweets.

If one has a tweet like: "We are at Wacker and Monroe from 11-1".

The java-script function would need to find this address: "Wacker and Monroe" and then add New York,NY to the end.

Then the items collection gets passed in by calling:

items.add("Wacker and Monroe, New York, NY");

function matchAddress(items, tweet, truck) {

// fill in code here
}


I am looking for best practice or even a starting point.I am just not sure at the moment.

推荐答案

这篇关于我如何使用javascript从Twitter推文获取地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆