Webmastersite.net

Search    Register    Log In   

Details

Geodata, Addresses and Phone Numbers
By
Nov 21, 2015 am30 1:52 AM

WSN has had an "add from web search" option for a while which can be very useful for filling up a directory with websites appropriate to a category. For a business directory, however, it would make things a lot easier if WSN could determine the address and phone number of the business which each search result references.

With the cooperation and forethought of the website owner, the geo.position and icbm meta tags can help. These meta tags allow a web page to specify its' latitude and longitude. As of today's 9.2.31 Beta 2 release, WSN now detects this and also does a reverse geocode to get the address.

Unfortunately, very few websites are currently using geodata in their meta tags. To get a few more addresses, I've used some regular expression page parsing to look for a couple of common USA address formats in pages. Also added USA phone number detection. Detection remains very spotty due to the infinite variety of ways that web pages represent addresses, but it's a start.




Tags ,
Views 251 views. Averaging 251 views per day.

Sorry, you don't have permission to post. Log in, or register if you haven't yet.

Please login or register.