Friday, April 28, 2006

yahoo maps

Well. i've nearly finished writing the basic functionality that will allow me to switch between using the google or yahoo maps api. this would have given me real flexibilty in terms of outages to either service, or api changes. however whilst testing the yahoo code i've come to the realisation that actually, yahoo maps doesn't cover the uk. oh bugger.

its not all bad though. rejigging the code to aloow for both apis has forced me to refactor some stuff
which i probably would have left. and it now means i can concentrate on sorting the google functionality safe in the knoweldge that if/when yahoo decide to open up maps to the uk i'll be able to take advantage of it.

When implementing the yahoo maps api i decided to go down the ajax route and wrote a getoverlay page that returned a valid georss document. There is no reason why i can't code the google ajax code to simply read the same file (code reuse, oh yes). so that is the next step really.

once that is done, i'll need to think about images for the icons. and i'll also need to rewrite the overlay code so that i can pass the price range parameters in the ajax call. This also means i need to create a ddl of house prices, then work out the javascript code (really easy probably but i'm shite at javascript) that can get the selected value from the ddl and the place name from the textbox.

No comments: