Google Maps: radius search in Oracle

Written on 21 April 2011, 12:11pm

Tagged with: , ,

Recently I had to implement a ColdFusion + Oracle application using Google Maps. One of the requirements was search by distance (or radius search) for some items, already geocoded.
The items are stored in T_ITEM, with the columns:
COORDX --latitude
COORDY --longitude

The latitude and longitude are already calculated, and stored in database as VARCHAR.
The task was to create some sort of function to accept:
and to return the items from T_ITEM located within radius kilometers from the given coordinates.

In implementing this task, I started with (more…)

6 useful Oracle commands

Written on 26 March 2011, 12:43pm

Tagged with: , ,

This is more of a reference post to store some useful Oracle features. Or a cheat sheet if you wish 🙂

1. How to find the maximum column size in a table


2. How to paginate in Oracle using rownum

Method 1:

select * from 
       select rownum r, a.* from 
       ) a 
       where rownum < = 10
where r >= 1;

Method 2: (more…)

ColdFusion: custom tags location

Written on 21 March 2011, 03:17pm

Tagged with:

Just bookmarking this:

1. In the same directory as the calling page – while this is easy for demonstration purposes, it’s not very practical, as it means that the custom tag is only available within that directory.
2. In a directory (or subdirectory of a directory) specified in ColdFusion Administrator under Extensions -> Custom Tag Paths.
3. In the cfusion/CustomTags directory or one of its subdirectories.

– CF tutorial