> Googles method: SQL query > XML > Markers (each step requires a loop)
>
> Simple method: SQL query > Markers (one less loop and no XML)
If the user then goes on to search around another location, the AJAX
method can be used to fetch and display new data without reloading the
page.
The webpage itself can be cached, even though the data may change or
different sets of data may be fetched.
While the 'simple' method is simple i.e. its not an interactive page.
Sometimes that's fine, depends on your use.
Problems are likely to arise as complexity increases e.g. it would be
difficult to use this approach to allow a user to enter an address,
that is geocoded, then used for dbase searching, then results to be
plotted.
Bear in mind the examples are just that, examples. They are not
finished applications, you are not required to "do it this way".