mark some places on Israel map
I'm trying to use a small portion of js to web-scrape israeli address from some websites and eventually mark those addresses on Israel map.
I have two problems and maybe someone could help me out
- I managed to fetch the web-pages content, but was not able to find the address string in them. The reason is that there is no fixed pattern. The web sites are different. I can try find the element that contains hebrew before the telephone number. But what is the right syntax for that ?
#1
<p type="" title="" multilinks-noscroll="true">
<a target="_new" href="http://maps.google.com/?hl=iw&ie=UTF8&ll=32.226743,34.747009&spn=2.183969,2.69989&z=9" multilinks-noscroll="true">בן גוריון 61, בת ים</a>
</p>
<p>03-5066338</p>
#2
<div style="padding-top: 5px;">
<div>כתובת: יהודה הלוי 12 ת"א (נוה צדק)</div>
</div>
<div style="p开发者_运维问答adding-top: 5px;"> </div>
<div style="padding-top: 5px;">
<div>טלפון: 1-700-707-607</div>
</div>
- I read the Israel's streets names are not locatable via google map API. Is there any other recommended service API to locate the addresses I fetch from phase 1 on a map ?
Thanks in advance to any help
Try the yahoo API for geocoding http://developer.yahoo.com/geo/
It was originally implemented to find variable street addresses in web pages and may solve the problem you have
You could also try the Waze geocoding API for Israel or OpenStreetMap's data; they seem to have some comprehensive info for Tel Aviv at least.
精彩评论