On 13 October 2010 08:40, charles.smith1 <[email protected]> wrote: > We are building a new web site that will allow owners of holiday > properties to upload their property details for inclusion on the web > site. Part of the details they will need to supply is an accurate > location map. We want to use Google to generate this map. The owner > should be able to simply enter their address details and get a Google > map displayed showing the position of the property. The owner should > then be able to adjust the position of the pin if need be. Once > correct, they can then save the map and it will appear on their > property's listing page on the web site.
You may find John's page at http://maps.huge.info/pinpointaddress.htm useful; it copes well with a detailed address. There are refinements which might be made like offering alternatives where the geocoder finds them for an ambiguous address, but that complicates the code: Mike has an example of that at http://econym.org.uk/gmap/didyoumean.htm. I make use of both at http://www.acleach.me.uk/acny/search.htm and do other things too to locate churches. A suitable ambiguous address might be "Cowley, UK" which doesn't come up with the Mini factory first. Just get the location details entered into a hidden field on your data-entry form -- possibly instead of displaying them on the page -- and send them to your server with the rest of the data. -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
