On 07/09/2009, maccgaz <macc...@googlemail.com> wrote: > > Hi all, > > I'm looking to make use of some mapping software for a web page and > this looks like it may be the best option for me. > > Please can those in the know let me know whether this sounds feasible, > and if you have some time - point me in the right direction for some > of the more tricky bits? > > Basically, I want to be able to take a UK Postcode and zoom the map > onto that area (With a marker), perhaps with a radius around it of, > say 10 miles. I'm sure this bit can be done... but this would be the > easy bit!
Maybe not as easy as you think. UK Postcodes are not well supported in the API Geocoder. You only get a low resolution location. Usually just the outcode, but sometimes a sector based result. Somewhere between 2-15km accuracy at best. > > I then want to query my database which would provide a list of similar > postcodes. I would want to display these on the map as well and > calculate the distance between the main postcode and each postcode > from the database. Perhaps clicking on each marker would display the > data. You should geocode the locations out have once and store the lat/long temporally in your database, not geocode each one each and every time need to run a query. > > Essentially, I want to be able to highlight which are the closest > postcodes to the initial postcode. I've looked through quite a few > tutorials, but I'm not sure how I would be able to get this dynamic > list of postcodes to display - and then calculate the distances > between them. A query in your database. Or at worst a query in javascript (and the API has helpers to calculate distance) > > I am a c#.NET developer and, whilst I can do know some javascript, I > am not very advanced in it at all so this seem quite difficult to do > in javascript. I had looked for some .NET controls, but they seem to > have stopped development since 2007! I'm quite amazed at that as I > would have thought that this would be hugely popular! > > Anyway, I'm not looking for anyone to write something like this for > me, but I would appreciate knowing if this is possible Almost certainly. As you say 'store locators' are a common requirement. > and also a few > pointers on where I should be looking to learn how to do this. The API documentation has a few articles about this with php/mysql. While that doesn't fit your requirements, maybe can pickup the concept used. > > Thanks in advance, > > Gary > > > > -- Barry - www.nearby.org.uk - www.geograph.org.uk - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to google-maps-api@googlegroups.com To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en -~----------~----~----~----~------~----~------~--~---