Singapore's "limits"

The emergence of location based applications drifts programmers towards geography. There seems to be a need for country boundaries regularly. Many times it's enough to tell if a point is within a 1 certain country or outside or maybe in another additional one... For such a simple case, it's accurate enough to test if the point is within a certain rectangle or not. No need to mingle with more complex polygons! It would be an overkill!

So here is a link with simplified coordinates for the bounding box of Singapore, visualized on Google Maps:

http://maps.google.com/maps/api/staticmap? center=1.3477,103.8302&zoom=10&size=800x400& sensor=false&path=color:0x00000000%7Cweight:5%7Cfillcolor:0xFFA00040 %7C1.48,103.6%7C1.48,104.05%7C1.24,104.05%7C1.24,103.6

So the 4 corners are the following:

1.48,  103.6
1.48,  104.05
1.24,  104.05
1.24,  103.6

It's even almost very easily memorable. :)

1.24 x 103.6 -- 1.48 x 104.05

2754 views and 0 responses