Skip to main content
August 30, 2006
Question

Placename search - Webservice

  • August 30, 2006
  • 1 reply
  • 208 views
Hi,

I am trying to get my head around implementing a placename search i.e. rightmove.co.uk where a user types in a uk town name and within X miles and it queries my properties database that includes longitude and latitude for each property. (ASP.NET VB script)

I have found the geonames websevice which appears to be exactly what i am after:

http://ws.geonames.org/postalCodeSearch?placename=[placename

This returns me the long and lat of the chosen town. In theory I should then be able to do an SQL query to display to just show properties within a bounding box.

Has anyone succesfully done this here? as I am quite new to this and don't really know where to start.

Should I have a search page with a textfield [placename] that gets submitted through a session variable that directs to a results page that queries the webservice???? I am confusing myself.!!!

As much info as poss would be a great help. thanks in advance
This topic has been closed for replies.

1 reply

August 30, 2006
I have created a search page with the attached code that has a text box that when submitted displays the resulting xml page.. a start but not exactly what i want... any ideas?